:root {
  --orange: #f39513;
  --orange2: #ffb547;
  --text: #232838;
  --navy: #2f3648;
  --muted: #7b8196;
  --soft: #f1f4fa;
  --line: #e7eaf2;
  --white: #fff;
  --green: #1f8a4c;
  --red: #ef3b3b;
  --r: 28px;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
.wrap { width: min(1440px, 100% - 48px); margin: 0 auto; }
.pixel { image-rendering: pixelated; }

/* ---------- Кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 24px; border-radius: 10px; font-weight: 700; font-size: 16px; transition: .15s; white-space: nowrap; }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: #ffa22b; box-shadow: 0 8px 22px rgba(243,149,19,.35); }
.btn-dark { height: 64px; padding: 0 26px; border-radius: 99px; background: var(--navy); color: #fff; font-size: 19px; font-weight: 800; }
.btn-dark:hover { background: #1f2433; transform: translateY(-1px); }
.btn svg { width: 22px; height: 22px; flex: none; }

/* ---------- Шапка ---------- */
.header { padding: 18px 0; position: relative; z-index: 30; }
.header .wrap { display: flex; align-items: center; gap: 24px; }
.header .logo img { height: 34px; width: auto; }
.nav { margin: 0 auto; display: flex; gap: 6px; padding: 8px 14px; border-radius: 16px; background: #fff; box-shadow: 0 6px 30px rgba(35,40,56,.06); }
.nav a { padding: 8px 14px; border-radius: 10px; font-weight: 600; color: #4d5468; font-size: 16px; }
.nav a:hover { color: var(--orange); }
.nav a.active { color: var(--orange); font-weight: 700; }
.online { width: 224px; }
.online-top { display: flex; justify-content: space-between; color: var(--muted); font-size: 16px; font-weight: 600; }
.online-top b { color: var(--text); font-weight: 700; }
.online-bar { height: 8px; border-radius: 9px; background: var(--soft); margin-top: 8px; overflow: hidden; }
.online-bar div { height: 100%; width: 0; border-radius: 9px; background: var(--orange); transition: width .8s; }
.burger { display: none; width: 46px; height: 46px; border-radius: 12px; background: var(--soft); }
.burger span, .burger span::before, .burger span::after { display: block; width: 20px; height: 2px; background: var(--navy); margin: 0 auto; position: relative; border-radius: 2px; }
.burger span::before, .burger span::after { content: ''; position: absolute; left: 0; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }

/* ---------- Слайдер ---------- */
.hero { position: relative; height: 450px; margin-top: 30px; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .6s, visibility .6s; }
.slide.active { opacity: 1; visibility: visible; }
.slide-bg { position: absolute; inset: 0; border-radius: 32px; overflow: hidden; background: var(--c); }
.slide-bg::before { content: ''; position: absolute; inset: 0; background: url(/img/hero-slide-bg.webp) center / cover no-repeat; }
.slide-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(255,255,255,.08), transparent 60%); }
.slide-content { position: relative; z-index: 2; padding: 80px 64px; max-width: 680px; color: #fff; }
.slide h2 { font-size: clamp(34px, 4vw, 54px); font-weight: 800; line-height: 1.15; letter-spacing: -.5px; }
.slide p { font-size: 20px; font-weight: 500; line-height: 1.35; margin: 26px 0 34px; max-width: 580px; opacity: .95; }
.slide-img { position: absolute; z-index: 1; right: 1%; bottom: 0; height: 106%; width: auto; max-width: 55%; object-fit: contain; object-position: bottom right; pointer-events: none;
  transform: translateY(14px); transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.slide.active .slide-img { transform: none; }
.ip-pill { display: inline-flex; align-items: center; gap: 14px; padding: 8px 26px 8px 8px; border-radius: 99px; background: var(--navy); color: #fff; text-align: left; }
.ip-pill:hover { background: #1f2433; }
.ip-pill .ic { width: 48px; height: 48px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--navy); }
.ip-pill small { display: block; font-size: 14px; opacity: .65; font-weight: 600; }
.ip-pill b { font-size: 19px; font-weight: 800; }
.dots { position: absolute; z-index: 3; right: 26px; bottom: 26px; display: flex; gap: 10px; }
.dots button { width: 32px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.4); }
.dots button.active { background: #fff; }

/* ---------- Блок под слайдером ---------- */
.below { display: grid; grid-template-columns: 1fr 1.6fr; gap: 50px; margin-top: 56px; align-items: start; }
.join-card { display: flex; gap: 10px; position: relative; }
.join-left { flex: 1; min-width: 0; padding-top: 6px; }
.ver-row { display: flex; align-items: center; gap: 16px; }
.ver { padding: 7px 9px; border-radius: 8px; background: var(--orange); color: #fff; font-weight: 800; font-size: 15px; letter-spacing: -.3px; }
.ver-row a { color: var(--muted); font-weight: 600; }
.ver-row a:hover { color: var(--orange); }
.join-left h3 { font-size: 24px; font-weight: 800; line-height: 1.3; margin: 22px 0 18px; }
.ip-box { display: flex; align-items: center; justify-content: space-between; gap: 10px; max-width: 256px; height: 56px; padding: 0 5px 0 22px; border-radius: 14px;
  background: #fff7ec; border: 1px solid #f9dfba; font-weight: 700; font-size: 16px; }
.ip-box button { width: 44px; height: 44px; border-radius: 10px; background: var(--orange); color: #fff; display: grid; place-items: center; flex: none; }
.ip-box button:hover { background: #ffa22b; }
.promo { width: 250px; flex: none; margin-top: -10px; }

.coins { position: relative; }
.coins h3 { display: flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 800; }
.coins h3 img { width: 22px; }
.coin-a { position: absolute; width: 90px; right: 30px; top: -60px; animation: float 4s ease-in-out infinite; pointer-events: none; }
.coin-b { position: absolute; width: 64px; left: 48%; bottom: -46px; animation: float 5s ease-in-out infinite reverse; pointer-events: none; }
@keyframes float { 50% { transform: translateY(-10px) rotate(6deg); } }
.coins-row { display: flex; justify-content: space-between; align-items: end; margin-top: 30px; color: var(--muted); font-weight: 600; }
.coins-row b { font-size: 26px; color: var(--text); font-weight: 800; }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 32px; border-radius: 99px; margin-top: 14px; cursor: pointer; outline: none;
  background: linear-gradient(90deg, var(--orange), var(--orange2) calc(var(--p) - 1%), var(--soft) var(--p)); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 34px; height: 36px; background: url(/img/progress-icon.svg) center / contain no-repeat; border: 0; }
.range::-moz-range-thumb { width: 34px; height: 36px; background: url(/img/progress-icon.svg) center / contain no-repeat; border: 0; }
.bonus { margin-top: 20px; font-size: 14px; font-weight: 600; color: var(--muted); }
.bonus.on { color: #22a35a; }
.presets { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.presets button { padding: 7px 14px; border-radius: 99px; background: var(--soft); color: #4d5468; font-weight: 600; font-size: 14px; }
.presets button:hover, .presets button.active { background: #ffe8c8; color: #b86a00; }
.coins-bottom { display: flex; align-items: center; gap: 14px; margin-top: 18px; flex-wrap: wrap; }
.field { display: flex; align-items: baseline; gap: 8px; height: 58px; padding: 0 24px; border-radius: 14px; background: #f6f8fc; }
.field input { width: 90px; border: 0; background: none; font: inherit; font-size: 22px; font-weight: 600; color: var(--text); outline: none; text-align: right; }
.field span { color: var(--muted); font-weight: 600; }
.field.out b { font-size: 22px; font-weight: 600; }
.swap { color: var(--muted); }
.coins-bottom .btn { margin-left: auto; height: 50px; padding: 0 28px; }

/* ---------- Магазин ---------- */
section { padding-top: 110px; }
.sec-title { font-size: clamp(34px, 4vw, 52px); font-weight: 800; letter-spacing: -.5px; }
.recent { display: flex; align-items: center; gap: 16px; margin: 34px 0 30px; }
.recent > span { color: var(--muted); font-weight: 600; font-size: 14px; white-space: nowrap; }
.marquee { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.marquee-track { display: flex; gap: 10px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.buy-pill { display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 99px; background: var(--soft); font-size: 14px; white-space: nowrap; }
.buy-pill .av { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 800; }
.buy-pill b { font-weight: 700; }
.buy-pill i { font-style: normal; color: var(--muted); }

.shop { display: grid; grid-template-columns: 210px 1fr; gap: 34px; align-items: start; }
.cats { display: grid; gap: 14px; position: sticky; top: 20px; }
.cat { display: flex; align-items: center; gap: 14px; padding: 16px 14px; border-radius: 14px; border: 1px solid transparent; font-weight: 600; font-size: 16px; text-align: left; transition: .15s; }
.cat .ic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--tint); flex: none; }
.cat .ic img { width: 32px; height: 32px; }
.cat:hover { background: var(--soft); }
.cat.active { background: var(--tint); border-color: var(--tintb); }
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(214px, 1fr)); gap: 34px 24px; }
.item { display: flex; flex-direction: column; }
.item-img { position: relative; aspect-ratio: 1; border-radius: 26px; overflow: hidden; background: var(--c); cursor: pointer; }
.item-img > img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.item:hover .item-img > img, .item:hover .art { transform: scale(1.05); }
.art { position: absolute; inset: 0; display: grid; place-items: center; transition: transform .35s;
  background: radial-gradient(circle at 50% 38%, rgba(255,255,255,.38), transparent 55%), linear-gradient(160deg, color-mix(in srgb, var(--c) 75%, #fff), var(--c) 55%, color-mix(in srgb, var(--c) 70%, #000)); }
.art::before { content: ''; position: absolute; inset: 0; background: url(/img/hero-slide-bg.webp) center / 300% auto; opacity: .7; }
.art img { position: relative; width: 46%; filter: drop-shadow(0 10px 14px rgba(0,0,0,.25)); }
.art span { position: absolute; bottom: 14%; left: 0; right: 0; text-align: center; font-weight: 800; font-size: 22px; color: #fff; letter-spacing: 1px; text-shadow: 0 3px 0 rgba(0,0,0,.18); }
.tag { position: absolute; top: 0; background: #fff; padding: 7px; z-index: 2; }
.tag b { display: block; padding: 5px 10px; border-radius: 99px; color: #fff; font-size: 12px; font-weight: 800; }
.tag::before, .tag::after { content: ''; position: absolute; width: 16px; height: 16px; background: url(/img/decor.svg) center / contain no-repeat; }
.tag.right { right: 0; border-bottom-left-radius: 20px; }
.tag.right::before { top: 0; left: -16px; transform: scaleX(-1); }
.tag.right::after { bottom: -16px; right: 0; transform: scaleX(-1); }
.tag.left { left: 0; border-bottom-right-radius: 20px; }
.tag.left::before { top: 0; right: -16px; }
.tag.left::after { bottom: -16px; left: 0; }
.tag.hit b { background: var(--green); }
.tag.sale b { background: var(--red); }
.item h4 { margin: 20px 20px 0; font-size: 19px; font-weight: 700; text-transform: uppercase; line-height: 1.2; }
.item .price { margin: 4px 20px 0; font-size: 19px; font-weight: 700; }
.item .price small { font-size: 15px; color: var(--muted); font-weight: 600; text-transform: uppercase; }
.item .price .per { text-transform: none; }
.item .sub { margin: 4px 20px 0; color: var(--muted); font-size: 13px; font-weight: 600; min-height: 20px; }
.item .sub s { margin-left: 6px; }
.item .btn { margin: 14px 20px 0; height: 48px; }

/* ---------- Как зайти и правила ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 34px; }
.step { padding: 28px; border-radius: 22px; background: var(--soft); position: relative; overflow: hidden; }
.step .n { width: 44px; height: 48px; display: grid; place-items: center; background: url(/img/progress-icon.svg) center / contain no-repeat; color: #fff; font-weight: 800; font-size: 18px; margin-bottom: 18px; }
.step p { font-size: 17px; font-weight: 600; line-height: 1.45; }
.rules { display: grid; gap: 12px; margin-top: 34px; counter-reset: r; max-width: 980px; }
.rule { display: flex; gap: 16px; align-items: center; padding: 18px 22px; border-radius: 16px; background: var(--soft); font-weight: 600; }
.rule::before { counter-increment: r; content: counter(r); flex: none; width: 34px; height: 34px; border-radius: 10px; background: #fff; color: var(--orange); display: grid; place-items: center; font-weight: 800; }

/* ---------- Футер ---------- */
footer { position: relative; margin-top: 140px; overflow: hidden; }
.footer-grid { position: relative; display: grid; grid-template-columns: 1fr 430px 1.3fr; gap: 20px; min-height: 524px; }
.footer-mark { position: absolute; left: 50%; top: 170px; transform: translateX(-50%); width: min(1200px, 100%); pointer-events: none; }
.footer-left { padding-top: 40px; position: relative; z-index: 1; }
.footer-left h5 { font-size: 18px; font-weight: 600; }
.footer-left p { color: var(--muted); font-size: 13px; line-height: 1.4; margin-top: 10px; max-width: 400px; }
.footer-img { align-self: end; position: relative; z-index: 1; mix-blend-mode: multiply; }
.footer-right { padding-top: 34px; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; padding-bottom: 30px; position: relative; z-index: 1; }
.flinks { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px 0; }
.flinks a { padding: 0 12px; white-space: nowrap; border-left: 1px solid #c9cdd8; font-weight: 500; font-size: 16px; line-height: 1; }
.flinks a:first-child { border-left: 0; }
.flinks a:hover { color: var(--orange); }
.socials { display: flex; gap: 14px; }
.socials a { width: 28px; height: 28px; transition: transform .15s; }
.socials a:hover { transform: translateY(-2px); }
.socials img { width: 100%; height: 100%; }

/* ---------- Модалка и тост ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(20,24,36,.55); backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: .2s; }
.modal.open { opacity: 1; visibility: visible; }
.modal-box { width: min(480px, 100%); background: #fff; border-radius: 26px; padding: 30px; position: relative; transform: translateY(10px); transition: .2s; max-height: 90vh; overflow: auto; }
.modal.open .modal-box { transform: none; }
.modal-close { position: absolute; top: 18px; right: 18px; width: 38px; height: 38px; border-radius: 10px; background: var(--soft); font-size: 20px; }
.modal h3 { font-size: 26px; font-weight: 800; padding-right: 40px; }
.modal .m-price { color: var(--muted); font-weight: 600; margin-top: 6px; }
.modal ul { list-style: none; display: grid; gap: 10px; margin: 22px 0; }
.modal li { display: flex; gap: 10px; font-weight: 600; }
.modal li::before { content: ''; flex: none; width: 18px; height: 20px; margin-top: 1px; background: url(/img/progress-icon.svg) center / contain no-repeat; }
.pay { display: grid; gap: 10px; }
.pay .btn { width: 100%; justify-content: space-between; height: 56px; }
.pay .btn-soft { background: var(--soft); color: var(--text); }
.pay .btn-soft:hover { background: #e7ebf4; }
.pay .btn.disabled { opacity: .45; pointer-events: none; }
.m-note { margin-top: 16px; font-size: 13px; color: var(--muted); line-height: 1.45; }
.toast { position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 20px); padding: 13px 22px; border-radius: 12px; background: var(--navy); color: #fff; font-weight: 700; opacity: 0; transition: .25s; z-index: 120; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Адаптив ---------- */
@media (max-width: 1200px) {
  .online { display: none; }
  .below { grid-template-columns: 1fr; gap: 70px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-img { display: none; }
}
@media (max-width: 900px) {
  .nav { display: none; position: absolute; top: 74px; left: 24px; right: 24px; flex-direction: column; }
  .nav.open { display: flex; }
  .burger { display: block; margin-left: auto; }
  .header .btn-orange { display: none; }
  .hero { height: 520px; }
  .slide-content { padding: 40px 30px; }
  .slide p { font-size: 17px; margin: 18px 0 24px; }
  .slide-img { height: 62%; max-width: 80%; right: 50%; transform: translateX(50%) translateY(14px); }
  .slide.active .slide-img { transform: translateX(50%); }
  .shop { grid-template-columns: 1fr; }
  .cats { position: static; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .cat { flex-direction: column; gap: 8px; padding: 12px 6px; font-size: 14px; text-align: center; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; min-height: 0; }
  .footer-right { align-items: flex-start; gap: 24px; }
  .flinks { justify-content: flex-start; }
  .flinks a:first-child { padding-left: 0; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 28px); }
  .promo { display: none; }
  .items { grid-template-columns: repeat(2, 1fr); gap: 24px 12px; }
  .item h4, .item .price, .item .sub { margin-left: 6px; margin-right: 6px; }
  .item h4 { font-size: 16px; } .item .price { font-size: 16px; }
  .item .btn { margin: 12px 0 0; height: 44px; }
  .coins-bottom .btn { width: 100%; margin: 0; }
  .field { padding: 0 16px; } .field input { width: 70px; }
  .coin-a { width: 64px; right: 0; }
  .ip-pill b { font-size: 16px; }
}

/* ---------- v3: аккаунты, купоны, правки дизайна ---------- */
.btn-soft { background: var(--soft); color: var(--text); }
.btn-soft:hover { background: #e7ebf4; }
.user-slot { min-width: 96px; display: flex; justify-content: flex-end; }
.user-chip { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px 0 8px; border-radius: 12px; background: var(--soft); font-weight: 700; transition: .15s; }
.user-chip:hover { background: #e7ebf4; }
.user-chip img { width: 32px; height: 32px; border-radius: 8px; }
.item .price s.old { font-size: 14px; color: var(--muted); font-weight: 600; margin-left: 4px; }
.item-img { box-shadow: 0 0 0 rgba(0,0,0,0); transition: box-shadow .25s, transform .25s; }
.item:hover .item-img { box-shadow: 0 16px 34px -12px color-mix(in srgb, var(--c) 70%, transparent); transform: translateY(-4px); }
.sec-title::after { content: ''; display: block; width: 64px; height: 6px; border-radius: 6px; background: var(--orange); margin-top: 14px; }
.coupon { display: flex; gap: 8px; margin-bottom: 8px; }
.coupon input { flex: 1; min-width: 0; height: 48px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line); background: #f9fafc; font: inherit; font-weight: 700; text-transform: uppercase; outline: none; }
.coupon input:focus { border-color: var(--orange); background: #fff; }
.c-msg { font-size: 13px; font-weight: 600; min-height: 18px; margin-bottom: 12px; }
.c-msg.ok { color: #1f8a4c; } .c-msg.bad { color: var(--red); }
@media (max-width: 900px) { .hide-sm { display: none !important; } .user-slot { margin-left: auto; min-width: 0; } .burger { margin-left: 0; } }

/* ---------- Страницы входа и профиля ---------- */
.page { min-height: calc(100vh - 90px); }
.auth { display: grid; grid-template-columns: 1fr 1fr; gap: 0; max-width: 1100px; margin: 30px auto 60px; border-radius: 32px; overflow: hidden; background: #fff; box-shadow: 0 20px 60px -20px rgba(35,40,56,.18); }
.auth-art { position: relative; background: var(--orange); min-height: 560px; overflow: hidden; }
.auth-art::before { content: ''; position: absolute; inset: 0; background: url(/img/hero-slide-bg.webp) center / cover; }
.auth-art img { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); height: 78%; width: auto; max-width: none; }
.auth-art h2 { position: relative; color: #fff; font-size: 34px; font-weight: 800; padding: 44px 44px 0; line-height: 1.15; }
.auth-form { padding: 48px 48px 40px; }
.auth-tabs { display: inline-flex; padding: 5px; border-radius: 14px; background: var(--soft); margin-bottom: 28px; }
.auth-tabs button { padding: 10px 22px; border-radius: 10px; font-weight: 700; color: var(--muted); }
.auth-tabs button.active { background: #fff; color: var(--text); box-shadow: 0 2px 8px rgba(35,40,56,.08); }
.f { display: grid; gap: 7px; margin-bottom: 16px; }
.f label { font-weight: 700; font-size: 14px; }
.f input { height: 52px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--line); background: #f9fafc; font: inherit; font-size: 16px; outline: none; transition: .15s; }
.f input:focus { border-color: var(--orange); background: #fff; box-shadow: 0 0 0 4px rgba(243,149,19,.12); }
.f input.bad { border-color: var(--red); }
.f small { color: var(--muted); font-size: 13px; }
.form-err { color: var(--red); font-weight: 600; font-size: 14px; min-height: 20px; margin-bottom: 10px; }
.auth-form .btn-orange { width: 100%; height: 54px; }
.auth-note { color: var(--muted); font-size: 13px; margin-top: 16px; line-height: 1.5; }

.profile { display: grid; grid-template-columns: 340px 1fr; gap: 24px; margin: 30px 0 60px; align-items: start; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 28px; }
.p-head { text-align: center; position: relative; overflow: hidden; }
.p-head::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 110px; background: var(--orange) url(/img/hero-slide-bg.webp) center / cover; }
.p-head img.skin { position: relative; width: 120px; height: 120px; border-radius: 22px; border: 6px solid #fff; margin: 30px auto 14px; background: #fff; image-rendering: pixelated; }
.p-head h2 { font-size: 26px; font-weight: 800; }
.role { display: inline-block; margin-top: 8px; padding: 5px 12px; border-radius: 99px; font-size: 13px; font-weight: 800; }
.role-creator { background: #fff0d9; color: #c26a00; }
.role-admin { background: #fde4e4; color: #c62828; }
.role-support { background: #e3ebff; color: #3557d6; }
.role-player { background: var(--soft); color: #4d5468; }
.p-rows { margin-top: 22px; text-align: left; display: grid; gap: 12px; }
.p-row { display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 14px; background: #f7f9fc; font-size: 14px; }
.p-row span { color: var(--muted); font-weight: 600; }
.p-row b { font-weight: 700; text-align: right; word-break: break-all; }
.p-row .lock { display: inline-flex; align-items: center; gap: 6px; }
.p-actions { display: grid; gap: 10px; margin-top: 18px; }
.p-actions .btn { width: 100%; }
.card h3 { font-size: 22px; font-weight: 800; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.card h3 img { width: 22px; }
.stats3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 24px; }
.stat { padding: 18px 20px; border-radius: 18px; background: #f7f9fc; }
.stat span { color: var(--muted); font-size: 13px; font-weight: 700; }
.stat b { display: block; font-size: 26px; font-weight: 800; margin-top: 2px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th { text-align: left; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .5px; font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 14px 12px; border-bottom: 1px solid var(--line); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl-wrap { overflow-x: auto; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty img { width: 64px; margin: 0 auto 12px; opacity: .9; }
.pill { display: inline-block; padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 800; background: #e5f6ec; color: #1f8a4c; }
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; margin-top: 10px; }
  .auth-art { min-height: 260px; } .auth-art h2 { font-size: 26px; padding: 30px 30px 0; } .auth-art img { height: 70%; }
  .auth-form { padding: 32px 24px; }
  .profile { grid-template-columns: 1fr; }
  .stats3 { grid-template-columns: 1fr 1fr; }
}

/* ---------- Правила ---------- */
.page-hero { position: relative; margin-top: 30px; border-radius: 32px; overflow: hidden; background: var(--c, var(--orange)); color: #fff; padding: 56px 64px; min-height: 230px; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: url(/img/hero-slide-bg.webp) center / cover; }
.page-hero > * { position: relative; }
.page-hero h1 { font-size: clamp(32px, 4vw, 50px); font-weight: 800; letter-spacing: -.5px; max-width: 720px; }
.page-hero p { font-size: 18px; font-weight: 500; opacity: .95; margin-top: 12px; max-width: 640px; }
.page-hero img.hero-ch { position: absolute; right: 40px; bottom: 0; height: 115%; width: auto; max-width: 45%; object-fit: contain; object-position: bottom; }
.rules-layout { display: grid; grid-template-columns: 270px 1fr; gap: 34px; margin: 40px 0 60px; align-items: start; }
.toc { position: sticky; top: 20px; display: grid; gap: 4px; }
.toc .search { position: relative; margin-bottom: 12px; }
.toc .search input { width: 100%; height: 48px; padding: 0 16px 0 42px; border-radius: 12px; border: 1px solid var(--line); background: #f9fafc; font: inherit; outline: none; }
.toc .search input:focus { border-color: var(--orange); background: #fff; }
.toc .search::before { content: '🔍'; position: absolute; left: 14px; top: 13px; font-size: 15px; opacity: .6; }
.toc a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; font-weight: 700; font-size: 14px; color: #4d5468; }
.toc a:hover { background: var(--soft); }
.toc a.active { background: #fff1dc; color: #b86a00; }
.toc a span { width: 30px; height: 30px; border-radius: 9px; background: var(--soft); display: grid; place-items: center; flex: none; }
.r-doc-title { font-size: 14px; font-weight: 800; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 10px; }
.r-sec { margin-bottom: 34px; padding-top: 0; scroll-margin-top: 20px; }
.r-sec h2 { display: flex; align-items: center; gap: 14px; font-size: 26px; font-weight: 800; margin-bottom: 16px; }
.r-sec h2 em { font-style: normal; color: var(--orange); }
.r-ic { width: 48px; height: 48px; border-radius: 14px; background: #fff1dc; display: grid; place-items: center; font-size: 24px; flex: none; }
.r-intro { padding: 14px 18px; border-radius: 14px; background: #fff7ec; border: 1px solid #f9dfba; color: #8a5a12; font-weight: 700; margin-bottom: 12px; }
.r-rule { display: flex; gap: 16px; padding: 18px 20px; border-radius: 18px; background: #f7f9fc; margin-bottom: 10px; border: 1px solid transparent; transition: .15s; scroll-margin-top: 20px; }
.r-rule:hover { border-color: var(--line); background: #fff; }
.r-rule:target { border-color: var(--orange); background: #fff; box-shadow: 0 0 0 4px rgba(243,149,19,.12); }
.r-num { flex: none; min-width: 50px; height: 34px; padding: 0 8px; border-radius: 10px; background: #fff; color: var(--orange); font-weight: 800; display: grid; place-items: center; box-shadow: 0 1px 0 var(--line); }
.r-body { flex: 1; min-width: 0; }
.r-text { font-weight: 600; font-size: 16px; line-height: 1.5; padding-top: 5px; }
.r-lines { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.r-lines span { padding: 6px 12px; border-radius: 9px; background: #fff; border: 1px solid var(--line); font-weight: 700; font-size: 14px; }
.r-pun { display: inline-flex; align-items: center; gap: 8px; margin: 10px 8px 0 0; padding: 7px 12px; border-radius: 10px; background: #fde9e9; color: #c62828; font-weight: 700; font-size: 14px; }
.r-pun::before { content: '⚖️'; font-size: 13px; }
.r-note { margin-top: 10px; padding: 10px 14px; border-radius: 10px; background: #fff7ec; color: #8a5a12; font-size: 14px; font-weight: 600; line-height: 1.5; }
.r-note::before { content: '❗ '; }
.r-box { border: 1px solid var(--line); border-radius: 18px; margin: 4px 0 14px; background: #fff; overflow: hidden; }
.r-box summary { cursor: pointer; padding: 16px 20px; font-weight: 800; list-style: none; display: flex; align-items: center; gap: 10px; }
.r-box summary::-webkit-details-marker { display: none; }
.r-box summary::before { content: '›'; font-size: 22px; line-height: 1; color: var(--orange); transition: transform .2s; }
.r-box[open] summary::before { transform: rotate(90deg); }
.r-box-body { padding: 0 20px 18px; }
.r-box-body p { line-height: 1.55; font-weight: 500; margin-bottom: 8px; }
.r-box-body h5 { font-size: 14px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin: 12px 0 8px; }
.r-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.r-chips span { padding: 5px 10px; border-radius: 8px; background: var(--soft); font-size: 13px; font-weight: 600; }
.r-list { list-style: none; display: grid; gap: 6px; margin-bottom: 6px; }
.r-list li { display: flex; gap: 10px; font-weight: 600; }
.r-list li::before { content: '✕'; color: var(--red); font-weight: 900; }
.r-table { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.r-table div { display: flex; justify-content: space-between; gap: 10px; padding: 11px 14px; border-radius: 12px; background: #f7f9fc; font-size: 14px; }
.r-table span { color: #c62828; font-weight: 700; white-space: nowrap; }
.r-hidden { display: none !important; }
.r-empty { padding: 40px; text-align: center; color: var(--muted); }
mark { background: #ffe1a8; border-radius: 3px; padding: 0 2px; }
.rule-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 34px; }
.rule-card { padding: 22px; border-radius: 20px; background: var(--soft); display: flex; flex-direction: column; gap: 12px; transition: .15s; border: 1px solid transparent; }
.rule-card:hover { background: #fff; border-color: var(--orange); transform: translateY(-2px); }
.rule-card .r-ic { background: #fff; }
.rule-card b { font-size: 16px; font-weight: 800; }
.rule-card small { color: var(--muted); font-weight: 600; }
.rules-more { margin-top: 22px; }

/* ---------- Юридические страницы ---------- */
.legal { display: grid; grid-template-columns: 240px 1fr; gap: 34px; margin: 40px 0 60px; align-items: start; }
.legal-nav { position: sticky; top: 20px; display: grid; gap: 4px; }
.legal-nav a { padding: 12px 14px; border-radius: 12px; font-weight: 700; color: #4d5468; }
.legal-nav a:hover { background: var(--soft); }
.legal-nav a.active { background: #fff1dc; color: #b86a00; }
.legal-doc { max-width: 860px; }
.legal-doc .upd { color: var(--muted); font-weight: 600; margin-bottom: 24px; }
.legal-doc h2 { font-size: 22px; font-weight: 800; margin: 30px 0 10px; }
.legal-doc p, .legal-doc li { line-height: 1.65; font-size: 16px; color: #3a4053; }
.legal-doc ul { padding-left: 22px; margin: 8px 0; }
.legal-doc li { margin-bottom: 4px; }
.legal-doc .box { padding: 16px 18px; border-radius: 14px; background: #fff7ec; border: 1px solid #f9dfba; color: #8a5a12; font-weight: 600; margin: 16px 0; line-height: 1.55; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; font-weight: 600; color: #4d5468; margin-bottom: 14px; line-height: 1.45; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--orange); flex: none; }
.check a { color: var(--orange); text-decoration: underline; }
.footer-legal { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 14px; font-size: 13px; }
.footer-legal a { color: var(--muted); text-decoration: underline; }
.footer-legal a:hover { color: var(--orange); }
@media (max-width: 1100px) { .rule-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
  .page-hero { padding: 36px 26px 160px; } .page-hero img.hero-ch { height: 150px; right: 50%; transform: translateX(50%); max-width: 80%; }
  .rules-layout, .legal { grid-template-columns: 1fr; }
  .toc, .legal-nav { position: static; }
  .toc a:not(.active) { display: none; }
  .legal-nav { grid-template-columns: repeat(3, 1fr); } .legal-nav a { text-align: center; font-size: 13px; padding: 10px 6px; }
  .r-rule { padding: 14px; gap: 12px; } .r-num { min-width: 42px; }
}
@media (max-width: 560px) { .rule-cards { grid-template-columns: 1fr; } }

/* ---------- Оплата картой и чек ---------- */
.card-pay { margin-top: 14px; padding: 18px; border-radius: 18px; border: 1px solid #f9dfba; background: #fffaf2; }
.cp-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.cp-head b { font-size: 16px; } .cp-head span { color: var(--muted); font-size: 13px; font-weight: 600; }
.cp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.cp-f { min-width: 0; display: grid; gap: 5px; font-size: 13px; font-weight: 700; color: #4d5468; }
.cp-f input { width: 100%; min-width: 0; height: 46px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: 15px; outline: none; }
.cp-f input:focus { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(243,149,19,.12); }
.cp-f input.bad { border-color: var(--red); }
.cp-gift { padding: 9px 12px; border-radius: 10px; background: #f6edff; color: #6b3fd1; font-weight: 700; font-size: 14px; margin-bottom: 12px; }
.card-pay .btn-orange { width: 100%; height: 52px; }
.card-pay .form-err { margin-bottom: 8px; }
@media (max-width: 560px) { .cp-grid { grid-template-columns: 1fr; } }

.receipt-wrap { max-width: 560px; margin: 40px auto 60px; }
.receipt { position: relative; background: #fff; border-radius: 24px; box-shadow: 0 24px 60px -24px rgba(35,40,56,.25); overflow: hidden; }
.receipt::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 14px;
  background: radial-gradient(circle at 10px 14px, #f5f7fb 9px, transparent 10px) 0 0 / 20px 14px repeat-x; }
.rc-top { padding: 28px 30px 22px; background: var(--orange) url(/img/hero-slide-bg.webp) center / cover; color: #fff; }
.rc-top img { height: 30px; }
.rc-top h1 { font-size: 26px; font-weight: 800; margin-top: 18px; }
.rc-top p { opacity: .9; font-weight: 600; margin-top: 4px; }
.rc-body { padding: 24px 30px 40px; }
.rc-status { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; font-weight: 700; margin-bottom: 20px; }
.rc-status .ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 17px; flex: none; background: #fff; }
.rc-status small { display: block; font-weight: 600; font-size: 13px; opacity: .8; }
.st-ok { background: #e5f6ec; color: #1f6b3d; } .st-wait { background: #fff4e0; color: #8a5a12; } .st-bad { background: #fdecec; color: #a32020; }
.spin { width: 18px; height: 18px; border: 3px solid #f3c27a; border-top-color: var(--orange); border-radius: 50%; animation: sp 0.8s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }
.rc-rows { display: grid; gap: 0; }
.rc-row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.rc-row span { color: var(--muted); font-weight: 600; }
.rc-row b { text-align: right; word-break: break-all; }
.rc-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 16px; font-size: 22px; font-weight: 800; }
.rc-actions { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.rc-actions .btn { flex: 1; }
.rc-note { color: var(--muted); font-size: 13px; line-height: 1.5; margin-top: 18px; }
@media print {
  .header, .rc-actions, .rc-note.noprint { display: none !important; }
  body { background: #fff; } .receipt { box-shadow: none; border: 1px solid #ddd; }
  .rc-top { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

.cp-opts:empty { display: none; } .cp-opts { margin-bottom: 12px; }
.cp-f select { width: 100%; height: 46px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: 15px; }
.pay button.btn { border: 0; cursor: pointer; font: inherit; }

/* показать пароль */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { width: 100%; padding-right: 52px !important; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: #8a93a8; background: transparent; cursor: pointer; transition: .15s; }
.pw-eye:hover { color: var(--orange); background: #fff1dc; }
input::-ms-reveal { display: none; }

/* меню разделов на странице правил — в стиле меню админки */
.toc { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 4px; padding: 16px 12px; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: 0 14px 40px rgba(20,30,60,.05); }
.toc .search { margin: 0 2px 10px; }
.toc .search input { height: 46px; }
.toc .toc-t { font-size: 11.5px; font-weight: 700; color: var(--muted); padding: 6px 10px 6px; }
.toc a { position: relative; display: flex; align-items: center; gap: 12px; padding: 7px 10px 7px 7px; border-radius: 14px; font-weight: 700; font-size: 14.5px; color: #4d5468; transition: background .15s, color .15s; }
.toc a:hover { background: #f5f7fb; color: var(--text); }
.toc a span { width: 38px; height: 38px; border-radius: 11px; background: #f1f3f8; display: grid; place-items: center; flex: none; font-size: 18px; box-shadow: inset 0 -2px 0 rgba(0,0,0,.06); transition: .15s; }
.toc a:hover span { transform: translateY(-1px); }
.toc a.active { background: #fff1dc; color: #b86a00; }
.toc a.active span { background: var(--orange); box-shadow: 0 5px 14px rgba(243,149,19,.4), inset 0 -3px 0 rgba(0,0,0,.15); }
.toc a .tc { margin-left: auto; min-width: 24px; height: 22px; padding: 0 7px; border-radius: 7px; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: #f1f3f8; color: var(--muted); }
.toc a.active .tc { background: var(--orange); color: #fff; }
.toc a .tl { flex: 1; min-width: 0; line-height: 1.25; font-weight: 700; } .toc a .tc { font-style: normal; }
@media (max-width: 1000px) {
  .toc { position: sticky; top: 0; z-index: 20; flex-direction: row; overflow-x: auto; padding: 10px; border-radius: 18px; gap: 6px; scrollbar-width: none; }
  .toc .search, .toc .toc-t { display: none; }
  .toc a, .toc a:not(.active) { display: flex; flex: none; padding: 6px 12px 6px 6px; }
  .toc a span { width: 32px; height: 32px; font-size: 16px; } .toc a .tc { display: none; }
}
