:root {
  --bg: #F7F7FF;
  --ink: #141838;
  --muted: #5A6080;
  --blue: #4B7BFF;
  --purple: #A052F4;
  --brand: #6D63F8;
  --brand-dark: #5A4FE6;
  --line: #E3E5F8;
  --line-strong: #CDD0F0;
  --tint: #F0EEFF;
  --red: #C62828;
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --lift: 0 10px 28px rgba(40, 30, 120, .10);
  --rest: 0 1px 2px rgba(20, 24, 56, .06);
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
[hidden] { display: none !important; }

code { font: 13px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--tint); border-radius: 6px; padding: 2px 6px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 24px;
  background: rgba(255, 255, 255, .8);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--ink); letter-spacing: -.01em; }
.site-brand:hover { text-decoration: none; }
.site-brand img { display: block; border-radius: 8px; }

.site-nav { margin-left: auto; display: flex; gap: 4px; }

.nav-link { color: var(--muted); border-radius: 8px; padding: 8px 12px; font-weight: 600; font-size: 14px; transition: background 180ms ease, color 180ms ease; }
.nav-link:hover { color: var(--ink); background: var(--tint); text-decoration: none; }
.nav-link.active { color: var(--brand); background: var(--tint); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 700 15px var(--font);
  padding: 10px 20px;
  border-radius: 12px;
  min-height: 44px;
  box-sizing: border-box;
  border: 0;
  cursor: pointer;
  background: var(--brand);
  color: #fff;
  box-shadow: var(--rest);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}
.btn:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: var(--lift); text-decoration: none; }
.btn:disabled { opacity: .65; cursor: progress; transform: none; }
.btn.small { padding: 8px 16px; font-size: 14px; min-height: 36px; }
.btn.light { background: #fff; color: var(--ink); border: 1px solid var(--line-strong); }
.btn.light:hover { border-color: var(--brand); background: #fff; }
.btn.wide { width: 100%; margin-top: 16px; }

main { flex: 1; }

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, var(--blue) 0%, var(--purple) 100%);
  padding: 72px 24px 88px;
}
.hero.short { padding: 52px 24px 64px; text-align: center; }
.hero .inner { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; }
.hero h1 { margin: 0; font-size: clamp(38px, 6vw, 60px); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; }
.hero p { margin: 14px 0 0; max-width: 540px; font-size: 18px; line-height: 1.6; color: rgba(255, 255, 255, .86); }
.hero.short p { margin-left: auto; margin-right: auto; }

.hero .mark { position: absolute; right: -40px; top: 50%; width: 360px; height: 360px; transform: translateY(-50%) rotate(-8deg); opacity: .12; pointer-events: none; }
.hero.short .mark { width: 260px; height: 260px; right: 4%; }

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 28px;
  background: var(--bg);
  border-radius: 28px 28px 0 0;
}

