/* Магазин lunify.ru/donate */
/* Шапка — ночное небо. Всё статичное: звёзды фоном из градиентов, луна
   картинкой, без бесконечных анимаций (сайт и так нагружен эффектами). */
.sky { position: relative; overflow: hidden; padding: 150px 20px 190px; isolation: isolate;
  background: radial-gradient(120% 90% at 70% 0%, rgba(60, 74, 140, .35), transparent 60%); }
.sky-stars { position: absolute; inset: 0; z-index: -2; opacity: .8;
  background-image:
    radial-gradient(1.4px 1.4px at 12% 22%, #fff, transparent), radial-gradient(1px 1px at 24% 64%, #C9D6FF, transparent),
    radial-gradient(1.6px 1.6px at 37% 14%, #fff, transparent), radial-gradient(1px 1px at 46% 48%, #C9D6FF, transparent),
    radial-gradient(1.2px 1.2px at 58% 30%, #fff, transparent), radial-gradient(1px 1px at 63% 72%, #C9D6FF, transparent),
    radial-gradient(1.5px 1.5px at 81% 58%, #fff, transparent), radial-gradient(1px 1px at 92% 20%, #C9D6FF, transparent),
    radial-gradient(1.2px 1.2px at 6% 78%, #fff, transparent), radial-gradient(1px 1px at 72% 10%, #fff, transparent);
  background-size: 520px 360px; }
.sky-glow { position: absolute; z-index: -2; top: -120px; right: 4%; width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 112, 30, .22), rgba(242, 112, 30, .07) 40%, transparent 68%); }
.sky-moon { position: absolute; z-index: -1; top: 70px; right: 4%; width: clamp(120px, 13vw, 190px); height: auto; rotate: -12deg; opacity: .9;
  filter: drop-shadow(0 0 40px rgba(242, 112, 30, .35)); }
/* Пиксельные горы в три слоя, ближний — цветом фона страницы: переход без шва */
.sky-hills { position: absolute; z-index: -1; left: 0; right: 0; bottom: -1px; height: 170px; pointer-events: none; }
.hill { position: absolute; left: 0; bottom: 0; width: 100%; display: block; overflow: hidden; }
.hill-far { height: 170px; fill: var(--ridge-far); opacity: .55; }
.hill-mid { height: 120px; fill: var(--ridge-mid); }
.hill-near { height: 70px; fill: var(--bg); }
.sky-in { max-width: var(--container); margin: 0 auto; }
.sky h1 { font-size: clamp(2.3rem, 6vw, 4.4rem); line-height: 1.02; margin: 10px 0 18px; max-width: 12ch; }
.sky h1 span { display: block; background: linear-gradient(90deg, #FFB37A, #F2701E 60%, #C9D6FF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sky .lead-note { max-width: 52ch; color: var(--text-dim); font-size: 1.05rem; line-height: 1.55; }
@media (max-width: 720px) {
  .sky { padding: 112px 16px 130px; }
  .sky-hills { height: 110px; } .hill-far { height: 110px; } .hill-mid { height: 80px; } .hill-near { height: 46px; }
  .sky-moon { top: 70px; right: -30px; width: 150px; opacity: .55; }
}

.shop-perks { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.shop-perk {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface-fade);
  font-size: .85rem; color: var(--text-dim);
}
.shop-perk svg { width: 16px; height: 16px; stroke: var(--amber); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.shop { max-width: var(--container); margin: 0 auto; padding: 0 20px 90px; }

/* Хит — крупная витрина */
.spot { position: relative; display: grid; grid-template-columns: minmax(0, 340px) 1fr; gap: 34px; align-items: center;
  margin: 10px 0 30px; padding: 26px; border-radius: 28px; overflow: hidden; isolation: isolate;
  border: 1px solid rgba(242, 112, 30, .4);
  background: radial-gradient(80% 120% at 0% 50%, rgba(242, 112, 30, .2), transparent 60%),
              radial-gradient(60% 100% at 100% 0%, rgba(143, 168, 232, .14), transparent 60%), var(--surface-fade); }
.spot[hidden] { display: none; }
.spot-art { position: relative; aspect-ratio: 1; border-radius: 20px; overflow: hidden; cursor: pointer;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .06); }
.spot-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.spot-art:hover img { transform: scale(1.04); }
.spot-in { display: grid; gap: 14px; align-content: center; }
.spot-kicker { display: inline-flex; align-items: center; gap: 8px; width: max-content; padding: 6px 12px; border-radius: 999px;
  font: 700 .72rem var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: #fff; background: linear-gradient(90deg, #F2701E, #D95A0F); }
.spot h2 { font: 700 clamp(1.6rem, 3.4vw, 2.5rem)/1.08 var(--font-display); }
.spot-desc { color: var(--text-dim); line-height: 1.6; max-width: 56ch; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.spot .price b { font-size: 2rem; }
.spot-act { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.spot-act .btn { padding: 14px 24px; }
.spot-buy { border: 0; color: #fff; background: linear-gradient(180deg, #F2701E, #D95A0F); box-shadow: 0 14px 30px -10px rgba(242, 112, 30, .6); }
.spot-buy:hover { background: linear-gradient(180deg, #FF8A4C, #F2701E); }
@media (max-width: 720px) {
  .spot { grid-template-columns: 1fr; gap: 18px; padding: 16px; border-radius: 22px; }
  .spot-art { max-width: 220px; width: 100%; margin: 0 auto; }
}

/* Группы по категориям */
.groups { display: grid; gap: 40px; }
.grp-h { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; font-size: clamp(1.25rem, 2.4vw, 1.6rem); }
.grp-h span { font: 600 .9rem var(--font-body); color: var(--text-dim); }
.grp-h::after { content: ""; flex: 1; height: 1px; align-self: center; background: linear-gradient(90deg, var(--line-strong), transparent); }

/* Акция */
.sale-banner {
  display: none; align-items: center; gap: 16px; flex-wrap: wrap;
  margin: 18px 0 8px; padding: 16px 20px; border-radius: var(--radius);
  border: 1px solid rgba(242, 112, 30, .45);
  background: radial-gradient(120% 140% at 0% 0%, rgba(242, 112, 30, .28), transparent 60%), var(--surface-fade);
}
.sale-banner.on { display: flex; }
.sale-banner b { font-family: var(--font-display); font-size: 1.6rem; color: var(--orange-soft); }
.sale-banner .sale-name { font-weight: 600; }
.sale-banner .sale-timer { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--text-dim); font-size: .9rem; }

/* Лента покупок */
.feed {
  position: relative; overflow: hidden; margin: 22px 0 6px;
  border-block: 1px solid var(--line);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.feed[hidden] { display: none; }
.feed-track { display: flex; gap: 36px; width: max-content; padding: 12px 0; animation: feed 46s linear infinite; }
.feed:hover .feed-track { animation-play-state: paused; }
.feed-item { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; font-size: .88rem; color: var(--text-dim); }
.feed-item img { width: 24px; height: 24px; border-radius: 5px; image-rendering: pixelated; }
.feed-item img.pi { border-radius: 6px; image-rendering: auto; object-fit: cover; }
.feed-item b { color: var(--text); font-weight: 600; }
.feed-item em { font-style: normal; color: var(--amber); }
@keyframes feed { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .feed-track { animation: none; } }

/* Категории */
.cats { display: flex; gap: 8px; flex-wrap: wrap; margin: 26px 0 22px; }
.cat {
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: transparent; color: var(--text-dim); font: 600 .9rem var(--font-body); cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.cat:hover { color: var(--text); border-color: rgba(201, 214, 255, .3); }
.cat[aria-pressed="true"] { color: #fff; border-color: rgba(242, 112, 30, .8); background: linear-gradient(180deg, rgba(242, 112, 30, .5), rgba(242, 112, 30, .28)); }
.cat .n { opacity: .6; margin-left: 6px; font-weight: 500; }

/* Карточки */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.card {
  position: relative; display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--surface-fade); cursor: pointer;
  --rx: 0deg; --ry: 0deg; --lift: 0px;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--lift));
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
  animation: card-in .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 35ms);
}
.card.tilt { transition: transform .08s linear, border-color .35s var(--ease), box-shadow .35s var(--ease); }
.card:hover, .card:focus-visible { --lift: -4px; border-color: rgba(242, 166, 90, .45); box-shadow: 0 22px 46px -18px rgba(0, 0, 0, .7), 0 0 0 1px rgba(242, 112, 30, .15), 0 10px 40px -12px rgba(242, 112, 30, .35); outline: none; }
.card::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit; opacity: 0; transition: opacity .3s var(--ease);
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 190, 130, .16), transparent 60%); }
.card:hover::after { opacity: 1; }
.card.featured { border-color: rgba(242, 112, 30, .45); }
.card.featured::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(90% 60% at 50% 0%, rgba(242, 112, 30, .16), transparent 70%);
}
@keyframes card-in { from { opacity: 0; translate: 0 12px; } }
@media (prefers-reduced-motion: reduce) { .card { animation: none; } }

.card-art {
  position: relative; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(70% 80% at 50% 60%, rgba(143, 168, 232, .16), transparent 70%), var(--inset);
  border-bottom: 1px solid var(--line);
}
.card-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-art img { transform: scale(1.05); }
.card-art .ph { font: 700 2.4rem var(--font-display); color: var(--silver-2); opacity: .55; }
.tag {
  position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 999px;
  font: 700 .7rem var(--font-body); letter-spacing: .06em; text-transform: uppercase;
  background: var(--orange); color: #fff;
}
.tag.badge { background: rgba(11, 14, 26, .72); color: var(--silver); border: 1px solid rgba(201, 214, 255, .2); }
.tag.hit { background: linear-gradient(90deg, #F2701E, #E0457B); }
.tag.deal { background: #2F9E6B; }
.tag + .tag { top: 42px; }
.tag + .tag + .tag { top: 72px; }
.card-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.card-cat { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--silver-2); font-weight: 600; }
.card-name { font: 600 1.05rem/1.25 var(--font-display); }
.card-desc { color: var(--text-dim); font-size: .88rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price b { font: 700 1.25rem var(--font-display); }
.price s { color: var(--text-dim); font-size: .85rem; }
.price small { color: var(--text-dim); font-size: .8rem; }
.add {
  flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(242, 112, 30, .6); background: rgba(242, 112, 30, .16); color: var(--text); cursor: pointer;
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.add:hover { background: rgba(242, 112, 30, .4); transform: scale(1.06); }
.add svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; }
.add.in { background: var(--orange); border-color: var(--orange); color: #fff; }

.skeleton { border-radius: var(--radius); height: 320px; background: linear-gradient(100deg, var(--surface-fade) 40%, var(--surface-2) 50%, var(--surface-fade) 60%) 0 0 / 300% 100%; animation: sk 1.4s linear infinite; }
@keyframes sk { to { background-position: -150% 0; } }

.shop-empty { text-align: center; padding: 60px 20px; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--text-dim); }
.shop-empty h2 { color: var(--text); font-size: 1.3rem; margin-bottom: 8px; }
.shop-empty .btn { margin-top: 18px; }

/* Мои покупки */
.mine { margin-top: 56px; }
.mine[hidden] { display: none; }
.mine h2, .how h2 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); margin-bottom: 18px; }
.mine-sum { color: var(--text-dim); margin: -8px 0 18px; }
.mine-list { display: grid; gap: 10px; }
.mine-row {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--surface-fade);
}
.mine-row img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
.mine-row .t { flex: 1; min-width: 0; }
.mine-row .t b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mine-row .t span { font-size: .82rem; color: var(--text-dim); }
.mine-row .c { font-weight: 700; font-variant-numeric: tabular-nums; }

/* Как это работает */
.how { margin-top: 56px; }
.hiw { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; position: relative; }
.hiw::before { content: ""; position: absolute; top: 44px; left: calc(16.66% + 28px); right: calc(16.66% + 28px); height: 2px;
  background: linear-gradient(90deg, rgba(242, 112, 30, .55), rgba(143, 168, 232, .35), rgba(242, 112, 30, .55)); }
.hiw-step { position: relative; display: grid; align-content: start; justify-items: center; text-align: center; gap: 8px; padding: 18px 20px 24px; border-radius: var(--radius); }
.hiw-ico { position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 6px;
  background: linear-gradient(180deg, #F2701E, #C5500C); box-shadow: 0 0 0 6px var(--bg), 0 12px 30px -8px rgba(242, 112, 30, .6); }
.hiw-ico svg { width: 26px; height: 26px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hiw-n { font: 700 .7rem var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--silver-2); }
.hiw-step b { font: 600 1.1rem var(--font-display); }
.hiw-step p { color: var(--text-dim); font-size: .92rem; line-height: 1.5; max-width: 30ch; margin: 0; }
@media (max-width: 720px) {
  .hiw { grid-template-columns: 1fr; gap: 6px; }
  .hiw::before { top: 28px; bottom: 28px; left: 47px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, rgba(242, 112, 30, .55), rgba(143, 168, 232, .35)); }
  .hiw-step { grid-template-columns: 56px 1fr; justify-items: start; text-align: left; column-gap: 16px; row-gap: 2px; padding: 12px 8px; }
  .hiw-ico { grid-row: span 3; margin: 0; }
}
.faq { margin-top: 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: start; }
@media (max-width: 720px) { .faq { grid-template-columns: 1fr; } }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-fade); padding: 0 18px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--silver-2); font-size: 1.2rem; line-height: 1; transition: rotate .25s var(--ease); }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { color: var(--text-dim); padding-bottom: 16px; line-height: 1.55; font-size: .92rem; }

/* Кнопка корзины */
.cart-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 35;
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px; border-radius: 999px;
  border: 1px solid rgba(242, 112, 30, .8); background: linear-gradient(180deg, #F2701E, #D95A0F); color: #fff;
  font: 700 .95rem var(--font-body); cursor: pointer; box-shadow: 0 12px 30px -8px rgba(242, 112, 30, .55);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.cart-fab[hidden] { display: none; }
.cart-fab svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cart-fab .cnt { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #fff; color: #D95A0F; display: grid; place-items: center; font-size: .78rem; }
.cart-fab.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.12); } }

/* Окна */
.veil { position: fixed; inset: 0; z-index: 45; background: rgba(5, 7, 15, .6); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity .3s var(--ease); }
.veil.on { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 46; width: min(440px, 100%);
  display: flex; flex-direction: column; background: var(--bg-2); border-left: 1px solid var(--line-strong);
  transform: translateX(100%); transition: transform .4s var(--ease); visibility: hidden;
}
.drawer.on { transform: none; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 1.25rem; }
.x { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; color: var(--text); cursor: pointer; font-size: 1.2rem; line-height: 1; }
.x:hover { background: var(--surface-2); }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 22px; }
.drawer-foot { padding: 18px 22px 22px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.line { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line img, .line .ph { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; background: var(--inset); display: grid; place-items: center; font: 700 1rem var(--font-display); color: var(--silver-2); }
.line .nm { font-weight: 600; font-size: .95rem; }
.line .pr { font-size: .85rem; color: var(--text-dim); margin-top: 2px; }
.line .rm { background: none; border: 0; color: var(--text-dim); cursor: pointer; font-size: .8rem; padding: 4px 0 0; text-decoration: underline; text-underline-offset: 3px; }
.line .rm:hover { color: var(--text); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; }
.qty button { width: 30px; height: 30px; border: 0; background: none; color: var(--text); cursor: pointer; font-size: 1rem; }
.qty span { min-width: 26px; text-align: center; font-variant-numeric: tabular-nums; font-size: .9rem; }
.cart-empty { text-align: center; color: var(--text-dim); padding: 50px 0; }

.field { display: grid; gap: 6px; }
.field label { font-size: .8rem; color: var(--text-dim); font-weight: 600; display: flex; justify-content: space-between; }
.field label a { color: var(--silver-2); }
.field input {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong);
  background: var(--inset); color: var(--text); font: 500 .95rem var(--font-body);
}
.field input:focus { outline: none; border-color: rgba(242, 112, 30, .7); box-shadow: 0 0 0 3px rgba(242, 112, 30, .18); }
.field input[readonly] { opacity: .8; }
.field .who { display: flex; align-items: center; gap: 10px; }
.field .who img { width: 40px; height: 40px; border-radius: 8px; image-rendering: pixelated; }
.fields2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.total { display: flex; justify-content: space-between; align-items: baseline; }
.total b { font: 700 1.5rem var(--font-display); }
.pay { width: 100%; justify-content: center; padding: 15px 24px; font-size: 1rem; border: 0; color: #fff; background: linear-gradient(180deg, #F2701E, #D95A0F); }
.pay:hover { background: linear-gradient(180deg, #FF8A4C, #F2701E); }
.pay[disabled] { opacity: .6; cursor: progress; }
.err { color: #FF8A80; font-size: .88rem; min-height: 1.2em; }
.legal { font-size: .75rem; color: var(--text-dim); line-height: 1.45; }
.legal a { color: inherit; }

.modal {
  position: fixed; left: 50%; top: 50%; z-index: 46; width: min(560px, calc(100% - 32px)); max-height: calc(100% - 40px); overflow-y: auto;
  translate: -50% -46%; opacity: 0; visibility: hidden; transition: translate .35s var(--ease), opacity .35s var(--ease), visibility .35s;
  background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: 24px;
}
.modal.on { translate: -50% -50%; opacity: 1; visibility: visible; }
.modal .x { position: absolute; top: 14px; right: 14px; z-index: 1; }
.modal-art { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--inset); }
.modal-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.modal-art .ph { font: 700 3rem var(--font-display); color: var(--silver-2); }
.modal-in { padding: 22px 24px 24px; display: grid; gap: 12px; }
.modal-in h3 { font: 600 1.4rem var(--font-display); }
.modal-in .desc { color: var(--text-dim); line-height: 1.6; white-space: pre-line; font-size: .95rem; }
.modal-in .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 6px; }

.thanks { text-align: center; padding: 34px 26px 28px; }
.thanks .moon { width: 84px; height: 84px; margin: 0 auto 16px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #FFD9B0, #F2A65A 45%, #F2701E); box-shadow: 0 0 60px rgba(242, 112, 30, .55); animation: glow 2.4s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 0 90px rgba(242, 112, 30, .8); } }
.thanks h3 { font: 600 1.5rem var(--font-display); margin-bottom: 10px; }
.thanks p { color: var(--text-dim); line-height: 1.55; }
.thanks .btn { margin-top: 20px; }

.toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 50; translate: -50% 20px; opacity: 0; pointer-events: none;
  padding: 12px 18px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-strong);
  font-size: .9rem; transition: translate .3s var(--ease), opacity .3s var(--ease);
}
.toast.on { translate: -50% 0; opacity: 1; }

body.lock { overflow: hidden; }

@media (max-width: 620px) {
  .shop { padding: 6px 16px 110px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card-body { padding: 12px 12px 14px; gap: 6px; }
  .card-name { font-size: .92rem; }
  .card-desc { display: none; }
  .price b { font-size: 1.05rem; }
  .add { width: 36px; height: 36px; }
  .tag { top: 8px; left: 8px; font-size: .62rem; padding: 3px 8px; }
  .tag + .tag { top: 34px; }
  .cart-fab { right: 16px; bottom: 16px; left: 16px; justify-content: center; }
  .fields2 { grid-template-columns: 1fr; }
  .sale-banner .sale-timer { margin-left: 0; }
}
.field .who img[hidden] { display: none; }

/* Спонсорка: сравнение сроков */
.tiers { margin: 6px 0 44px; padding: 30px; border-radius: 28px; border: 1px solid var(--line);
  background: radial-gradient(70% 90% at 50% 0%, rgba(143, 168, 232, .12), transparent 70%), var(--surface-fade); }
.tiers[hidden] { display: none; }
.tiers-head { text-align: center; max-width: 60ch; margin: 0 auto 26px; }
.tiers-head h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); margin-bottom: 10px; }
.tiers-head p { color: var(--text-dim); line-height: 1.55; }
.tiers-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.tier { position: relative; display: grid; grid-template-rows: auto auto 1fr auto; gap: 10px; padding: 20px; border-radius: 22px; cursor: pointer;
  border: 1px solid var(--line-strong); background: var(--bg-2); transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease); }
.tier:hover { transform: translateY(-4px); border-color: rgba(242, 166, 90, .5); }
.tier.best { border-color: rgba(242, 112, 30, .8); box-shadow: 0 0 0 1px rgba(242, 112, 30, .35), 0 24px 60px -24px rgba(242, 112, 30, .55);
  background: radial-gradient(90% 60% at 50% 0%, rgba(242, 112, 30, .18), transparent 70%), var(--bg-2); }
.tier-flag { position: absolute; top: -12px; left: 50%; translate: -50% 0; white-space: nowrap; padding: 5px 12px; border-radius: 999px;
  font: 700 .7rem var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: #fff; background: linear-gradient(90deg, #F2701E, #E0457B); }
.tier-art { aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: var(--inset); }
.tier-art img { width: 100%; height: 100%; object-fit: cover; }
.tier-name { font: 600 1.15rem var(--font-display); }
.tier-tag { color: var(--text-dim); font-size: .88rem; line-height: 1.45; }
.tier-foot { display: flex; align-items: end; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.tier-price b { display: block; font: 700 1.7rem var(--font-display); }
.tier-price span { color: var(--text-dim); font-size: .82rem; }
.tier-price .save { color: #5FD39A; font-weight: 600; }
.tier .btn { padding: 11px 18px; }
.perks-list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 22px; }
.perks-list li { color: var(--text-dim); font-size: .88rem; line-height: 1.5; padding-left: 18px; position: relative; }
.perks-list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; rotate: 45deg; background: var(--orange); border-radius: 2px; }
.perks-list b { display: block; color: var(--text); font-weight: 600; margin-bottom: 2px; }
@media (max-width: 900px) { .tiers-row { grid-template-columns: 1fr; } .perks-list { grid-template-columns: 1fr 1fr; } .tier { grid-template-columns: 120px 1fr; grid-template-rows: auto; column-gap: 16px; } .tier-art { grid-row: span 3; aspect-ratio: 1; } .tier-foot { grid-column: 1 / -1; } }
@media (max-width: 620px) { .tiers { padding: 20px 14px; border-radius: 22px; } .perks-list { grid-template-columns: 1fr; } .tier { grid-template-columns: 84px 1fr; } }

/* Срок на карточке и короткое описание */
.term { position: absolute; top: 12px; right: 12px; z-index: 1; padding: 4px 10px; border-radius: 999px; font: 700 .68rem var(--font-body); letter-spacing: .04em;
  background: rgba(11, 14, 26, .78); color: var(--silver); border: 1px solid rgba(201, 214, 255, .2); }
.term.forever { color: #2A1600; background: linear-gradient(90deg, #FFD08A, #F2A65A); border-color: transparent; }
.card-tagline { color: var(--text-dim); font-size: .88rem; line-height: 1.45; }
@media (max-width: 620px) { .term { top: 8px; right: 8px; font-size: .6rem; padding: 3px 7px; } .card-tagline { font-size: .78rem; } }

/* Значки тегов в окне товара — настоящие иконки из ресурспака сервера */
.icons-h { font: 600 .95rem var(--font-display); margin-top: 6px; }
.icons-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; max-height: 300px; overflow-y: auto; padding-right: 4px; }
.ic { margin: 0; display: grid; justify-items: center; gap: 6px; padding: 10px 4px 8px; border-radius: 12px; background: var(--inset); border: 1px solid var(--line); }
.ic img { width: 36px; height: 36px; object-fit: contain; image-rendering: pixelated; }
.ic figcaption { font-size: .7rem; color: var(--text-dim); text-align: center; line-height: 1.2; }

/* Окно товара: слева обложка целиком, справа текст; на телефоне — друг под другом */
.modal { width: min(920px, calc(100% - 32px)); overflow: hidden; display: flex; }
#product-body { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); width: 100%; max-height: calc(100dvh - 40px); }
#product-body .modal-art { align-self: stretch; aspect-ratio: auto; display: grid; place-items: center; border-right: 1px solid var(--line);
  background: #141A33; }
#product-body .modal-art img { height: auto; aspect-ratio: 1; object-fit: contain;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent); }
#product-body .modal-in { overflow-y: auto; padding: 28px 28px 24px; align-content: start; }
#product-body .modal-in h3 { font-size: 1.6rem; line-height: 1.15; padding-right: 40px; }
#product-body .row { position: sticky; bottom: -24px; margin: 8px -28px -24px; padding: 16px 28px 20px; background: linear-gradient(180deg, transparent, var(--bg-2) 30%); }
@media (max-width: 760px) {
  .modal { max-height: calc(100dvh - 24px); }
  #product-body { grid-template-columns: 1fr; overflow-y: auto; max-height: calc(100dvh - 24px); }
  #product-body .modal-art { border-right: 0; border-bottom: 1px solid var(--line); max-height: 46vh; aspect-ratio: auto; }
  #product-body .modal-in { overflow: visible; padding: 20px; }
  #product-body .row { margin: 8px -20px -20px; padding: 14px 20px 18px; bottom: 0; }
}

/* Витрина хитов в шапке — веер обложек */
.sky-in { position: relative; }
.sky-show { position: absolute; z-index: 0; right: max(20px, calc((100% - var(--container)) / 2 + 10px)); top: 128px; width: 470px; height: 380px; }
.show-card { position: absolute; top: 40px; width: 230px; border-radius: 22px; overflow: hidden; display: block; color: #fff; text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8), 0 0 0 1px rgba(0, 0, 0, .3);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.show-card img { display: block; width: 100%; height: auto; }
.show-card span { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px; font: 600 .9rem var(--font-display);
  background: linear-gradient(180deg, transparent, rgba(5, 7, 15, .85)); }
.show-card.s1 { left: 0; transform: rotate(-9deg) translateY(30px); }
.show-card.s3 { right: 0; transform: rotate(9deg) translateY(30px); }
.show-card.s2 { left: 50%; top: 0; width: 260px; margin-left: -130px; z-index: 1; transform: none; border-color: rgba(255, 196, 64, .55);
  box-shadow: 0 40px 80px -24px rgba(0, 0, 0, .85), 0 0 60px -10px rgba(255, 170, 60, .45); }
.show-card:hover { box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .9), 0 0 50px -6px rgba(242, 112, 30, .6); }
.show-card.s1:hover { transform: rotate(-11deg) translate(-10px, 14px); }
.show-card.s3:hover { transform: rotate(11deg) translate(10px, 14px); }
.show-card.s2:hover { transform: translateY(-10px) scale(1.02); }
@media (max-width: 1100px) { .sky-show { width: 360px; height: 300px; top: 150px; } .show-card { width: 170px; } .show-card.s2 { width: 200px; margin-left: -100px; } }
@media (min-width: 901px) { .sky-moon { display: none; } }
@media (max-width: 900px) { .sky-show { display: none; } }

/* Карточка-семейство: переключатель срока */
.fam { display: grid; }
.fam > .card { height: 100%; }
.seg { display: flex; gap: 4px; padding: 4px; margin-top: 4px; border-radius: 12px; background: var(--inset); border: 1px solid var(--line); }
.seg button { flex: 1; min-width: 0; padding: 7px 6px; border: 0; border-radius: 9px; background: transparent; color: var(--text-dim);
  font: 600 .78rem var(--font-body); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background-color .2s var(--ease), color .2s var(--ease); }
.seg button:hover { color: var(--text); }
.seg button.on { background: linear-gradient(180deg, rgba(242, 112, 30, .55), rgba(242, 112, 30, .3)); color: #fff; }

/* Блоки в окне товара */
.sec { display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.sec-h { font: 600 1rem var(--font-display); color: var(--text); }
.sec-note { font-size: .78rem; color: var(--text-dim); }
.perk-groups { display: grid; gap: 8px; }
.perk-grp { border: 1px solid var(--line); border-radius: 14px; background: var(--inset); overflow: hidden; }
.perk-grp summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 11px 14px; }
.perk-grp summary::-webkit-details-marker { display: none; }
.perk-grp summary::after { content: "+"; margin-left: 8px; color: var(--silver-2); transition: rotate .25s var(--ease); }
.perk-grp[open] summary::after { rotate: 45deg; }
.perk-grp .pi { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: rgba(242, 112, 30, .16); font-size: .95rem; }
.perk-grp .pn { margin-left: auto; font-size: .75rem; color: var(--text-dim); }
.perk-grp ul { list-style: none; margin: 0; padding: 0 14px 12px; display: grid; gap: 7px; }
.perk-grp li { display: flex; gap: 10px; align-items: baseline; font-size: .86rem; color: var(--text-dim); line-height: 1.4; }
.perk-grp code { flex: none; font: 600 .78rem/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; color: #FFC27A; background: rgba(242, 112, 30, .14);
  border: 1px solid rgba(242, 112, 30, .3); padding: 1px 8px; border-radius: 7px; }
.cmp { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(calc(var(--cols) - 1), minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-size: .84rem; }
.cmp > div { padding: 9px 12px; border-bottom: 1px solid var(--line); }
.cmp > div:nth-last-child(-n + 3) { border-bottom: 0; }
.cmp-h { font-weight: 700; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--silver-2); background: var(--inset); }
.cmp-h:last-child { color: #FFC27A; }
.cmp-l { color: var(--text); }
.cmp-v { color: var(--text-dim); text-align: center; }
.cmp-v.last { color: #FFD9B0; font-weight: 600; background: rgba(242, 112, 30, .08); }
.cmp-v.yes { color: #5FD39A; font-weight: 700; } .cmp-v.no { color: var(--text-dim); opacity: .6; }
.lvl { list-style: none; margin: 0; padding: 0 0 0 4px; display: grid; gap: 0; position: relative; }
.lvl::before { content: ""; position: absolute; left: 21px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(180deg, rgba(242, 112, 30, .6), rgba(143, 168, 232, .3)); }
.lvl li { display: flex; align-items: center; gap: 12px; padding: 4px 0; font-size: .86rem; color: var(--text-dim); position: relative; }
.lvl b { flex: none; width: 36px; height: 26px; border-radius: 8px; display: grid; place-items: center; font: 700 .78rem var(--font-display); background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--text); z-index: 1; }
.lvl li.plus { color: #FFD9B0; }
.lvl li.plus b { background: linear-gradient(180deg, #F2701E, #C5500C); border-color: transparent; color: #fff; }
.legend { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(160, 90, 240, .45);
  background: radial-gradient(80% 120% at 0% 50%, rgba(160, 90, 240, .22), transparent 70%), var(--inset); }
.lg-ico { font-size: 1.6rem; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(160, 90, 240, .25); }
.legend b { display: block; font: 600 1.05rem var(--font-display); }
.legend span:not(.lg-ico) { font-size: .82rem; color: var(--text-dim); }
.scale { display: flex; align-items: flex-end; justify-content: space-around; gap: 8px; padding: 16px 12px 10px; border-radius: 14px; background: linear-gradient(180deg, var(--inset), rgba(242, 112, 30, .06)); border: 1px solid var(--line); }
.scale figure { margin: 0; display: grid; justify-items: center; gap: 6px; }
.scale img { width: auto; image-rendering: pixelated; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .5)); }
.scale figcaption { font: 700 .78rem var(--font-display); color: var(--text-dim); }
.chip-grp { display: grid; gap: 6px; }
.chip-t { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--silver-2); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 5px 11px; border-radius: 999px; font-size: .8rem; background: var(--inset); border: 1px solid var(--line); color: var(--text); }
.msteps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: ms; }
.msteps li { counter-increment: ms; display: flex; gap: 12px; align-items: flex-start; font-size: .88rem; color: var(--text-dim); line-height: 1.45; }
.msteps li::before { content: counter(ms); flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font: 700 .8rem var(--font-display); color: #fff; background: linear-gradient(180deg, #F2701E, #C5500C); }
.bonus { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; border: 1px dashed rgba(95, 211, 154, .5); background: rgba(95, 211, 154, .08); }
.bonus > span { font-size: 1.4rem; }
.bonus b { display: block; color: #8BE7B7; } .bonus div span { font-size: .82rem; color: var(--text-dim); }
.sec-wiki { border-top: 0; padding-top: 4px; }
.wiki-link { font-weight: 600; font-size: .88rem; color: var(--silver); text-decoration: none; }
.wiki-link:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
