/* KeidoShop — цвета прайс-листа (лаванда, зелёные цены, фиолетовые рамки, бирюза)
   и ночной фиолетовый логотипа и баннеров бота. */
:root {
  --night: #2b2156;
  --night-2: #3a2d72;
  --purple: #4b2d9f;
  --purple-2: #73649e;
  --lav: #ab9cd5;
  --lav-2: #cfc5ec;
  --lav-3: #efebfa;
  --paper: #f7f5fc;
  --teal: #78a5a3;
  --teal-2: #5d8f8d;
  --teal-3: #e3eeed;
  --green: #89c265;
  --green-2: #6aa548;
  --green-3: #eaf5e2;
  --ink: #261d45;
  --muted: #6b628a;
  --white: #fff;
  --danger: #c4456b;
  --r: 18px;
  --r-sm: 12px;
  --line: 2px solid var(--purple);
  --shadow: 0 6px 0 rgba(75, 45, 159, .14);
  --font-head: "Comfortaa", "Nunito", system-ui, sans-serif;
  --font: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/1.55 var(--font); overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--purple); }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 6px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--white); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.wrap--narrow { max-width: 760px; }
.muted { color: var(--muted); font-size: 14px; }

/* ── Кнопки ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: var(--line);
  font: 700 16px/1 var(--font-head); text-decoration: none; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  box-shadow: 0 4px 0 var(--purple);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--purple); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--purple); }
.btn--green { background: var(--green); color: var(--ink); }
.btn--light { background: var(--lav-3); color: var(--ink); }
.btn--ghost { background: var(--white); color: var(--purple); }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: 14px; box-shadow: 0 3px 0 var(--purple); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: wait; transform: none; }
.linkbtn { background: none; border: 0; padding: 6px 0; color: var(--danger); font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ── Шапка ──────────────────────────────────────────── */
.top { position: sticky; top: 0; z-index: 40; background: var(--night); color: var(--white); border-bottom: 3px solid var(--purple); }
.top__row { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font: 700 20px/1 var(--font-head); }
.brand img { border-radius: 12px; border: 2px solid var(--lav); }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a { color: var(--lav-2); text-decoration: none; font-weight: 700; padding: 8px 12px; border-radius: 999px; }
.nav a:hover { background: var(--night-2); color: var(--white); }
.top__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.top .btn--ghost { box-shadow: 0 3px 0 #1a1438; }
.who { display: inline-flex; align-items: center; gap: 8px; color: var(--white); text-decoration: none; font-weight: 700; padding: 4px 12px 4px 4px; border-radius: 999px; background: var(--night-2); }
.who img, .who__ph { width: 30px; height: 30px; border-radius: 50%; }
.who__ph { display: inline-grid; place-items: center; background: var(--lav); color: var(--night); font: 700 14px/1 var(--font-head); }
.who__ph--big { width: 56px; height: 56px; font-size: 24px; }
.cartbtn { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--lav); background: var(--night-2); color: var(--white); cursor: pointer; }
.cartbtn:hover { background: var(--purple); }
.cartbtn__n { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--green); color: var(--ink); font: 800 12px/22px var(--font); text-align: center; border: 2px solid var(--night); }
.cartbtn.bump { animation: bump .35s ease; }
@keyframes bump { 40% { transform: scale(1.15); } }

