/* Магазин робуксов — UI по образцу Playerok (светлая тема, Inter).
   Сетка: контент 1400px + поля 20px (ПК) / 16px (мобайл). */
:root {
  --blue: #1453FF;        /* основной акцент */
  --blue-dark: #043EDB;   /* нижняя «тень» кнопок */
  --navy: #06194D;        /* тёмные плашки */
  --green: #00A849;
  --grad-green: linear-gradient(90deg, #00A849 0%, #00C2B5 50%, #00BBFF 100%);
  --text: #000000;
  --text-2: #828794;      /* второстепенный текст */
  --text-3: #7F899F;      /* плейсхолдеры каталога */
  --text-4: #5F6676;      /* абзацы */
  --icon: #9DAECA;        /* иконки навигации */
  --bg: #FFFFFF;
  --bar: #F3F5F8;         /* шапка */
  --surface: #F8FAFF;     /* блок быстрой покупки, карточки */
  --ring: #F1F4FA;        /* обводка блоков */
  --chip: #F1F4FA;        /* чипсы, поиск, вопросы */
  --field: #EEF1F9;       /* поля выбора */
  --line: #F2F4F7;        /* линия под вкладками, подвал */
  --pink-bg: #F9D3FF; --pink-fg: #5A0E66;
  --sky-bg: #DCE6FF;  --sky-fg: #082166;
  --err: #FF3B4A;
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --gl: max(20px, env(safe-area-inset-left, 0px));
  --gr: max(20px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

/* ===== База + отключение зума ===== */
html {
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  touch-action: manipulation;          /* убирает зум по двойному тапу */
  scroll-behavior: smooth;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/24px var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; touch-action: manipulation; }
input { font: inherit; color: inherit; touch-action: manipulation; }
h1, h2, h3, p { margin: 0; }
svg { display: block; }
.card, .chip, .tab, .btn, .hnav, .bnav, .badge, .dd-item, .sort, .logo, summary { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
[hidden] { display: none !important; }
.card:focus-visible { outline-offset: 4px; border-radius: 18px; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.header, .page, .footer-in, .footer-copy {
  max-width: 1440px;
  margin-inline: auto;
  padding-left: var(--gl);
  padding-right: var(--gr);
}

/* ===== Шапка ПК ===== */
.header { padding-top: 20px; }
.header-bar {
  height: 76px;
  background: var(--bar);
  border-radius: 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 24px;
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800;
  font-size: 32px;
  line-height: 32px;
  letter-spacing: -0.045em;
  color: var(--blue);
  flex: none;
  min-width: 0;
}
.logo > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo-mark { width: 36px; height: 36px; flex: none; }
.hsearch {
  flex: 1;
  min-width: 0;
  height: 52px;
  background: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  cursor: text;
}
.hsearch-ic { width: 20px; height: 20px; color: var(--text-2); flex: none; }
.hsearch input, .csearch input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: none;
  font-size: 18px; line-height: 18px; padding: 0;
}
.hsearch input::placeholder { color: var(--text-2); }
input[type=search]::-webkit-search-cancel-button { -webkit-appearance: none; }
.hnav { display: flex; align-items: center; gap: 24px; flex: none; }
.hnav-i {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 14px; line-height: 20px; color: var(--text-2);
  transition: color .15s;
}
.hnav-ic { width: 32px; height: 32px; color: var(--icon); transition: color .15s; }
.hnav-i.is-pill span { background: var(--navy); color: #fff; border-radius: 9999px; padding: 0 6px; font-weight: 500; }
.hnav-i.is-pill .hnav-ic { color: var(--blue); }

/* ===== Шапка мобайл ===== */
.mheader { display: none; }

/* ===== Баннер ===== */
.banner {
  margin-top: 40px;
  height: 240px;
  border-radius: 32px;
  overflow: hidden;
  position: relative;
  background: #1453FF;
}
.banner-art, .banner-art > svg, .banner-art > img { width: 100%; height: 100%; }
.banner-art > img { object-fit: cover; object-position: right center; display: block; }
.banner-head {
  position: absolute; left: 20px; bottom: 20px;
  display: flex; align-items: center; gap: 16px;
}
.banner-ic {
  width: 56px; height: 56px; border-radius: 14px;
  background: #3056FF;
  display: grid; place-items: center;
  box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset;
}
.banner-ic { overflow: hidden; }
.banner-ic > svg { width: 48px; height: 48px; }
.banner-ic > img { width: 100%; height: 100%; object-fit: cover; }
.banner h1 { color: #fff; font-size: 24px; line-height: 32px; font-weight: 700; }

/* ===== Вкладки ===== */
.tabs { margin-top: 40px; }
.tabs-row {
  display: flex; gap: 24px;
  box-shadow: inset 0 -1px 0 var(--line);
  overflow-x: auto; scrollbar-width: none;
}
.tabs-row::-webkit-scrollbar { display: none; }
.tab {
  position: relative; flex: none;
  font-size: 18px; line-height: 28px;
  padding-bottom: 8px;
  transition: color .15s;
}
.tab::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1.5px; background: var(--blue); border-radius: 2px;
  transform: scaleX(0); transition: transform .2s;
}
.tab.is-active { color: var(--blue); }
.tab.is-active::after { transform: scaleX(1); }

/* ===== Быстрая покупка ===== */
.quick {
  margin-top: 40px;
  background: var(--surface);
  border-radius: 32px;
  box-shadow: 0 0 0 1px var(--ring);
  padding: 20px 40px 20px 20px;
  display: flex; align-items: center; gap: 24px;
}
.quick-img {
  width: 296px; height: 222px; flex: none;
  border-radius: 16px; overflow: hidden;
  background: var(--field);
}
.quick-img > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.quick-img > svg { width: 100%; height: 100%; }
.quick-body { flex: 1; min-width: 0; }
.quick-title { font-size: 24px; line-height: 32px; font-weight: 700; }
.quick-row { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.quick-row .field { flex: 1; min-width: 0; }
.quick-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.q-badges-d { margin-top: 20px; }
.q-badges-m { display: none; }

/* Поле: поле ввода с плавающей подписью или выпадающий список */
.field {
  position: relative;
  display: block;
  height: 76px;
  background: var(--field);
  border-radius: 16px;
  padding: 0 20px;
  cursor: text;
  transition: box-shadow .15s;
}
.field input {
  position: absolute; left: 20px; right: 20px; bottom: 12px;
  height: 28px; border: 0; outline: 0; background: none; padding: 0;
  font-size: 18px; line-height: 28px; font-weight: 700;
  -webkit-appearance: none; appearance: none;
}
.field-label {
  position: absolute; left: 20px; right: 20px; top: 50%;
  transform: translateY(-50%);
  font-size: 18px; line-height: 22px; color: var(--text-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  pointer-events: none;
  transition: top .15s, font-size .15s, transform .15s;
}
.field-label.is-up,
.field input:focus ~ .field-label,
.field input:not(:placeholder-shown) ~ .field-label {
  top: 13px; transform: none; font-size: 14px; line-height: 20px;
}
.field:focus-within { box-shadow: 0 0 0 2px var(--blue) inset; }
.field.is-err { box-shadow: 0 0 0 2px var(--err) inset; }
.field-err {
  position: absolute; right: 20px; top: 13px;
  font-size: 12px; line-height: 20px; color: var(--err); font-weight: 500;
  pointer-events: none;
}
.field.is-err .field-label { right: 140px; }

.field-select { cursor: pointer; padding-right: 52px; }
.field-select .field-label { right: 52px; }
.field-value {
  position: absolute; left: 20px; right: 52px; bottom: 12px;
  font-size: 18px; line-height: 28px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.field-chev {
  position: absolute; right: 20px; top: 50%; margin-top: -12px;
  width: 24px; height: 24px; color: var(--text-2);
  transition: transform .2s;
}
.field-select[aria-expanded=true] .field-chev { transform: rotate(180deg); }
.field-select:focus-within { box-shadow: none; }
.w-short { display: none; }
.dropdown {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 30;
  background: #fff;
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 12px 40px rgba(8, 33, 102, .16), 0 0 0 1px var(--field);
  max-height: 344px; overflow-y: auto; overscroll-behavior: contain;
  cursor: default;
}
.dd-item {
  width: 100%; height: 44px; padding: 0 12px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 16px; text-align: left;
}
.dd-price { color: var(--text-2); font-variant-numeric: tabular-nums; }
.dd-item.is-sel { color: var(--blue); font-weight: 600; }
.dd-item.is-sel .dd-price { color: var(--blue); }

/* Плашки */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  height: 26px; padding: 4px 8px 4px 6px;
  border-radius: 8px;
  font-size: 12px; line-height: 18px; font-weight: 500;
  white-space: nowrap;
}
.badge svg { width: 14px; height: 14px; flex: none; }
.badge-pink { background: var(--pink-bg); color: var(--pink-fg); }
.badge-blue { background: var(--sky-bg); color: var(--sky-fg); }
.badge-blue svg { color: var(--blue); }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 52px; padding: 8px 20px;
  border-radius: 10px;
  font-size: 18px; line-height: 28px; font-weight: 700;
  color: #fff;
  white-space: nowrap;
  transition: filter .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-blue { background: var(--blue); box-shadow: inset 0 -2px 0 var(--blue-dark); }
.btn-green { background: var(--grad-green); box-shadow: inset 0 -2px 0 rgba(0, 96, 56, .35); }
.btn[disabled] { opacity: .55; cursor: default; }
.pay-wrap { position: relative; flex: none; }
.btn-pay { width: 320px; margin-left: 12px; }
.bonus {
  position: absolute; top: -12px; right: 6px;
  height: 24px; padding: 2px 8px;
  border-radius: 9999px;
  background: var(--navy); color: #fff;
  font-size: 14px; line-height: 20px; font-weight: 600;
  box-shadow: 0 0 0 2px #fff;
  pointer-events: none;
}

/* ===== Каталог ===== */
.catalog { margin-top: 40px; scroll-margin-top: 20px; }
.filters { display: flex; align-items: center; gap: 24px; }
.chips {
  display: flex; gap: 12px; flex: 1; min-width: 0;
  overflow-x: auto; scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 44px; padding: 0 20px;
  border-radius: 10px; background: var(--chip);
  font-size: 16px; line-height: 24px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background .15s, color .15s;
}
.chip-ic { padding: 0 16px; }
.chip-ic svg { width: 24px; height: 24px; }
.chip.is-on { background: var(--blue); color: #fff; }
.csearch {
  order: 2; flex: none; width: 375px; height: 44px;
  background: var(--chip); border-radius: 8px;
  display: flex; align-items: center; gap: 12px; padding: 0 16px;
  cursor: text;
}
.csearch-ic { width: 20px; height: 20px; color: var(--text-3); flex: none; }
.csearch input::placeholder { color: var(--text-3); }
.cat-meta {
  margin-top: 16px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 14px; line-height: 20px;
}
#cat-count { color: var(--text-3); }
.sort { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; }
.sort svg { width: 20px; height: 20px; transition: transform .2s; }
.sort.is-desc svg { transform: scaleY(-1); }

.grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 26px 20px;
}
.card { display: flex; flex-direction: column; text-align: left; min-width: 0; }
.card[hidden] { display: none; }
.card-img {
  position: relative; display: block;
  aspect-ratio: 4 / 3; max-width: 100%;
  border-radius: 16px; overflow: hidden;
  background: var(--field);
  /* фикс скругления при анимации в Safari */
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}
.card-img > img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.card-img > svg { width: 100%; height: 100%; transition: transform .35s ease; }
.card-hit { position: absolute; right: 8px; bottom: 8px; }
.card-price {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  margin-top: 8px; min-height: 28px;
}
.price { font-size: 18px; line-height: 28px; font-weight: 700; color: var(--green); font-variant-numeric: tabular-nums; white-space: nowrap; }
.price.is-blue { color: var(--blue); }
.disc {
  font-size: 14px; line-height: 20px; font-weight: 700; color: #fff;
  padding: 2px 4px; border-radius: 9999px;
  background: var(--grad-green);
}
.disc.is-blue { background: var(--blue); }
.disc:empty { display: none; }
.old { font-size: 14px; line-height: 20px; color: var(--text-2); text-decoration: line-through; margin-left: 2px; white-space: nowrap; }
.card-title {
  margin-top: 2px;
  font-size: 16px; line-height: 24px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-seller {
  margin-top: 4px;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; line-height: 20px; font-weight: 500;
}
.card-seller svg { width: 16px; height: 16px; color: var(--blue); flex: none; }
.empty { padding: 48px 0; text-align: center; color: var(--text-2); }
.link { color: var(--blue); }

/* ===== Секции ===== */
.sec { margin-top: 72px; scroll-margin-top: 20px; }
.sec-title { font-size: 24px; line-height: 32px; font-weight: 700; text-wrap: balance; margin-bottom: 20px; }
.g-grid, .steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.g-card, .step {
  background: var(--surface);
  border-radius: 24px;
  box-shadow: 0 0 0 1px var(--ring);
  padding: 24px;
  min-width: 0;
}
.g-ic {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center;
}
.g-ic svg { width: 26px; height: 26px; }
.g-ic-green { background: var(--grad-green); color: #fff; --ic-mark: #00A849; }

.g-ic-pink { background: var(--pink-bg); color: var(--pink-fg); }
.g-ic-blue { background: var(--sky-bg); color: var(--blue); }
.g-ic-dark { background: var(--navy); color: #fff; }
.g-card h3, .step h3 { font-size: 18px; line-height: 26px; font-weight: 700; margin-top: 16px; }
.g-card p, .step p { font-size: 15px; line-height: 22px; color: var(--text-4); margin-top: 6px; }
.steps { list-style: none; margin: 0; padding: 0; }
.step-n {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--blue); color: #fff;
  display: grid; place-items: center;
  font-weight: 700; font-size: 16px;
  box-shadow: inset 0 -2px 0 var(--blue-dark);
}
.redeem {
  margin-top: 14px;
  display: inline-flex; align-items: center; gap: 4px;
  height: 40px; padding: 0 4px 0 14px;
  background: #fff; border-radius: 10px;
  box-shadow: 0 0 0 1px var(--field);
}
.redeem a { color: var(--blue); font-weight: 600; font-size: 15px; }
.redeem-copy {
  width: 32px; height: 32px; border-radius: 8px;
  display: grid; place-items: center; color: var(--text-2);
}
.redeem-copy svg { width: 18px; height: 18px; }
.steps-note { margin-top: 16px; font-size: 15px; line-height: 22px; color: var(--text-4); }

.faq { display: grid; gap: 8px; }
.faq-i { background: var(--chip); border-radius: 16px; }
.faq-i summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px;
  font-size: 18px; line-height: 26px; font-weight: 600;
}
.faq-i summary::-webkit-details-marker { display: none; }
.faq-chev { width: 24px; height: 24px; color: var(--text-2); flex: none; transition: transform .2s; }
.faq-i[open] .faq-chev { transform: rotate(180deg); }
.faq-i p { padding: 0 20px 20px; font-size: 16px; line-height: 24px; color: var(--text-4); max-width: 860px; }

/* ===== Подвал ===== */
.footer { margin-top: 80px; background: var(--line); scroll-margin-top: 20px; }
.footer-in {
  padding-block: 40px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 375px;
  gap: 40px;
}
.f-title { font-size: 24px; line-height: 32px; font-weight: 700; margin-bottom: 24px; }
.pays { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.pay-logo { display: block; width: 56px; height: 32px; object-fit: contain; }
.pay-chip {
  height: 32px; min-width: 56px; padding: 0 10px;
  border-radius: 8px; background: #fff; box-shadow: 0 0 0 1px #E3E6ED;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: var(--navy);
}
.f-contacts { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 6px; font-size: 14px; line-height: 20px; }
.f-contacts li { display: flex; gap: 8px; min-width: 0; }
.f-contacts span { color: var(--text-4); flex: none; width: 64px; }
.f-contacts b { font-weight: 600; overflow-wrap: anywhere; }
.f-contacts a { color: var(--blue); font-weight: 600; }
.sel { -webkit-user-select: text; user-select: text; }
.f-links { display: grid; grid-template-columns: repeat(2, max-content); gap: 20px 60px; font-size: 16px; line-height: 24px; }
.f-text { font-size: 14px; line-height: 20px; color: var(--text-4); margin-bottom: 16px; overflow-wrap: anywhere; }
.f-text b { color: var(--text); font-weight: 600; }
.btn-support { width: 100%; border-radius: 8px; }
.footer-copy { padding-block: 0 32px; font-size: 14px; line-height: 20px; color: #6B7280; }

/* ===== Мобильное нижнее меню ===== */
.bnav { display: none; }

/* ===== Окно оформления ===== */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-bg { position: absolute; inset: 0; background: rgba(6, 25, 77, .45); animation: fade .2s ease; }
.modal-panel {
  position: relative;
  width: min(980px, 100%);
  max-height: 100%;
  overflow-y: auto; overscroll-behavior: contain;
  background: #fff;
  border-radius: 32px;
  padding: 20px;
  animation: pop .22s ease;
}
.m-top { display: none; }
.m-x {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.9); color: var(--text);
  display: grid; place-items: center;
  box-shadow: 0 2px 10px rgba(8,33,102,.12);
}
.m-x svg { width: 22px; height: 22px; }
.m-body { display: flex; gap: 32px; align-items: flex-start; }
.m-img {
  width: 460px; flex: none; aspect-ratio: 4 / 3; max-width: 100%;
  border-radius: 16px; overflow: hidden; background: var(--field);
}
.m-img > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.m-img > svg { width: 100%; height: 100%; }
.m-info { flex: 1; min-width: 0; padding: 8px 8px 4px 0; display: flex; flex-direction: column; }
.m-price { margin-top: 0; }
.m-price .price { font-size: 24px; line-height: 32px; }
.m-price .disc { font-size: 16px; line-height: 20px; padding: 2px 6px; }
.m-price .old { font-size: 16px; }
.m-title { margin-top: 6px; font-size: 18px; line-height: 26px; font-weight: 400; }
.m-info > .card-seller { margin-top: 6px; }
.m-box { margin-top: 20px; background: var(--line); border-radius: 16px; padding: 16px 20px; }
.m-box-t { font-size: 18px; line-height: 26px; font-weight: 700; }
.m-box-v { margin-top: 4px; font-size: 16px; line-height: 24px; }
.m-box-s { margin-top: 2px; font-size: 14px; line-height: 20px; color: var(--text-2); }
.m-field { margin-top: 12px; }
.agree { margin-top: 14px; display: flex; align-items: center; gap: 10px; font-size: 14px; line-height: 20px; color: var(--text-4); cursor: pointer; -webkit-user-select: none; user-select: none; }
.agree input { position: absolute; opacity: 0; pointer-events: none; }
.agree-box {
  width: 22px; height: 22px; border-radius: 7px; flex: none;
  background: var(--field); color: transparent;
  display: grid; place-items: center;
  transition: background .15s;
}
.agree-box svg { width: 16px; height: 16px; }
.agree input:checked + .agree-box { background: var(--blue); color: #fff; }
.agree input:focus-visible + .agree-box { outline: 2px solid var(--blue); outline-offset: 2px; }
.agree a { color: var(--blue); }
.agree.is-err .agree-box { box-shadow: 0 0 0 2px var(--err); }
.m-info .pay-wrap { margin-top: 20px; }
.btn-buy { width: 100%; }
.m-guar {
  margin-top: 16px; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 16px; line-height: 24px;
}
.m-guar svg:first-child { width: 18px; height: 18px; color: var(--blue); }
.m-guar svg:last-child { width: 18px; height: 18px; }
.done-ic {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--grad-green); color: #fff;
  display: grid; place-items: center;
  box-shadow: inset 0 -3px 0 rgba(0,96,56,.3);
}
.done-ic svg { width: 36px; height: 36px; }
.done-steps {
  margin-top: 20px; width: 100%;
  background: var(--surface); box-shadow: 0 0 0 1px var(--ring);
  border-radius: 16px; padding: 16px;
  display: grid; gap: 10px; text-align: left; font-size: 15px; line-height: 22px;
}
.done-steps div { display: flex; align-items: center; gap: 10px; }
.done-steps span {
  width: 24px; height: 24px; border-radius: 50%; flex: none;
  background: var(--blue); color: #fff; font-size: 13px; font-weight: 700;
  display: grid; place-items: center;
}
.done-steps a { color: var(--blue); font-weight: 600; }
.m-pays { margin-top: 10px; font-size: 13px; line-height: 18px; color: var(--text-2); text-align: center; }

/* Предупреждение (config.php → notice) */
.notice {
  margin-top: 24px;
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 20px;
  border-radius: 16px;
  background: #FFF6D9;
  box-shadow: 0 0 0 1px #FBE7A6;
  color: #5C4300;
}
.notice-ic { width: 22px; height: 22px; flex: none; color: #F2A100; margin-top: 1px; }
.notice-txt { display: grid; gap: 2px; min-width: 0; font-size: 15px; line-height: 22px; }
.notice-txt b { font-weight: 700; color: #3D2C00; }

.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 200;
  transform: translateX(-50%);
  background: var(--navy); color: #fff;
  border-radius: 12px; padding: 12px 16px;
  font-size: 14px; line-height: 20px; font-weight: 500;
  box-shadow: 0 8px 30px rgba(6,25,77,.3);
  animation: pop .2s ease;
  max-width: calc(100% - 32px);
}

@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes sheet { from { transform: translateY(100%); } }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { animation-name: toastIn; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 10px); } }

@media (hover: hover) {
  .hnav-i:hover, .hnav-i:hover .hnav-ic { color: var(--blue); }
  .hnav-i.is-pill:hover span { color: #fff; }
  .tab:hover { color: var(--blue); }
  .btn-blue:hover { filter: brightness(1.06); }
  .btn-green:hover { filter: brightness(1.05); }
  .chip:not(.is-on):hover { background: #E6EBF5; }
  .card:hover .card-img > svg, .card:hover .card-img > img { transform: scale(1.04); }
  .card:hover .card-title { color: var(--blue); }
  .dd-item:hover { background: var(--chip); }
  .faq-i summary:hover { color: var(--blue); }
  .redeem-copy:hover { background: var(--chip); color: var(--blue); }
  .f-links a:hover, .m-guar:hover { color: var(--blue); }
}

/* ===== Ноутбуки ===== */
@media (max-width: 1279px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .quick { padding-right: 24px; gap: 20px; }
  .quick-img { width: 240px; height: 180px; }
  .btn-pay { width: 230px; }
  .csearch { flex: 0 1 300px; width: auto; min-width: 200px; }
  .filters { gap: 16px; }
  .chip { padding: 0 16px; }
  .g-grid, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-in { grid-template-columns: minmax(0, 1fr) 320px; }
}

/* ===== Планшеты и телефоны (как у Playerok: мобильный вид до 1024px) ===== */
@media (max-width: 1023px) {
  :root {
    --gl: max(16px, env(safe-area-inset-left, 0px));
    --gr: max(16px, env(safe-area-inset-right, 0px));
  }
  .header { display: none; }
  .mheader {
    display: flex; align-items: center; justify-content: space-between;
    height: 52px;
    padding-left: var(--gl); padding-right: var(--gr);
    background: #fff;
  }
  .mheader .logo { font-size: 26px; line-height: 26px; gap: 8px; }
  .mheader .logo-mark { width: 30px; height: 30px; }
  .notice { margin-top: 20px; padding: 12px 14px; border-radius: 14px; }
  .notice-txt { font-size: 14px; line-height: 20px; }
  .mh-btn { width: 40px; height: 40px; display: grid; place-items: center; margin-right: -8px; color: var(--text); }
  .mh-btn svg { width: 24px; height: 24px; }

  .banner {
    margin-top: 0;
    margin-left: calc(-1 * var(--gl)); margin-right: calc(-1 * var(--gr));
    height: auto; overflow: visible; background: none; border-radius: 0;
  }
  .banner-art { height: 140px; border-radius: 24px 24px 0 0; overflow: hidden; background: #1453FF; }
  .banner-head {
    position: relative; left: auto; bottom: auto; display: block;
    padding-left: var(--gl); padding-right: var(--gr);
    margin-top: -28px;
  }
  .banner-ic { width: 56px; height: 56px; border-radius: 16px; box-shadow: 0 0 0 2px #fff; }
  .banner h1 { color: var(--text); font-size: 20px; line-height: 28px; margin-top: 10px; }

  .tabs { margin-top: 16px; }
  .tabs-row { gap: 20px; margin-right: calc(-1 * var(--gr)); padding-right: var(--gr); }
  .tab { font-size: 16px; line-height: 24px; padding-bottom: 12px; }
  .tab::after { height: 2px; }

  .quick {
    margin-top: 28px; background: none; box-shadow: none; border-radius: 0; padding: 0;
    display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px 12px; align-items: center;
  }
  .quick-img { width: 96px; height: 72px; border-radius: 8px; }
  .quick-body { display: contents; }
  .quick-title { grid-column: 2; grid-row: 1; align-self: start; font-size: 20px; line-height: 28px; margin-top: 4px; }
  .q-badges-m { display: flex; grid-column: 2; grid-row: 1; align-self: end; margin-bottom: 4px; }
  .q-badges-d { display: none; }
  .quick-img { grid-column: 1; grid-row: 1; }
  .quick-row {
    grid-column: 1 / -1; margin-top: 12px;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px;
  }
  .quick-row .pay-wrap { grid-column: 1 / -1; margin-top: 12px; }
  .btn-pay { width: 100%; margin-left: 0; }

  .field { height: 60px; border-radius: 12px; padding: 0 16px; }
  .field input { left: 16px; right: 16px; bottom: 9px; height: 24px; font-size: 16px; line-height: 24px; }
  .field-label { left: 16px; right: 16px; font-size: 16px; }
  .field-label.is-up,
  .field input:focus ~ .field-label,
  .field input:not(:placeholder-shown) ~ .field-label { top: 9px; font-size: 13px; line-height: 18px; }
  .field-err { right: 16px; top: 9px; font-size: 11px; line-height: 18px; }
  .field.is-err .field-label { right: 16px; }
  .field.is-err .field-err { position: static; display: none; }
  .field-select { padding-right: 40px; }
  .field-select .field-label { right: 40px; }
  .field-value { left: 16px; right: 40px; bottom: 9px; font-size: 16px; line-height: 24px; }
  .field-chev { right: 12px; }
  .field-value .w-long { display: none; }
  .field-value .w-short { display: inline; }
  .dropdown { left: auto; right: 0; width: max(100%, 250px); }

  .btn { height: 42px; font-size: 16px; line-height: 24px; padding: 6px 16px; }
  .bonus { top: -11px; right: 8px; height: 22px; font-size: 13px; line-height: 18px; }

  .catalog { margin-top: 32px; }
  .filters { flex-direction: column; align-items: stretch; gap: 12px; }
  .csearch { order: 0; flex: none; width: auto; height: 40px; border-radius: 10px; padding: 0 14px; }
  .csearch input { font-size: 16px; }
  .chips { margin-left: calc(-1 * var(--gl)); margin-right: calc(-1 * var(--gr)); padding-left: var(--gl); padding-right: var(--gr); gap: 12px; }
  .chip { height: 36px; padding: 0 16px; font-size: 16px; }
  .chip-ic { padding: 0 12px; }
  .cat-meta { margin-top: 20px; }
  .sort span { display: none; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 16px; margin-top: 16px; }
  .card-img { border-radius: 12px; }
  .price { font-size: 17px; line-height: 24px; }
  .disc { font-size: 13px; line-height: 18px; }
  .old { font-size: 13px; }
  .card-title { font-size: 15px; line-height: 20px; }
  .card-seller { font-size: 13px; }

  .sec { margin-top: 48px; }
  .sec-title { font-size: 20px; line-height: 28px; margin-bottom: 16px; }
  .g-grid, .steps { gap: 12px; }
  .g-card, .step { padding: 20px; border-radius: 20px; }
  .faq-i summary { font-size: 16px; line-height: 24px; padding: 16px; }
  .faq-i p { padding: 0 16px 16px; font-size: 15px; line-height: 22px; }

  .footer { margin-top: 56px; padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  .footer-in { grid-template-columns: 1fr; gap: 32px; padding-block: 32px 24px; }
  .f-title { font-size: 20px; line-height: 28px; margin-bottom: 16px; }
  .f-links { grid-template-columns: 1fr; gap: 12px; }
  .footer-copy { padding-block: 0 24px; font-size: 13px; }

  .bnav {
    display: flex;
    position: fixed; z-index: 50;
    left: max(8px, env(safe-area-inset-left, 0px), calc(50% - 280px));
    right: max(8px, env(safe-area-inset-right, 0px), calc(50% - 280px));
    bottom: calc(6px + env(safe-area-inset-bottom, 0px));
    padding: 2px 8px;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .8);
    box-shadow: 0 0 3px rgba(0, 0, 0, .03), 0 0 56px rgba(0, 0, 0, .08);
  }
  .bnav-bg {
    position: absolute; inset: 0; z-index: -1;
    background: rgba(255, 255, 255, .9);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
  .bnav-i {
    flex: 1; min-width: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 7px 2px 3px;
    font-size: 12px; line-height: 18px; color: #67748A;
    transition: color .15s;
  }
  .bnav-i svg { width: 24px; height: 24px; color: var(--icon); transition: color .15s; }
  .bnav-i span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .bnav-i.is-active, .bnav-i.is-active svg { color: var(--blue); }

  .toast { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }

  /* окно оформления = полноэкранная страница товара */
  .modal { padding: 0; align-items: stretch; }
  .modal-bg { display: none; }
  .modal-panel {
    width: 100%; max-height: none; height: 100%;
    border-radius: 0; padding: 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    animation: sheet .28s cubic-bezier(.2, .8, .2, 1);
  }
  .m-top {
    display: flex; align-items: center; gap: 12px;
    position: sticky; top: 0; z-index: 3;
    height: calc(60px + env(safe-area-inset-top, 0px));
    padding-top: env(safe-area-inset-top, 0px);
    padding-left: var(--gl); padding-right: var(--gr);
    background: #fff;
  }
  .m-back { width: 40px; height: 40px; margin-left: -8px; display: grid; place-items: center; }
  .m-back svg { width: 26px; height: 26px; }
  .m-crumb { display: flex; flex-direction: column; font-size: 14px; line-height: 18px; }
  .m-crumb b { font-size: 16px; line-height: 20px; }
  .m-x { display: none; }
  .m-body { flex-direction: column; gap: 0; }
  .m-img { width: 100%; border-radius: 0; }
  .m-info { width: 100%; padding: 16px var(--gr) 24px var(--gl); }
  .m-price .price { font-size: 22px; line-height: 30px; }
  .m-title { font-size: 17px; line-height: 24px; }
  .m-box { padding: 16px; }
  .m-box-t { font-size: 17px; }
}

@media (max-width: 767px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-hit { right: 6px; bottom: 6px; height: 22px; padding: 2px 6px 2px 4px; font-size: 11px; line-height: 18px; }
  .card-hit svg { width: 12px; height: 12px; }
}
@media (max-width: 374px) {
  .bnav { padding: 2px 4px; }
  .bnav-i { font-size: 11px; letter-spacing: -.01em; padding-inline: 1px; }
}
@media (max-width: 359px) {
  .bnav-i { font-size: 10px; letter-spacing: -.02em; }
  .quick-title { font-size: 18px; }
  .chip { padding: 0 12px; font-size: 15px; }
}
@media (max-width: 559px) {
  .g-grid, .steps { grid-template-columns: 1fr; }
}
@media (min-width: 560px) and (max-width: 1023px) {
  .m-body { flex-direction: row; gap: 20px; padding: 16px var(--gr) 24px var(--gl); }
  .m-img { width: 45%; border-radius: 16px; }
  .m-info { padding: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Оригинальные локальные материалы Playerok */
.banner-art { position: relative; }
.banner-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16, 31, 75, .48), transparent 65%); pointer-events: none; }
.chip > svg { width: 18px; height: 18px; flex: none; }
.m-box-t { display: flex; align-items: center; gap: 8px; }
.m-box-t > svg { width: 22px; height: 22px; flex: none; }
.card-img > img[src$="roblox.png"], .quick-img > img[src$="roblox.png"], .m-img > img[src$="roblox.png"] { object-fit: contain; background: #1536e6; }

/* Показываем исходные обложки полностью, включая номинал и подпись. */
.card-img > img, .quick-img > img, .m-img > img { object-fit: contain; background: #e7efff; }

/* ===== Страница выдачи товара (success.php) ===== */
.s-body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--bar); }
.s-head {
  display: flex; align-items: center; justify-content: center;
  padding-top: max(20px, env(safe-area-inset-top, 0px));
  padding-left: var(--gl); padding-right: var(--gr);
}
.s-page {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding-block: 24px max(40px, env(safe-area-inset-bottom, 0px));
  padding-left: var(--gl); padding-right: var(--gr);
}
.s-card {
  width: 100%; max-width: 520px;
  background: #fff; border-radius: 32px;
  box-shadow: 0 0 0 1px var(--ring), 0 20px 60px rgba(8, 33, 102, .08);
  padding: 40px 40px 32px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.s-title { margin-top: 20px; font-size: 28px; line-height: 36px; font-weight: 700; text-wrap: balance; }
.s-text { margin-top: 8px; font-size: 16px; line-height: 24px; color: var(--text-4); max-width: 380px; }
.s-code {
  margin-top: 24px; width: 100%;
  background: var(--surface); box-shadow: 0 0 0 1px var(--ring);
  border-radius: 20px; padding: 18px 18px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.s-code-l { font-size: 14px; line-height: 20px; color: var(--text-2); }
.s-code-v {
  font-size: 28px; line-height: 36px; font-weight: 800; letter-spacing: .06em;
  font-variant-numeric: tabular-nums; color: var(--navy);
  overflow-wrap: anywhere; cursor: text;
}
.done-steps p { margin: 0; min-width: 0; }
.s-copy { margin-top: 10px; width: 100%; }
.s-copy svg { width: 20px; height: 20px; }
.s-card .done-steps { margin-top: 16px; }
.btn-ghost { background: var(--chip); color: var(--text); box-shadow: none; }
.s-back { margin-top: 12px; width: 100%; }
@media (hover: hover) { .btn-ghost:hover { background: #E6EBF5; } }
@media (max-width: 1023px) {
  .s-body { padding-bottom: 0; }
  .s-head { padding-top: max(14px, env(safe-area-inset-top, 0px)); }
  .s-head .logo { font-size: 26px; line-height: 26px; gap: 8px; }
  .s-head .logo-mark { width: 30px; height: 30px; }
  .s-page { align-items: flex-start; padding-top: 20px; }
  .s-card { padding: 28px 20px 20px; border-radius: 24px; }
  .s-title { font-size: 24px; line-height: 32px; }
  .s-code-v { font-size: clamp(18px, 6.2vw, 24px); line-height: 32px; letter-spacing: .04em; }
  .toast { bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
}

/* ===== Таблица цен ===== */
.ptable-wrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border-radius: 24px; box-shadow: 0 0 0 1px var(--ring); background: var(--surface);
}
.ptable { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 24px; font-variant-numeric: tabular-nums; }
.ptable th, .ptable td { padding: 14px 24px; text-align: left; white-space: nowrap; }
.ptable thead th { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--text-2); padding-block: 14px 10px; }
.ptable tbody tr + tr th, .ptable tbody tr + tr td { box-shadow: inset 0 1px 0 var(--ring); }
.ptable tbody th { font-weight: 600; }
.ptable .pt-price { font-weight: 700; }
.ptable .disc { margin-left: 6px; vertical-align: 1px; }
.ptable s { color: var(--text-2); }
.ptable .pt-r { display: none; }

/* ===== О магазине ===== */
.about { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.about-txt { display: grid; gap: 12px; font-size: 16px; line-height: 26px; color: var(--text-4); max-width: 68ch; }
.facts {
  margin: 0; display: grid; gap: 0;
  background: var(--surface); box-shadow: 0 0 0 1px var(--ring); border-radius: 24px; padding: 8px 20px;
}
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; font-size: 15px; line-height: 22px; }
.facts div + div { box-shadow: inset 0 1px 0 var(--ring); }
.facts dt { color: var(--text-2); }
.facts dd { margin: 0; font-weight: 600; text-align: right; }

@media (max-width: 1023px) {
  .ptable-wrap { border-radius: 20px; }
  .ptable { font-size: 15px; }
  .ptable th, .ptable td { padding: 12px 16px; }
  .about { grid-template-columns: 1fr; }
  .about-txt { font-size: 15px; line-height: 24px; }
  .facts { border-radius: 20px; padding: 4px 16px; }
}
@media (max-width: 479px) {
  .pt-hide, .ptable .disc { display: none; }
  .ptable { font-size: 15px; }
  .ptable th, .ptable td { padding: 12px 8px; }
  .ptable th:first-child, .ptable td:first-child { padding-left: 16px; }
  .ptable th:last-child, .ptable td:last-child { padding-right: 16px; text-align: right; }
}
@media (max-width: 359px) {
  .ptable .pt-w { display: none; }
  .ptable .pt-r { display: inline; }
}
