/* Тёмная витрина с лаймовым акцентом. Шрифты: Unbounded для заголовков, Manrope для текста. */
:root {
  --bg: #121212;
  --bg-2: #1a1a1a;
  --card: #1f1f1f;
  --card-2: #262626;
  --line: #2f2f2f;
  --text: #f2f2f2;
  --muted: #9a9a9a;
  --accent: #c8ff00;
  --accent-ink: #141414;
  --sky: #1e96c8;
  --danger: #ff5a5a;
  --display: "Unbounded", "Segoe UI", system-ui, sans-serif;
  --body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --radius: 18px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}
* { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.55 var(--body); -webkit-text-size-adjust: 100%; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: -.01em; text-wrap: balance; }
h2 { font-size: clamp(22px, 3vw, 30px); line-height: 1.15; }
.wrap { max-width: 1200px; margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.section { padding-block: clamp(36px, 6vw, 64px); display: grid; gap: 22px; }
.muted { color: var(--muted); }

/* Шапка */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(10, 17, 18, .94); backdrop-filter: blur(12px); }
.top .wrap { display: flex; align-items: center; gap: 18px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font: 800 19px/1 var(--display); white-space: nowrap; }
.logo i { width: 34px; height: 34px; border-radius: 10px; background: var(--accent); display: grid; place-items: center; color: var(--accent-ink); font-style: normal; font-size: 18px; transform: rotate(-8deg); }
.nav { display: flex; gap: 6px; }
.nav a { padding: 8px 14px; border-radius: 999px; color: var(--muted); font-weight: 600; transition: color .2s, background .2s; }
.nav a:hover { color: var(--text); background: var(--card); }
.search { flex: 1; max-width: 360px; margin-left: auto; position: relative; }
.search input { width: 100%; height: 42px; padding: 0 16px 0 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-2); outline: none; transition: border-color .2s; }
.search input:focus { border-color: var(--accent); }
.search svg { position: absolute; left: 14px; top: 12px; width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; }
.tg-btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 999px; background: var(--card); font-weight: 700; white-space: nowrap; }