/* ── Первый экран ───────────────────────────────────── */
.hero { position: relative; overflow: hidden; background: var(--night); color: var(--white); }
.hero__art { position: absolute; inset: 0; background: center right / cover no-repeat; }
.hero__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--night) 0%, rgba(43, 33, 86, .92) 38%, rgba(43, 33, 86, .35) 75%, rgba(43, 33, 86, .15) 100%); }
.hero__in { position: relative; padding-top: 72px; padding-bottom: 64px; }
.hero__kicker { display: inline-block; margin-bottom: 18px; padding: 6px 14px; border-radius: 999px; background: rgba(171, 156, 213, .2); border: 1px solid rgba(171, 156, 213, .5); color: var(--lav-2); font: 700 14px/1.2 var(--font-head); }
.hero h1 { font-size: clamp(32px, 5vw, 54px); max-width: 17ch; margin-bottom: 18px; }
.hero__lead { max-width: 560px; font-size: 18px; color: #e6e0f7; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 36px; }
.hero .btn { box-shadow: 0 4px 0 #160f33; border-color: #160f33; }
.hero__facts { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; }
.hero__facts li { padding: 10px 16px; border-radius: var(--r-sm); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); color: var(--lav-2); font-size: 14px; }
.hero__facts b { display: block; color: var(--white); font: 700 16px/1.3 var(--font-head); }

/* ── Секции ─────────────────────────────────────────── */
.sec { padding: 56px 0; }
.sec--tight { padding-top: 28px; }
.sec--teal { background: var(--teal); }
.sec__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.sec__more { font-weight: 800; text-decoration: none; }
/* Заголовок-плашка, как названия в прайс-листе */
.stripe {
  display: inline-block; margin: 0 0 20px; padding: 10px 22px; border: var(--line); border-radius: var(--r-sm);
  background: var(--lav); color: var(--ink); font-size: clamp(22px, 3vw, 28px); box-shadow: var(--shadow);
}
.sec__head .stripe { margin: 0; }
.empty { text-align: center; color: var(--muted); padding: 32px; }
.card { background: var(--white); border: var(--line); border-radius: var(--r); box-shadow: var(--shadow); }

/* ── Игры ───────────────────────────────────────────── */
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 20px; }
/* Карточка игры: только крупный логотип, название, способы и цена */
.gcard {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 22px 16px 18px;
  color: var(--ink); text-decoration: none; background: var(--white); border: var(--line); border-radius: var(--r);
  box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.gcard:hover { transform: translateY(-4px); box-shadow: 0 10px 0 rgba(75, 45, 159, .18); background: var(--lav-3); }
.gcard .glogo { width: 132px; height: 132px; margin-bottom: 4px; transition: transform .2s ease; }
.gcard:hover .glogo { transform: scale(1.04) rotate(-2deg); }
.gcard h3 { font-size: 18px; margin: 0; }
.gcard__tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.gcard .price { margin-top: auto; }
.glogo { display: block; flex-shrink: 0; border-radius: 26%; border: var(--line); background: var(--white); object-fit: cover; box-shadow: 0 4px 0 rgba(75, 45, 159, .2); }
.glogo--mono { display: grid; place-items: center; background: linear-gradient(135deg, var(--lav) 0%, var(--teal) 100%); color: var(--white); font-family: var(--font-head); font-weight: 700; letter-spacing: .02em; text-shadow: 0 2px 0 rgba(43, 33, 86, .35); }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--lav-3); border: 1px solid var(--lav); color: var(--purple); font: 700 12px/1.4 var(--font); }
.tag--fast { background: var(--teal-3); border-color: var(--teal); color: #2c5a58; }
.search { display: flex; align-items: center; gap: 8px; padding: 0 16px; min-height: 46px; border: var(--line); border-radius: 999px; background: var(--white); color: var(--muted); }
.search input { border: 0; outline: 0; font: inherit; width: 200px; background: transparent; color: var(--ink); }
.svcs { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.svc { display: flex; gap: 18px; align-items: center; padding: 20px; color: var(--ink); text-decoration: none; background: var(--white); border: var(--line); border-radius: var(--r); box-shadow: var(--shadow); transition: transform .15s ease, background .15s ease; }
.svc:hover { transform: translateY(-3px); background: var(--lav-3); }
.svc h3 { font-size: 19px; margin-bottom: 6px; }
.svc p { color: var(--muted); font-size: 14px; margin: 0 0 10px; }
.svc .gcard__tags { justify-content: flex-start; }

/* Цена — зелёная плашка, как в прайс-листе */
.price {
  display: inline-block; padding: 5px 12px; border: var(--line); border-radius: 999px; background: var(--green);
  color: var(--ink); font: 700 15px/1.2 var(--font-head); white-space: nowrap;
}

/* ── Шаги ───────────────────────────────────────────── */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.steps li { background: var(--white); border: var(--line); border-radius: var(--r); padding: 22px 20px 18px; box-shadow: var(--shadow); }
.steps__n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--lav); border: var(--line); font: 700 18px/1 var(--font-head); margin-bottom: 12px; }
.steps h3 { font-size: 18px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }
.sec--teal .stripe { background: var(--lav); }

