/* 24.11: доработка витрины поверх ns-shop.css. Ничего не заменяет, только добавляет. */

/* карточки: свечение от акцентного цвета и мягкий подъём */
.ns-store .product-card { transition: transform .22s cubic-bezier(.2,.7,.2,1), border-color .22s, box-shadow .22s; }
.ns-store .product-card:hover { box-shadow: 0 0 0 1px var(--red-dim), 0 22px 44px -22px rgba(229, 9, 20, .5); }
.ns-store .product-card:focus-within { outline: 2px solid var(--red); outline-offset: 3px; }

/* страница товара: панель заказа остаётся на экране при прокрутке карточки */
@media (min-width: 900px) {
  .ns-store .item-layout { align-items: start; }
  .ns-store .order-panel { position: sticky; top: 88px; }
}

/* кнопка оформления прилипает к низу экрана на телефоне */
@media (max-width: 640px) {
  .ns-store .order-panel form > .btn--main {
    position: sticky; bottom: 12px; z-index: 5;
    box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .9), 0 0 0 4px var(--surface);
  }
}

/* итог: цифра крупнее */
.ns-store .order-total output { font-family: "Unbounded", "Onest", sans-serif; font-size: clamp(18px, 2vw, 24px); font-variant-numeric: tabular-nums; }