.section { max-width: 1120px; margin: 0 auto; padding: 16px 24px 56px; box-sizing: border-box; width: 100%; }
.section h2 { margin: 36px 0 16px; font-size: 24px; font-weight: 800; letter-spacing: -.01em; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.chip {
  font: 600 14px var(--font);
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}
.chip:hover { border-color: var(--brand); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }

.product {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: inherit;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.product:hover { transform: translateY(-4px); box-shadow: var(--lift); border-color: var(--line-strong); text-decoration: none; }
.product .body { padding: 20px 24px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product .top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 22px; }
.product .by { font-size: 13px; font-weight: 600; color: var(--brand); }
.product h3 { margin: 0; font-size: 21px; font-weight: 800; letter-spacing: -.01em; }
.product .desc { margin: 2px 0 0; color: var(--muted); font-size: 15px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product .foot { margin-top: auto; padding-top: 16px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.product .meta { display: flex; flex-direction: column; gap: 2px; }
.product .kind { font-size: 12px; color: var(--muted); }
.product .go { font-weight: 700; font-size: 14px; color: var(--brand); white-space: nowrap; transition: transform 200ms ease; }
.product:hover .go { transform: translateX(3px); }

.cover { aspect-ratio: 2 / 1; background: var(--tint); border-bottom: 1px solid var(--line); overflow: hidden; }
.cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cover.blank { position: relative; display: grid; place-items: center; background: linear-gradient(135deg, #EEF1FF 0%, #F3ECFF 100%); }
.cover.blank svg { position: absolute; right: -6%; bottom: -18%; width: 58%; fill: var(--brand); opacity: .08; transform: rotate(-8deg); }
.cover.blank span { position: relative; font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); opacity: .85; padding: 0 24px; text-align: center; }
.cover.big { border: 1px solid var(--line); border-radius: 16px; }
.cover.big span { font-size: clamp(28px, 4vw, 44px); }

.price { font-size: 20px; font-weight: 800; }
.price s { color: var(--muted); font-weight: 500; font-size: 15px; margin-right: 6px; }

.box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--rest);
  padding: 32px;
  max-width: 600px;
  margin: 0 auto;
  box-sizing: border-box;
}
.box h2 { margin: 0 0 6px; font-size: 22px; font-weight: 800; }
.box .lead { margin: 0 0 8px; color: var(--muted); font-size: 15px; line-height: 1.6; }

.note { text-align: center; color: var(--muted); font-size: 14px; line-height: 1.6; margin: 18px auto 40px; max-width: 600px; padding: 0 16px; }

label { display: block; font-weight: 700; font-size: 14px; margin: 18px 0 6px; }
input {
  width: 100%;
  box-sizing: border-box;
  font: 500 15px var(--font);
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 11px 14px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
input::placeholder { color: #9AA0BF; }
input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(109, 99, 248, .18); }
.hint { color: var(--muted); font-size: 13px; margin-top: 6px; line-height: 1.5; }

.codes { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 420px) { .codes { grid-template-columns: 1fr; } }

.actions { display: flex; gap: 10px; margin-top: 22px; }
.actions .btn { flex: 1; }

.error { display: none; margin-top: 16px; background: #FFECEC; border: 1px solid #F4B4B4; border-radius: 12px; padding: 12px 16px; color: var(--red); font-size: 14px; line-height: 1.5; }
.error.show { display: block; }
.ok { display: none; margin-top: 16px; background: #E9F9EF; border: 1px solid #A7E3BC; border-radius: 12px; padding: 12px 16px; color: #1B7F46; font-size: 14px; line-height: 1.5; }
.ok.show { display: block; }

.keys { display: grid; gap: 12px; margin-top: 18px; }
.key { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.key .name { font-weight: 700; font-size: 14px; padding: 10px 14px; background: var(--tint); border-bottom: 1px solid var(--line); }
.key .row { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; }
.key code { flex: 1; background: none; padding: 0; font-size: 15px; overflow-wrap: anywhere; user-select: all; }
.key .how { padding: 0 14px 12px; color: var(--muted); font-size: 13px; line-height: 1.5; }

.steps { margin: 20px 0 0; padding-left: 22px; line-height: 1.7; }
.steps li { margin: 6px 0; }

.loading { color: var(--muted); text-align: center; padding: 48px 0; }
.center { text-align: center; }

.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--brand); animation: spin .8s linear infinite; margin: 0 auto 14px; }
@keyframes spin { to { transform: rotate(360deg); } }

dialog {
  width: min(540px, calc(100% - 32px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(20, 24, 56, .2);
}
dialog::backdrop { background: rgba(20, 24, 56, .4); }
dialog form { padding: 28px; }
dialog .by { font-size: 13px; font-weight: 600; color: var(--brand); }
dialog h2 { margin: 2px 0 0; font-size: 22px; font-weight: 800; }
dialog .sub { margin: 2px 0 0; }
dialog .full { color: var(--muted); font-size: 15px; line-height: 1.6; max-height: 38vh; overflow: auto; margin-top: 12px; }
dialog .full img { max-width: 100%; border-radius: 10px; }
dialog .full p { margin: 0 0 10px; }

.nav-link.account { display: inline-flex; align-items: center; gap: 8px; }
.nav-link.account img { border-radius: 50%; display: block; }

.who { max-width: 760px; margin: 0 auto 16px; display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--muted); }
.who-name { display: flex; align-items: center; gap: 12px; }
.who img { border-radius: 50%; }
#account { display: flex; }
.who b { color: var(--ink); }
.who .btn { margin-left: auto; }

.box.order, .box.claim { max-width: 760px; margin-bottom: 16px; }
.box.claim { margin-top: 32px; }
.order-head { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); }
.order-head b { color: var(--ink); overflow-wrap: anywhere; }
.order .keys { margin-top: 14px; }
.key .name .by { font-weight: 500; color: var(--brand); }
.key .get { padding: 4px 14px 14px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.key .get .hint { margin: 0; }

.seats { margin: 0 14px 14px; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: grid; gap: 10px; }
.seats-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 13px; color: var(--muted); }
.seats .hint { margin: 0; }
.seat { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.seat div { display: flex; flex-direction: column; font-size: 14px; min-width: 0; }
.seat div span { font-size: 12px; color: var(--muted); }
.seat b { overflow-wrap: anywhere; }
.seat-actions { display: flex; justify-content: flex-end; }
.slot-buy { display: grid; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 14px; }
.slot-buy .row, .seat .row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 0; }
.seats > .seat:first-child { border-top: 0; padding-top: 0; }
.slot-buy input { flex: 1; min-width: 160px; padding: 8px 12px; }
select { font: 500 14px var(--font); color: var(--ink); background: #fff; border: 1px solid var(--line-strong); border-radius: 10px; padding: 8px 10px; max-width: 260px; }
.pill { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.seats-head .pill { text-transform: capitalize; }
.pill.active { background: #E6F8EE; color: #1B7F46; }
.pill.revoked, .pill.expired { background: #FFECEC; color: var(--red); }

.site-footer { border-top: 1px solid var(--line); padding: 24px; background: #fff; font-size: 13px; }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; }
.site-footer .links span { color: var(--ink); font-weight: 700; }
.site-footer a { color: var(--muted); }
.site-footer p { margin: 8px 0 0; color: var(--muted); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp .6s ease-out both; }

.product-hero { padding: 40px 24px 72px; }
.product-hero h1 { font-size: clamp(34px, 5vw, 52px); }
.crumbs { display: flex; gap: 8px; font-size: 14px; font-weight: 600; margin-bottom: 14px; color: rgba(255, 255, 255, .7); }
.crumbs a { color: rgba(255, 255, 255, .9); }

.pp { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.pp-main { display: grid; gap: 20px; min-width: 0; }
.pp-side { display: grid; gap: 16px; position: sticky; top: 84px; }
.pp .box { max-width: none; margin: 0; }

.gallery { display: grid; gap: 10px; }
.stage { aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: var(--ink); border: 1px solid var(--line); }
.stage img, .stage iframe { display: block; width: 100%; height: 100%; object-fit: contain; border: 0; background: var(--ink); }
.thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.thumbs button { flex: 0 0 auto; width: 104px; aspect-ratio: 16 / 9; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: var(--tint); position: relative; }
.thumbs button.on { border-color: var(--brand); }
.thumbs button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumbs button.video::after { content: ""; position: absolute; inset: 0; margin: auto; width: 0; height: 0; border-left: 14px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .5)); }

.rich { color: var(--ink); font-size: 16px; line-height: 1.7; }
.rich > :first-child { margin-top: 0; }
.rich p { margin: 0 0 14px; color: #3B4166; }
.rich h1, .rich h2, .rich h3 { margin: 22px 0 8px; font-size: 18px; font-weight: 800; }
.rich ul, .rich ol { margin: 0 0 14px; padding-left: 22px; color: #3B4166; }
.rich li { margin: 4px 0; }
.rich strong { color: var(--ink); }
.rich img { max-width: 100%; border-radius: 12px; }
.pp-about h2, .facts h2 { margin-bottom: 14px; }

.buy-card .by { font-size: 13px; font-weight: 600; color: var(--brand); }
.big-price .price { font-size: 34px; letter-spacing: -.02em; }
.big-price .price s { font-size: 18px; }
.buy-card .kind { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.buy-card label { margin-top: 16px; }
.buy-card .hint { margin-top: 12px; }
.codes-toggle { margin-top: 12px; font-size: 14px; }
.codes-toggle summary { cursor: pointer; color: var(--brand); font-weight: 600; }
.codes-toggle .codes { margin-top: 10px; gap: 10px; }

.owned-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.key-mini { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--tint); }
.key-mini code { background: none; padding: 0; font-size: 14px; }
.key-mini span { font-size: 12px; color: var(--muted); }
.seat-line { margin-top: 14px; font-size: 14px; color: var(--muted); }
.seat-line b { color: var(--ink); }
.upgrade { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.upgrade h3 { margin: 0; font-size: 17px; font-weight: 800; }
.upgrade .hint { margin: 4px 0 12px; }
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; }
.tier { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 8px; border: 1px solid var(--line-strong); border-radius: 12px; background: #fff; cursor: pointer; font: inherit; color: var(--ink); transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease; }
.tier:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--lift); }
.tier:disabled { opacity: .6; cursor: progress; transform: none; }
.tier b { font-size: 20px; line-height: 1.1; }
.tier small { font-size: 12px; color: var(--muted); }
.tier span { font-size: 14px; font-weight: 700; color: var(--brand); margin-top: 4px; }

.stars { color: #F5A623; letter-spacing: 1px; }
.stars .off { color: var(--line-strong); }
.rating { font-size: 14px; font-weight: 700; }
.rating .hint { font-weight: 500; }
.reviews-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.reviews-head h2 { margin: 0; }
.score { display: flex; align-items: center; gap: 8px; }
.score b { font-size: 26px; font-weight: 800; }
.score .stars { font-size: 18px; }
.score .hint { margin: 0; }
.review-list { display: grid; gap: 12px; }
.review { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.review-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.review-head .hint { margin: 0; }
.review p { margin: 8px 0 0; color: #3B4166; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; }
.reply { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--tint); font-size: 14px; }
.reply p { margin-top: 4px; }
.reviews > .btn { margin-top: 14px; }
.who-mini { display: inline-flex; align-items: center; gap: 6px; }
.who-mini img { border-radius: 50%; }
.src { font-size: 11px; font-weight: 700; border-radius: 999px; padding: 2px 8px; }
.src.site { background: #E9F9EF; color: #1B7F46; }
.src.bbb { background: var(--tint); color: var(--brand); }
.src.off { background: #FDECEC; color: #B42318; }
.review.hidden-review > p { opacity: .55; }
.review.mine { border-color: var(--brand); }
.review-form { border: 1px solid var(--line-strong); border-radius: 14px; padding: 16px; margin-bottom: 16px; display: grid; gap: 10px; background: #FBFBFF; }
.review-form h3 { margin: 0; font-size: 16px; font-weight: 800; }
.review-form .row, .admin-tools .row { display: flex; gap: 8px; flex-wrap: wrap; }
.review-form .error, .admin-tools .error { margin-top: 0; }
.star-pick { display: flex; gap: 4px; }
.star-pick button { background: none; border: 0; padding: 0 2px; font-size: 28px; line-height: 1; cursor: pointer; color: var(--line-strong); transition: transform 120ms ease, color 120ms ease; }
.star-pick button:hover { transform: scale(1.12); }
.star-pick button.on { color: #F5A623; }
textarea { width: 100%; box-sizing: border-box; font: 500 15px/1.5 var(--font); color: var(--ink); background: #fff; border: 1px solid var(--line-strong); border-radius: 12px; padding: 11px 14px; outline: none; resize: vertical; }
textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(109, 99, 248, .18); }
.admin-tools { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line-strong); display: grid; gap: 8px; }

.btn.wide + .btn.wide { margin-top: 10px; }

.basket-fab { position: fixed; right: 22px; bottom: 12px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer; color: #fff; display: grid; place-items: center; background: linear-gradient(135deg, var(--blue), var(--purple)); box-shadow: 0 12px 30px rgba(80, 60, 200, .35); transition: transform 180ms ease, box-shadow 180ms ease; }
.basket-fab:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 16px 36px rgba(80, 60, 200, .42); }
.basket-fab .count { position: absolute; top: -2px; right: -2px; min-width: 22px; height: 22px; padding: 0 6px; box-sizing: border-box; border-radius: 999px; background: #fff; color: var(--brand); font: 800 12px/22px var(--font); text-align: center; box-shadow: 0 2px 6px rgba(20, 24, 56, .2); }
.basket-panel { position: fixed; right: 22px; bottom: 92px; z-index: 60; width: min(380px, calc(100vw - 32px)); max-height: calc(100vh - 120px); overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 60px rgba(20, 24, 56, .22); padding: 18px 20px 20px; box-sizing: border-box; animation: fadeUp .22s ease-out both; }
.basket-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.basket-head h2 { margin: 0; font-size: 20px; font-weight: 800; }
.basket-close, .bremove { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-strong); background: #fff; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0; }
.basket-close:hover, .bremove:hover { color: var(--red); border-color: var(--red); }
.basket-rows { display: grid; }
.basket-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.bthumb { flex: 0 0 64px; }
.bthumb .cover { border: 1px solid var(--line); border-radius: 10px; }
.bthumb .cover.blank span { font-size: 9px; padding: 0 4px; }
.bname { flex: 1; min-width: 0; display: flex; flex-direction: column; font-weight: 700; font-size: 15px; }
.bname a { color: var(--ink); }
.bname span { font-weight: 600; font-size: 14px; color: var(--muted); }
.basket-total { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0 2px; font-size: 15px; }
.basket-total b { font-size: 20px; }
.basket-body label { margin-top: 12px; }
.basket-empty { text-align: center; padding: 18px 0 6px; color: var(--muted); }
.basket-empty p { margin: 0 0 12px; }

@media (max-width: 560px) {
  .basket-fab { right: 14px; bottom: 10px; }
  .basket-panel { right: 12px; left: 12px; width: auto; bottom: 84px; }
}

.facts dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; font-size: 14px; line-height: 1.5; }
.facts dt { color: var(--muted); font-weight: 600; }
.facts dd { margin: 0; }

.lib { max-width: 900px; }
.lib .box { max-width: none; margin: 0 0 16px; }
.how-strip { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0; margin: 0 0 20px; }
.how-strip li { counter-increment: step; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 14px; color: var(--muted); line-height: 1.4; }
.how-strip li::before { content: counter(step); flex: 0 0 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #fff; background: linear-gradient(135deg, var(--blue), var(--purple)); }
.how-strip b { color: var(--ink); }

.pcard { padding: 24px 28px; }
.pcard-head { display: flex; align-items: center; gap: 16px; cursor: pointer; list-style: none; }
.pcard-head::-webkit-details-marker { display: none; }
.pcard-head:hover .pname { color: var(--brand); }
.pname { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.01em; color: var(--ink); transition: color 160ms ease; }
.ptitle .hint { display: block; }
.chev { flex: 0 0 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-strong); position: relative; transition: transform 200ms ease, background 160ms ease; }
.chev::before { content: ""; position: absolute; left: 50%; top: 46%; width: 8px; height: 8px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translate(-50%, -50%) rotate(45deg); }
.pcard[open] .chev { transform: rotate(180deg); background: var(--tint); }
.pcard-head:hover .chev { background: var(--tint); }
.pcard-body { animation: fadeUp .3s ease-out both; }
.pthumb { flex: 0 0 96px; }
.pthumb .cover { border: 1px solid var(--line); border-radius: 12px; }
.pthumb .cover.blank span { font-size: 11px; padding: 0 6px; }
.ptitle { flex: 1; min-width: 0; }
.ptitle h2 { margin: 0; font-size: 22px; }
.ptitle h2 a { color: var(--ink); }
.ptitle .hint { margin-top: 2px; }
.pcard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
.part { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: grid; gap: 10px; align-content: start; }
.pcard-body > .part { margin-top: 14px; }
.part h3 { margin: 0; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.part .hint { margin: 0; }
.part .btn { justify-self: start; }
.part .error { margin-top: 0; }
.keybox { display: flex; align-items: center; gap: 10px; background: var(--tint); border-radius: 10px; padding: 8px 8px 8px 14px; }
.keybox code { flex: 1; background: none; padding: 0; font-size: 15px; overflow-wrap: anywhere; user-select: all; }
.meter-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 15px; }
.meter { height: 8px; border-radius: 999px; background: var(--tint); overflow: hidden; }
.meter div { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--blue), var(--purple)); }
.servers { display: grid; gap: 0; }
.server { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.server:first-child { border-top: 0; }
.server div { display: flex; flex-direction: column; min-width: 0; font-size: 14px; }
.server div span { font-size: 12px; color: var(--muted); }
.server .row { flex-direction: row; gap: 8px; align-items: center; flex-wrap: wrap; }
.spare .server { flex-wrap: wrap; }
.spare select { min-width: 0; max-width: 100%; flex: 1; }
.linkish { justify-self: start; background: none; border: 0; padding: 0; font: 600 14px var(--font); color: var(--brand); cursor: pointer; }
.more { margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.more h4 { margin: 0; font-size: 16px; font-weight: 800; }
.more input { max-width: 280px; }
.order-id { margin-top: 14px; font-size: 12px; color: var(--muted); }
.empty-lib { text-align: center; padding: 40px 28px; }
.empty-lib .btn { margin-top: 8px; }
.missing { margin-top: 36px; }
.missing > h2 { font-size: 22px; font-weight: 800; margin: 0 0 14px; }
.missing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.missing-grid .box { margin: 0; }
.missing-grid h3 { margin: 0 0 6px; font-size: 18px; font-weight: 800; }

@media (max-width: 700px) {
  .how-strip, .pcard-grid, .missing-grid { grid-template-columns: 1fr; }
  .pcard { padding: 18px; }
  .pthumb { flex-basis: 64px; }
  .pname { font-size: 18px; }
  .pcard-head { gap: 10px; }
}

@media (max-width: 900px) {
  .pp { grid-template-columns: 1fr; }
  .pp-side { position: static; order: -1; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

@media (max-width: 560px) {
  .site-header { padding: 0 12px; gap: 8px; }
  .nav-link { padding: 8px; }
  .hero { padding: 48px 16px 64px; }
  .hero.short { padding: 40px 16px 56px; }
  .hero .mark { width: 220px; height: 220px; right: -60px; }
  .section { padding: 8px 16px 40px; }
  .box { padding: 22px; }
  dialog form { padding: 22px; }
  .grid { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
  .site-brand span { display: none; }
}