.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.why__card { padding: 22px; border-radius: var(--r); background: var(--lav-3); border: 2px dashed var(--lav); }
.why__card h3 { font-size: 18px; color: var(--purple); }
.why__card p { margin: 0; color: var(--muted); }

.ask { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 32px; border-radius: var(--r); background: var(--night); color: var(--white); border: var(--line); box-shadow: var(--shadow); }
.ask h2 { font-size: 24px; }
.ask p { margin: 0; color: var(--lav-2); max-width: 640px; }
.ask .btn { flex-shrink: 0; box-shadow: 0 4px 0 #160f33; border-color: #160f33; }
.ask--small { margin-top: 40px; }

/* ── Вопросы ────────────────────────────────────────── */
.faq { display: grid; gap: 12px; }
.faq__item { background: var(--white); border: var(--line); border-radius: var(--r-sm); }
.faq__item summary { cursor: pointer; list-style: none; padding: 16px 52px 16px 20px; position: relative; font: 700 17px/1.35 var(--font-head); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 18px; top: 50%; translate: 0 -50%; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--lav); font: 700 18px/1 var(--font); }
.faq__item[open] summary::after { content: "−"; background: var(--green); }
.faq__item p { padding: 0 20px 18px; margin: 0; color: #4a4166; }

/* ── Страница игры ──────────────────────────────────── */
.ghead { position: relative; background: var(--night); color: var(--white); overflow: hidden; }
.ghead__art { position: absolute; inset: 0; background: center / cover no-repeat; }
.ghead__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(43, 33, 86, .96) 0%, rgba(43, 33, 86, .75) 45%, rgba(43, 33, 86, .3) 100%); }
.ghead__in { position: relative; padding-top: 22px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 26px; }
.ghead__title { display: flex; align-items: center; gap: 22px; }
.ghead__title .glogo { border-color: var(--lav); border-width: 3px; box-shadow: 0 6px 0 rgba(0, 0, 0, .25); }
.ghead h1 { font-size: clamp(28px, 4.5vw, 46px); margin: 0 0 6px; }
.ghead p { margin: 0; color: var(--lav-2); font-weight: 700; }
/* Переключатель способа пополнения */
.ways { display: flex; flex-wrap: wrap; gap: 12px; }
.way { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 210px; padding: 12px 18px; border-radius: var(--r-sm); border: 2px solid rgba(171, 156, 213, .45); background: rgba(255, 255, 255, .06); color: var(--white); text-align: left; cursor: pointer; transition: background .15s ease, border-color .15s ease; }
.way b { font: 700 16px/1.3 var(--font-head); }
.way small { color: var(--lav-2); font-size: 13px; }
.way:hover { background: rgba(255, 255, 255, .12); }
.way[aria-selected="true"] { background: var(--lav); border-color: var(--white); color: var(--ink); box-shadow: 0 4px 0 #160f33; }
.way[aria-selected="true"] small { color: #3d3260; }
.crumbs { font-size: 14px; color: var(--lav-2); }
.crumbs a { color: var(--white); text-decoration: none; }
.crumbs span { opacity: .6; margin: 0 4px; }
.crumbs--dark { color: var(--muted); margin-bottom: 18px; }
.crumbs--dark a { color: var(--purple); }


.note { padding: 14px 18px; border-radius: var(--r-sm); background: var(--teal-3); border: 2px solid var(--teal); color: #2c4a49; margin-bottom: 28px; font-size: 15px; }

.cat { margin-bottom: 36px; }
.cat__title { display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px; margin-bottom: 16px; border: var(--line); border-radius: var(--r-sm); background: var(--lav); font-size: 20px; box-shadow: var(--shadow); }
.cat__title img { width: 28px; height: 28px; object-fit: contain; }
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.item {
  display: flex; flex-direction: column; background: var(--white); border: var(--line); border-radius: var(--r);
  overflow: hidden; box-shadow: var(--shadow); transition: transform .15s ease;
}
.item:hover { transform: translateY(-2px); }
.item.in { background: var(--green-3); }
.item__icon { display: grid; place-items: center; height: 96px; background: var(--lav-3); border-bottom: 2px solid var(--lav); }
.item__icon img { width: 64px; height: 64px; object-fit: contain; }
.item--plain .item__name { padding-top: 16px; }
.item__name { font: 700 16px/1.3 var(--font-head); margin: 0; padding: 12px 14px 10px; flex: 1; }
.item__buy { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 0 12px 12px; }
.qty { display: flex; width: 100%; }
.qty .step { width: 100%; justify-content: space-between; }
.addbtn { width: 100%; height: 38px; padding: 0 14px; border-radius: 999px; border: var(--line); background: var(--white); color: var(--purple); font: 700 14px/1 var(--font-head); cursor: pointer; }
.addbtn:hover { background: var(--lav-3); }
.step { display: inline-flex; align-items: center; border: var(--line); border-radius: 999px; background: var(--white); overflow: hidden; }
.step button { width: 34px; height: 34px; border: 0; background: var(--lav-3); font: 800 18px/1 var(--font); color: var(--purple); cursor: pointer; }
.step button:hover { background: var(--lav-2); }
.step span { min-width: 30px; text-align: center; font: 800 15px/1 var(--font); }

/* ── Покупка без корзины: автопополнение, Stars, Steam ─ */
.buy { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.buy__form { position: sticky; top: 88px; padding: 22px; }
.buy__form h2 { font-size: 21px; margin-bottom: 14px; }
.picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-bottom: 22px; }
.pick {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 12px 14px; text-align: center;
  background: var(--white); border: var(--line); border-radius: var(--r); box-shadow: var(--shadow); cursor: pointer;
  transition: transform .12s ease, background .12s ease;
}
.pick:hover { transform: translateY(-2px); background: var(--lav-3); }
.pick[aria-pressed="true"] { background: var(--green-3); border-color: var(--green-2); box-shadow: 0 6px 0 var(--green-2); }
.pick img { width: 48px; height: 48px; object-fit: contain; }
.pick__name { font: 700 15px/1.3 var(--font-head); }
.pick--amount { padding: 18px 10px; }
.pick--amount .pick__name { font-size: 18px; }
.picks--amounts { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.fld { margin-bottom: 14px; }
.fld > label { display: block; font: 700 15px/1.3 var(--font-head); margin-bottom: 6px; }
.fld small { display: block; color: var(--muted); font-size: 13px; margin-top: 5px; }
.fld--inline { max-width: 340px; }
.inp { width: 100%; min-height: 48px; padding: 0 14px; border: 2px solid var(--lav); border-radius: var(--r-sm); background: var(--white); font: 600 16px/1.2 var(--font); color: var(--ink); }
.inp:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px var(--lav-3); }
.inp.bad { border-color: var(--danger); }
.inp.good { border-color: var(--green-2); }
.fld__err { color: var(--danger); font-size: 14px; font-weight: 700; margin: 6px 0 0; }
.fld__ok { color: #36621e; font-size: 14px; font-weight: 700; margin: 6px 0 0; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg__b { padding: 9px 14px; border-radius: 999px; border: 2px solid var(--lav); background: var(--white); font: 700 14px/1 var(--font); cursor: pointer; }
.seg__b[aria-pressed="true"] { background: var(--purple); border-color: var(--purple); color: var(--white); }
.chip { margin-top: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--lav); background: var(--lav-3); color: var(--purple); font: 700 13px/1 var(--font); cursor: pointer; }
.sum { display: grid; gap: 4px; padding: 14px; margin-bottom: 14px; border-radius: var(--r-sm); background: var(--paper); border: 2px dashed var(--lav); }
.sum__row { display: flex; justify-content: space-between; gap: 10px; }
.sum__total { display: flex; justify-content: space-between; align-items: baseline; font: 700 18px/1.3 var(--font-head); }
.sum__total b { font-size: 24px; }
.warnbox { padding: 10px 12px; border-radius: 10px; background: #fff4d9; border: 2px solid #e8c25a; color: #6b4d00; font-size: 14px; }
.help { margin-top: 6px; padding: 12px 16px; border-radius: var(--r-sm); background: var(--teal-3); border: 2px solid var(--teal); }
.help summary { cursor: pointer; font-weight: 800; color: #2c5a58; }
.help p { margin: 8px 0 0; font-size: 14px; color: #2c4a49; }

/* ── Корзина ────────────────────────────────────────── */
.shade { position: fixed; inset: 0; background: rgba(26, 18, 56, .5); z-index: 60; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 70; width: min(440px, 100%);
  background: var(--paper); border-left: var(--line); display: flex; flex-direction: column;
  transform: translateX(105%); transition: transform .25s ease; visibility: hidden;
}
.drawer.open { transform: none; visibility: visible; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; background: var(--night); color: var(--white); }
.drawer__head h2 { margin: 0; font-size: 22px; }
.x { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--lav); background: transparent; color: inherit; font-size: 24px; line-height: 1; cursor: pointer; }
.drawer__body { flex: 1; overflow-y: auto; padding: 16px 18px; }
.drawer__foot { padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); border-top: var(--line); background: var(--white); }
.cgroup { margin-bottom: 18px; }
.cgroup h3 { font-size: 15px; margin-bottom: 8px; color: var(--purple); }
.cline { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; padding: 10px; margin-bottom: 8px; background: var(--white); border: 2px solid var(--lav); border-radius: var(--r-sm); }
.cline__icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: var(--lav-3); overflow: hidden; }
.cline__icon img { width: 34px; height: 34px; object-fit: contain; }
.cline__name { font-weight: 700; line-height: 1.25; font-size: 15px; }
.cline__price { color: var(--muted); font-size: 13px; }
.cline__right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.cline__sum { font: 700 15px/1 var(--font-head); }
.cline .step button { width: 28px; height: 28px; font-size: 16px; }
.cline .step span { min-width: 24px; font-size: 14px; }
.cempty { text-align: center; padding: 40px 10px; color: var(--muted); }
.cempty b { display: block; font: 700 20px/1.3 var(--font-head); color: var(--ink); margin-bottom: 6px; }
.clear { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: 14px; padding: 0; }
.field { display: block; margin: 14px 0; }
.field > span { display: block; font: 700 15px/1.3 var(--font-head); margin-bottom: 6px; }
.field textarea { width: 100%; min-height: 64px; resize: vertical; padding: 10px 12px; border: 2px solid var(--lav); border-radius: var(--r-sm); font: inherit; background: var(--white); }
.field textarea:focus { outline: none; border-color: var(--purple); }
.field small { color: var(--muted); font-size: 13px; }
.pays { display: grid; gap: 8px; }
.pay { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; padding: 10px 12px; border: 2px solid var(--lav); border-radius: var(--r-sm); background: var(--white); cursor: pointer; }
.pay:has(input:checked) { border-color: var(--purple); background: var(--lav-3); }
.pay input { margin: 3px 0 0; width: 18px; height: 18px; accent-color: var(--purple); }
.pay b { display: block; font-size: 15px; }
.pay small { color: var(--muted); font-size: 13px; line-height: 1.35; display: block; }
.pay.off { opacity: .5; }
.total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; font: 700 18px/1.3 var(--font-head); }
.total b { font-size: 24px; }
.fee { color: var(--muted); font-size: 13px; margin: 0 0 10px; }
.warn { color: var(--danger); font-size: 14px; font-weight: 700; margin: 0 0 10px; }
.agree { color: var(--muted); font-size: 12px; margin: 10px 0 0; text-align: center; }

.mcart { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); pointer-events: none; }
.mcart__btn {
  pointer-events: auto; width: 100%; max-width: 560px; margin: 0 auto; display: flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 0 18px; border-radius: 999px; border: var(--line); background: var(--green); color: var(--ink);
  font: 700 15px/1.2 var(--font-head); cursor: pointer; box-shadow: 0 5px 0 var(--purple), 0 10px 30px rgba(43, 33, 86, .25);
}
.mcart__sum { margin-left: auto; font-size: 17px; }
.mcart__go { padding-left: 12px; border-left: 2px solid rgba(38, 29, 69, .25); }
body.has-cart .foot { padding-bottom: 90px; }

/* ── Вход ───────────────────────────────────────────── */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(26, 18, 56, .55); }
.modal__card { position: relative; width: min(420px, 100%); padding: 28px 24px 22px; text-align: center; background: var(--paper); border: var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.modal__card .x { position: absolute; top: 12px; right: 12px; color: var(--purple); }
.modal__logo, .loginbox img { margin: 0 auto 12px; border-radius: 16px; border: var(--line); }
.modal__card h2 { font-size: 22px; }
.modal__card p { color: var(--muted); font-size: 15px; }
.modal__small { font-size: 12px !important; margin: 14px 0 0; }
.tgw { min-height: 48px; display: flex; justify-content: center; margin: 8px 0 12px; }
.tgw__err { color: var(--danger); font-size: 14px; }
.loginbox { text-align: center; padding: 36px 28px; }
.loginbox p { color: var(--muted); }
.err { color: var(--danger) !important; font-weight: 700; }

/* ── Заказ ──────────────────────────────────────────── */
.order { padding: 26px; }
.order__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.order__head h1 { margin: 0; font-size: 28px; }
.order__meta { color: var(--muted); font-size: 14px; margin: 6px 0 14px; }
.order__note { padding: 12px 14px; background: var(--lav-3); border-radius: var(--r-sm); }
.order__pay { padding: 16px; margin-bottom: 18px; border-radius: var(--r-sm); background: var(--green-3); border: 2px solid var(--green); }
.order__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 6px; }
.order__hint { color: var(--muted); font-size: 14px; }
.order__items ul { list-style: none; margin: 0 0 12px; padding: 0; }
.order__items li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--lav); }
.order__items em { color: var(--muted); font-style: normal; }
.order__group { font-size: 16px; color: var(--purple); margin: 18px 0 4px; }
.order__details { display: grid; gap: 6px; margin: 0 0 14px; padding: 12px 14px; border-radius: 10px; background: var(--teal-3); }
.order__details div { display: flex; justify-content: space-between; gap: 12px; }
.order__details dt { color: var(--muted); }
.order__details dd { margin: 0; font-weight: 800; word-break: break-all; text-align: right; }
.order__comment { font-size: 15px; background: var(--paper); padding: 10px 12px; border-radius: 10px; }
.order__total { display: flex; justify-content: space-between; font: 700 20px/1.3 var(--font-head); padding-top: 8px; }
.order__tg { margin-top: 18px; color: var(--muted); font-size: 14px; text-align: center; }
.pill { display: inline-block; padding: 6px 14px; border-radius: 999px; border: 2px solid; font: 700 14px/1.2 var(--font-head); white-space: nowrap; }
.pill--wait { background: #fff4d9; border-color: #d9a520; color: #7a5600; }
.pill--go { background: var(--lav-3); border-color: var(--purple); color: var(--purple); }
.pill--ok { background: var(--green-3); border-color: var(--green-2); color: #36621e; }
.pill--off { background: #f2eff6; border-color: #b8b0c9; color: #6b628a; }

.acc__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.acc__who { display: flex; align-items: center; gap: 14px; }
.acc__who img { border-radius: 50%; border: var(--line); }
.acc__who h1 { font-size: 24px; margin: 0; }
.acc__who p { margin: 0; color: var(--muted); }
.olist { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 12px; }
.olist__row { display: flex; justify-content: space-between; gap: 14px; padding: 14px 18px; color: var(--ink); text-decoration: none; box-shadow: none; }
.olist__row:hover { background: var(--lav-3); }
.olist__date { color: var(--muted); font-size: 14px; margin-left: 8px; }
.olist__what { display: block; color: var(--muted); font-size: 14px; }
.olist__right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }

/* ── Подвал ─────────────────────────────────────────── */
.foot { background: var(--night); color: var(--lav-2); padding: 48px 0 24px; border-top: 3px solid var(--purple); }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 28px; }
.foot h3 { color: var(--white); font-size: 16px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { color: var(--lav-2); text-decoration: none; }
.foot a:hover { color: var(--white); text-decoration: underline; }
.brand--foot { color: var(--white); margin-bottom: 14px; }
.foot__about { font-size: 14px; max-width: 300px; }
.foot__bottom { display: flex; justify-content: space-between; gap: 12px; margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(171, 156, 213, .25); font-size: 14px; }

.toast { position: fixed; left: 50%; bottom: 96px; translate: -50% 0; z-index: 90; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: var(--r-sm); background: var(--night); color: var(--white); border: 2px solid var(--lav); font-weight: 700; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }

/* ── Адаптив ────────────────────────────────────────── */
@media (max-width: 980px) {
  .buy { grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .foot__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .who__name { display: none; }
  .who { padding: 4px; }
  .hero__in { padding-top: 48px; padding-bottom: 44px; }
  .hero__art { background-position: 70% center; opacity: .7; }
  .hero__lead { font-size: 16px; }
  .why { grid-template-columns: 1fr; }
  .ask { flex-direction: column; align-items: flex-start; padding: 22px; }
  .sec { padding: 40px 0; }
  .items { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .item__icon { height: 76px; }
  .item__icon img { width: 52px; height: 52px; }
  .item__name { font-size: 14px; padding: 10px 10px 8px; }
  .item__buy { padding: 0 10px 10px; gap: 8px; }
  .item .price { font-size: 13px; padding: 4px 9px; }
  .ghead__title .glogo { width: 76px; height: 76px; }
  .ghead__title { gap: 14px; }
  .way { min-width: 0; flex: 1 1 100%; }
  .buy { grid-template-columns: 1fr; }
  .buy__form { position: static; }
  .games { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .gcard { padding: 16px 10px 14px; }
  .gcard .glogo { width: 96px; height: 96px; }
  .gcard h3 { font-size: 15px; }
  .picks { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .sec__head { flex-wrap: wrap; }
  .search { width: 100%; }
  .search input { width: 100%; }
  .svcs { grid-template-columns: 1fr; }
  .order { padding: 18px; }
  .olist__row { flex-direction: column; }
  .olist__right { flex-direction: row; align-items: center; justify-content: space-between; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr; }
  .brand span { font-size: 18px; }
  .hero__btns .btn { flex: 1 1 100%; }
  .foot__bottom { flex-direction: column; }
}
@media (min-width: 761px) {
  .mcart { left: auto; right: 24px; bottom: 24px; padding: 0; }
  .mcart__btn { width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ── Главная: «Все игры», пояснение игры ───────────── */
.gcard[hidden] { display: none; }
.more { display: flex; justify-content: center; margin-top: 26px; }
.more[hidden] { display: none; }
.ghead__note { margin-top: 10px !important; max-width: 60ch; color: var(--white) !important; font-weight: 600 !important; opacity: .9; }
.tag--warn { background: #fff4d9; border-color: #e8c25a; color: #6b4d00; }

/* ── Админка витрины ───────────────────────────────── */
.adm h1 { font-size: clamp(26px, 3.5vw, 36px); margin: 0 0 8px; }
.adm__head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; margin-bottom: 22px; }
.adm__head p { max-width: 70ch; margin: 0; }
.adm__stats { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; max-width: 420px; }
.adm-pinbox { padding: 20px 22px; margin-bottom: 30px; }
.adm-pinbox h2 { font-size: 20px; margin: 0 0 6px; }
.adm-pins { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; counter-reset: pin; }
.adm-pins li { display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 10px; border: 2px solid var(--lav); border-radius: 999px; background: var(--white); counter-increment: pin; }
.adm-pins li::before { content: counter(pin); font: 700 13px/1 var(--font-head); color: var(--purple); min-width: 14px; text-align: center; }
.adm-pins .glogo { width: 32px; height: 32px; border-width: 1px; box-shadow: none; }
.adm-pins__name { font-weight: 800; font-size: 14px; }
.adm-arrow { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--lav); background: var(--lav-3); color: var(--purple); font: 700 15px/1 var(--font); cursor: pointer; }
.adm-arrow:hover { background: var(--lav-2); }
.adm__tools { align-items: center; }
.adm__filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.adm-list { display: grid; gap: 10px; }
.adm-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto auto auto auto; gap: 16px; align-items: center; padding: 10px 14px; background: var(--white); border: 2px solid var(--lav); border-radius: var(--r-sm); }
.adm-row[hidden] { display: none; }
.adm-row .glogo { width: 56px; height: 56px; border-width: 1px; box-shadow: none; }
.adm-row__main a { color: var(--ink); text-decoration: none; }
.adm-row__main a:hover b { color: var(--purple); }
.adm-row__main small { margin-left: 6px; }
.adm-row__main .gcard__tags { justify-content: flex-start; margin-top: 5px; }
.adm-row__price { font-weight: 800; color: var(--muted); white-space: nowrap; }
.is-off { opacity: .55; }
.is-off:hover { opacity: .85; }
/* переключатель */
.sw { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 700; font-size: 14px; white-space: nowrap; }
.sw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sw__ui { position: relative; width: 40px; height: 22px; border-radius: 999px; background: var(--lav-2); transition: background .15s ease; flex-shrink: 0; }
.sw__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .15s ease; }
.sw input:checked + .sw__ui { background: var(--green-2); }
.sw input:checked + .sw__ui::after { transform: translateX(18px); }
.sw input:focus-visible + .sw__ui { outline: 3px solid var(--lav); outline-offset: 2px; }
.sw input:disabled + .sw__ui { opacity: .5; }
/* страница игры */
.adm-game { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 24px; align-items: start; }
.adm-game__card { padding: 22px; position: sticky; top: 88px; }
.adm-logo { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.adm-logo__btns { display: grid; gap: 8px; justify-items: start; }
.adm-logo__btns small { font-size: 12px; }
.inp--area { min-height: 90px; padding: 10px 14px; resize: vertical; line-height: 1.4; }
.inp--sm { min-height: 38px; font-size: 14px; padding: 0 10px; }
.adm-game__sw { display: grid; gap: 12px; margin: 6px 0 18px; }
.adm-game__save { display: flex; flex-wrap: wrap; gap: 10px; }
.adm-game__tabs { display: grid; gap: 16px; }
.adm-region { padding: 18px 20px; }
.adm-region__head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 12px; }
.adm-region__head small { display: block; margin-top: 3px; }
.adm-table { display: grid; gap: 6px; margin-top: 6px; }
.adm-table__row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr) 90px 90px 64px; gap: 12px; align-items: center; font-size: 14px; }
.adm-table__head { font-weight: 800; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }
.adm-table__row > span:nth-child(3), .adm-table__row > b { text-align: right; }
.sw--solo { justify-self: center; }

@media (max-width: 980px) {
  .adm-game { grid-template-columns: 1fr; }
  .adm-game__card { position: static; }
  .adm-row { grid-template-columns: 48px minmax(0, 1fr); }
  .adm-row .glogo { width: 48px; height: 48px; }
  .adm-row__price { grid-column: 2; }
  .adm-row .sw, .adm-row .btn { grid-column: 2; justify-self: start; }
  .adm__head { flex-direction: column; }
  .adm__stats { justify-content: flex-start; }
  .adm-table__row { grid-template-columns: minmax(0, 1fr) 80px 56px; }
  .adm-table__row > span:nth-child(2), .adm-table__row > span:nth-child(3) { display: none; }
}
.adm-logo__btns .btn { white-space: nowrap; }
body.is-admin .mcart { display: none !important; }