/* блок доверия */
.ns-trust { display: grid; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
@media (min-width: 900px) { .ns-trust { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ns-trust li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface-2); }
.ns-trust svg { width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: rgba(229, 9, 20, .12); color: #ff5a62; }
.ns-trust b { display: block; font-size: 14px; }
.ns-trust span { color: var(--dim); font-size: 12.5px; line-height: 1.4; }

/* как это работает: настоящая последовательность, поэтому нумерация уместна */
.ns-how { margin: 22px 0 8px; padding: clamp(18px, 3vw, 30px); border: 1px solid var(--line); border-radius: var(--r-panel);
  background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
.ns-how h2 { margin: 0 0 18px; font-size: clamp(18px, 2vw, 24px); }
.ns-how ol { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.ns-how li { position: relative; padding: 16px 16px 16px 58px; border-radius: var(--r-card); background: var(--bg); border: 1px solid var(--line); counter-increment: s; }
.ns-how li::before { content: counter(s); position: absolute; left: 14px; top: 14px; width: 32px; height: 32px; display: grid; place-items: center;
  border-radius: 50%; background: var(--red); color: #fff; font: 700 14px "Unbounded", sans-serif; box-shadow: 0 6px 16px -6px var(--red); }
.ns-how b { display: block; margin-bottom: 4px; font-size: 14.5px; }
.ns-how span { color: var(--dim); font-size: 13px; line-height: 1.45; }

/* частые вопросы без скриптов */
.ns-faq { margin: 14px 0 40px; display: grid; gap: 8px; }
.ns-faq details { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface-2); overflow: hidden; }
.ns-faq summary { cursor: pointer; padding: 15px 18px; font-weight: 600; font-size: 14.5px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.ns-faq summary::-webkit-details-marker { display: none; }
.ns-faq summary::after { content: "+"; color: var(--dim); font-size: 20px; line-height: 1; transition: transform .2s; }
.ns-faq details[open] summary::after { transform: rotate(45deg); color: var(--red); }
.ns-faq details p { margin: 0; padding: 0 18px 16px; color: var(--ink-2); font-size: 13.5px; line-height: 1.55; }

/* строка преимуществ на главной */
.ns-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ns-chips span { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: var(--r-round);
  border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .03); color: var(--ink-2); font-size: 12.5px; }
.ns-chips i { width: 6px; height: 6px; border-radius: 50%; background: var(--good); box-shadow: 0 0 8px var(--good); }

@media (prefers-reduced-motion: reduce) {
  .ns-store .product-card, .ns-faq summary::after { transition: none; }
  .ns-store .product-card:hover { transform: none; }
}

/* выданные коды на странице заказа */
.pins { margin: 20px 0 4px; padding: 18px; border: 1px solid var(--line-strong); border-radius: var(--r-card); background: var(--surface-2); text-align: left; }
.pins h2 { margin: 0 0 12px; font-size: 16px; }
.pins ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pins code { display: block; padding: 12px 14px; border-radius: var(--r-chip); background: var(--bg); border: 1px solid var(--line);
  font: 600 15px/1.2 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; letter-spacing: .06em; user-select: all; overflow-wrap: anywhere; }
.pins p { margin: 12px 0 0; color: var(--dim); font-size: 12.5px; }

/* 24.11: лёгкая доводка, без смены раскладки и логотипа */
.hdr { backdrop-filter: blur(10px); }
.ns-store .results-heading :is(h1,h2) { letter-spacing: -.02em; }
.ns-store .product-card:hover { transform: translateY(-3px); }
.ns-store .catalog-category { transition: background .18s, border-color .18s, color .18s; }

/* ===== 01.12: общее ===== */
html { color-scheme: dark; }
a, button, summary, label { -webkit-tap-highlight-color: rgba(229, 9, 20, .18); touch-action: manipulation; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--red); color: #fff; font-weight: 600; }
.skip:focus-visible { top: 10px; }
#main, #games, #how, #hits, #catalog { scroll-margin-top: 84px; }
.hdr__nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.hdr__find { display: grid; place-items: center; width: 40px; height: 40px; margin-left: 4px; border-radius: 50%; border: 1px solid var(--line); color: var(--ink-2); flex: none; }
.hdr__find:hover { color: #fff; border-color: var(--line-strong); background: var(--surface-2); }
.tabbar { display: none; }
@media (max-width: 860px) { .hdr__find { margin-left: auto; } .hdr__find ~ .tgin, .hdr__find ~ .me { margin-left: 4px; } .hdr__nav { display: none; } .tgin, .me { margin-left: auto; } }
@media (min-width: 641px) and (max-width: 860px) { .hdr__nav { display: flex; } .hdr__nav a:not(:nth-child(-n+2)) { display: none; } .hdr__find { margin-left: 4px; } .tgin, .me { margin-left: 4px; } }
@media (max-width: 640px) {
  .tabbar { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: rgba(12, 12, 13, .96); border-top: 1px solid var(--line-strong); backdrop-filter: blur(12px); }
  .tabbar a { display: grid; justify-items: center; gap: 3px; padding: 6px 2px; border-radius: 10px; color: var(--dim); font-size: 11px; font-weight: 600; min-height: 48px; }
  .tabbar a[aria-current="page"] { color: #fff; }
  .tabbar a[aria-current="page"] svg { color: var(--red); }
  body:has(.tabbar) { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
}

/* каталог: разделы и буквы вместо страниц */
.ns-store .group { margin: 0 0 clamp(26px, 3.6vw, 44px); }
.ns-store .results-heading + .group { margin-top: 6px; }
.ns-store .group__head h2 { margin: 0; }
.ns-store .group__head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin: 0 0 12px; }
.ns-store .group__head h2 { font-size: clamp(19px, 2.2vw, 26px); }
.ns-store .group__head a { color: var(--ink-2); font-size: 13.5px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ns-store .group__head a:hover { color: #fff; }
.ns-store .letters { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 16px; }
.ns-store .letters a { min-width: 34px; height: 34px; padding: 0 9px; display: grid; place-items: center; border-radius: 9px; background: var(--surface-2); color: var(--ink-2); font-size: 13px; font-weight: 600; }
.ns-store .letters a:hover { background: var(--surface-3); color: #fff; }
.ns-store .letters a[aria-current="page"] { background: var(--red); color: #fff; }
@media (max-width: 640px) {
  .ns-store .letters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
  .ns-store .letters a { flex: none; }
}


/* страница игры: четыре пакета - два ряда по два, без одинокой карточки */
@media (min-width: 621px) { .packs:has(> .pack:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* логотип с постоянными рогами и зубами */
.logo .imp { margin: 4px 0 3px 4px; }

/* ---------- робуксы с автовыдачей ---------- */
.rbx-packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.rpack { display: grid; gap: 6px; align-content: start; padding: 16px; text-align: left; border-radius: 14px; background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .16s, background-color .16s, transform .12s; }
.rpack:hover:not(:disabled) { box-shadow: inset 0 0 0 1px var(--line-strong); background: var(--surface-3); }
.rpack:active:not(:disabled) { transform: scale(.98); }
.rpack b { font: 700 17px/1.2 'Unbounded', 'Onest', sans-serif; letter-spacing: -.02em; }
.rpack span { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.rpack small { color: #4cc2ff; font-size: 12px; font-weight: 600; }
.rpack.is-on { background: rgba(0, 162, 255, .12); box-shadow: inset 0 0 0 2px #00A2FF; }
.rpack:disabled { opacity: .45; cursor: not-allowed; }
.rpack:disabled small { color: var(--dim); }
.rbx-sub { font-size: clamp(17px, 2vw, 22px); margin: 26px 0 12px; }
.rbx-steps { margin: 34px 0 40px; max-width: 760px; }
.rbx-steps h2 { font-size: clamp(18px, 2.2vw, 24px); margin-bottom: 12px; }
.rbx-path { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: r; }
.rbx-path li { display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 14px; align-items: start; counter-increment: r; }
.rbx-path li::before { content: counter(r); grid-row: span 2; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px 10px 10px 3px;
  background: linear-gradient(172deg, #FF3640, var(--red) 46%, #A0060E); box-shadow: 0 3px 0 #5C0308; font: 700 13px 'Unbounded', sans-serif; }
.rbx-path span { color: var(--ink-2); font-size: 14px; }
.rbx-state { display: grid; justify-items: center; gap: 10px; margin: 18px 0; }
.rbx-state p { color: var(--dim); font-size: 13px; text-align: center; max-width: 42ch; }
@media (max-width: 620px) { .rbx-packs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rpack { padding: 13px; } .rpack b { font-size: 15px; } }