/* Баннер-слайдер */
.hero { position: relative; border-radius: 26px; overflow: hidden; min-height: 300px; display: grid; }
.slide { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: 20px; padding: clamp(24px, 5vw, 52px); background: var(--c1); opacity: 0; visibility: hidden; transition: opacity .6s, visibility .6s; }
.slide.on { opacity: 1; visibility: visible; }
.slide h1 { font-size: clamp(26px, 4.4vw, 46px); line-height: 1.08; }
.slide p { color: #d6d6d6; max-width: 44ch; margin-top: 12px; }
.slide .btn { margin-top: 22px; }
.slide-art { justify-self: center; width: min(100%, 300px); aspect-ratio: 1; border-radius: 40px; display: grid; place-items: center; font-size: clamp(90px, 14vw, 160px); color: var(--c1); background: var(--c2); box-shadow: 0 30px 70px rgba(0, 0, 0, .5); transform: rotate(6deg); animation: floaty 6s ease-in-out infinite alternate; }
@keyframes floaty { to { transform: rotate(-3deg) translateY(-10px); } }
.dots { position: absolute; left: clamp(24px, 5vw, 52px); bottom: 20px; display: flex; gap: 8px; }
.dots button { width: 28px; height: 6px; border-radius: 6px; border: 0; background: rgba(255, 255, 255, .3); padding: 0; transition: background .3s, width .3s; }
.dots button.on { background: var(--accent); width: 44px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 26px; border-radius: 14px; border: 0; background: var(--accent); color: var(--accent-ink); font-weight: 800; transition: transform .15s, box-shadow .2s, opacity .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(200, 255, 0, .25); }
.btn:disabled { opacity: .45; transform: none; box-shadow: none; cursor: not-allowed; }
.btn.ghost { background: var(--card); color: var(--text); }

/* Фильтры и каталог */
.head-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent; font-weight: 600; color: var(--muted); transition: all .2s; }
.chip:hover { color: var(--text); }
.chip.on { background: var(--text); border-color: var(--text); color: var(--bg); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.tile { position: relative; display: grid; gap: 10px; padding: 10px 10px 14px; border-radius: var(--radius); background: var(--card); transition: transform .2s, background .2s; }
.tile:hover { transform: translateY(-4px); background: var(--card-2); }
.tile-art { aspect-ratio: 1; border-radius: 13px; display: grid; place-items: center; font-size: 64px; color: #fff; background: var(--c1); overflow: hidden; }
.tile b { font-weight: 700; font-size: 15px; line-height: 1.25; padding-inline: 4px; }
.tile .from { padding-inline: 4px; font-size: 13px; color: var(--muted); }
.badge { position: absolute; top: 18px; left: 18px; padding: 3px 9px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 800; }
.empty { padding: 30px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }

/* Шаги и преимущества */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; counter-reset: s; }
.step { padding: 22px; border-radius: var(--radius); background: var(--card); display: grid; gap: 8px; }
.step::before { counter-increment: s; content: counter(s); width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font: 800 18px/1 var(--display); }
.step b { font-size: 17px; }

/* Статьи */
.articles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.article { padding: 20px; border-radius: var(--radius); background: var(--card); display: grid; gap: 10px; align-content: start; transition: background .2s; }
.article:hover { background: var(--card-2); }
.article small { color: var(--accent); font-weight: 700; }
.article b { font-size: 17px; line-height: 1.3; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { border-radius: 14px; background: var(--card); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 54px 18px 20px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; translate: 0 -50%; font: 400 26px/1 var(--display); color: var(--accent); transition: rotate .2s; }
.faq details[open] summary::after { rotate: 45deg; }
.faq p { padding: 0 20px 18px; color: #c9c9c9; max-width: 70ch; }

/* Подвал */
footer { background: var(--bg-2); margin-top: 30px; padding-block: 40px 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: 30px; }
footer h3 { color: var(--text); font-size: 15px; margin-bottom: 10px; }
footer ul { display: grid; gap: 6px; }
footer a:hover { color: var(--text); }

/* Страница игры */
.crumbs { font-size: 14px; color: var(--muted); padding-top: 22px; }
.crumbs a:hover { color: var(--text); }
.game-head { display: flex; align-items: center; gap: 20px; }
.game-head .tile-art { width: 96px; font-size: 44px; flex: none; }
.game-head h1 { font-size: clamp(24px, 3.6vw, 38px); line-height: 1.1; }
.notice { padding: 14px 18px; border-radius: 14px; background: rgba(30, 150, 200, .14); border: 1px solid rgba(30, 150, 200, .4); color: #cfeaf6; }
.shop { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: start; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.item { position: relative; display: grid; gap: 14px; align-content: space-between; min-height: 150px; padding: 18px; border-radius: var(--radius); border: 2px solid transparent; background: var(--card); text-align: left; transition: border-color .2s, transform .15s, background .2s; }
.item:hover { background: var(--card-2); }
.item:active { transform: scale(.98); }
.item.on { border-color: var(--accent); background: #22260f; }
.item b { font-size: 16px; line-height: 1.3; }
.item .price { font: 700 20px/1 var(--display); white-space: nowrap; }
.item > div { flex-wrap: wrap; row-gap: 10px; }
.item .tag { position: absolute; top: -9px; right: 14px; padding: 3px 9px; border-radius: 999px; background: var(--sky); color: #fff; font-size: 12px; font-weight: 800; }
.item .qty { display: flex; align-items: center; gap: 8px; }
.qty button { width: 32px; height: 32px; border-radius: 10px; border: 0; background: var(--card-2); font-weight: 800; }
.qty span { min-width: 22px; text-align: center; font-weight: 700; }

.order { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 86px); padding: 22px; border-radius: 22px; background: var(--bg-2); border: 1px solid var(--line); display: grid; gap: 16px; }
.order h2 { font-size: 20px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; color: #cfcfcf; }
.field input, .field select { height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); outline: none; transition: border-color .2s; width: 100%; }
.field input:focus, .field select:focus { border-color: var(--accent); }
.field input.bad { border-color: var(--danger); }
.field small { color: var(--muted); font-size: 13px; }
.pay { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pay label { display: grid; place-items: center; gap: 2px; height: 58px; border-radius: 12px; border: 2px solid var(--line); background: var(--card); font-weight: 700; cursor: pointer; transition: border-color .2s; text-align: center; font-size: 14px; }
.pay input { position: absolute; opacity: 0; pointer-events: none; }
.pay label:has(input:checked) { border-color: var(--accent); }
.pay small { font-weight: 500; color: var(--muted); font-size: 12px; }
.promo { display: flex; gap: 8px; }
.promo input { flex: 1; }
.promo .btn { height: 48px; padding: 0 16px; }
.lines { display: grid; gap: 6px; font-size: 15px; }
.lines div { display: flex; justify-content: space-between; gap: 12px; }
.lines .total { font: 700 22px/1.2 var(--display); padding: 10px 12px; margin-top: 6px; border-radius: 12px; background: var(--card); }
.lines .disc { color: var(--accent); }
.cart-empty { color: var(--muted); font-size: 15px; }
.legal { font-size: 12px; color: var(--muted); }
.legal input { accent-color: var(--accent); }

.desc { display: grid; gap: 12px; max-width: 75ch; color: #d0d0d0; }
.desc h2 { color: var(--text); }

/* Окно заказа */
dialog { border: 0; padding: 0; border-radius: 24px; background: var(--bg-2); color: var(--text); width: min(92vw, 440px); }
dialog::backdrop { background: rgba(0, 0, 0, .7); backdrop-filter: blur(4px); }
dialog[open] { animation: pop .35s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes pop { from { transform: scale(.9); opacity: 0; } }
.modal { padding: 28px; display: grid; gap: 14px; text-align: center; justify-items: center; }
.modal .ok { width: 70px; height: 70px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 34px; font-weight: 800; }
.modal h2 { font-size: 22px; }

/* Нижняя панель заказа на телефоне */
.mbar { display: none; }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); translate: -50% 0; z-index: 50; padding: 12px 18px; border-radius: 12px; background: var(--text); color: var(--bg); font-weight: 700; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }

@media (max-width: 980px) {
  .shop { grid-template-columns: minmax(0, 1fr); }
  .order { position: static; }
}
@media (max-width: 760px) {
  .nav, .tg-btn { display: none; }
  .top .wrap { height: 60px; gap: 12px; }
  .logo { font-size: 16px; }
  .search { max-width: none; }
  .slide { grid-template-columns: minmax(0, 1fr); padding-bottom: 54px; }
  .slide-art { display: none; }
  .hero { min-height: 260px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tile-art { font-size: 48px; }
  .items { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .item { padding: 14px; min-height: 130px; }
  .item b { font-size: 14px; }
  .item .price { font-size: 17px; }
  footer .wrap { grid-template-columns: minmax(0, 1fr); }
  .mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px var(--gutter-r) calc(12px + env(safe-area-inset-bottom, 0px)) var(--gutter-l); background: #0f1819; box-shadow: 0 -12px 30px rgba(0, 0, 0, .55); }
  .mbar b { font: 700 18px/1.2 var(--display); }
  .mbar .btn { height: 46px; }
  body.has-mbar footer { padding-bottom: 110px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
