/* ==========================================================================
   CASER2.PRO — основной стиль
   Тёмная игровая тема, открытие кейсов CS2
   ========================================================================== */

:root {
  --bg:        #0c0e16;
  --bg-2:      #11141f;
  --bg-3:      #161a28;
  --panel:     #181d2c;
  --panel-2:   #1f2536;
  --line:      #262d42;
  --text:      #e9ecf5;
  --muted:     #8b93ad;
  --muted-2:   #5d6480;
  --accent:    #ffb43a;   /* золото-янтарь */
  --accent-2:  #ff8a3d;
  --gold-grad: linear-gradient(135deg, #ffd76a 0%, #ffb43a 45%, #ff8a3d 100%);
  --violet:    #8d6bff;
  --teal:      #2fe0c0;
  --red:       #ff5470;
  --green:     #34d399;

  --r-sm: 8px;
  --r:    14px;
  --r-lg: 20px;
  --shadow: 0 18px 40px -18px rgba(0,0,0,.7);
  --ring: 0 0 0 1px var(--line);
  --maxw: 1240px;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background:
    radial-gradient(900px 500px at 80% -5%, rgba(141,107,255,.14), transparent 60%),
    radial-gradient(800px 500px at 0% 0%, rgba(255,180,58,.10), transparent 55%),
    var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1,h2,h3,h4 { line-height: 1.15; margin: 0 0 .4em; font-weight: 800; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.center { text-align: center; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 12px; font-weight: 700;
  border: 1px solid transparent; cursor: pointer; font-size: 15px;
  transition: transform .12s ease, box-shadow .2s ease, background .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary {
  background: var(--gold-grad); color: #1a1304;
  box-shadow: 0 10px 30px -10px rgba(255,170,60,.7);
}
.btn-primary:hover { box-shadow: 0 14px 34px -8px rgba(255,170,60,.85); }
.btn-ghost { background: var(--panel-2); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-3); border-color: #36405e; }
.btn-lg { padding: 15px 30px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Хедер ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12,14,22,.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 26px; height: 70px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 21px; letter-spacing: -.02em; }
.logo .mark { width: 34px; height: 34px; }
.logo b { color: var(--accent); }
.nav-links { display: flex; gap: 4px; margin-left: 10px; }
.nav-links a {
  padding: 8px 13px; border-radius: 10px; color: var(--muted);
  font-weight: 600; font-size: 15px; transition: .15s; white-space: nowrap;
}
.nav-links a:hover { color: var(--text); background: var(--panel); }
.nav-links a.active { color: var(--text); background: var(--panel); }
.nav-spacer { flex: 1; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.balance {
  display: flex; align-items: center; gap: 8px; background: var(--panel);
  border: 1px solid var(--line); padding: 8px 14px; border-radius: 11px; font-weight: 700;
  white-space: nowrap;
}
.balance .coin { color: var(--accent); }
.burger { display: none; background: var(--panel); border: 1px solid var(--line);
  width: 42px; height: 42px; border-radius: 10px; cursor: pointer; color: var(--text); }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 40px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700;
  color: var(--accent); background: rgba(255,180,58,.1); border: 1px solid rgba(255,180,58,.25);
  padding: 6px 13px; border-radius: 999px; margin-bottom: 20px; letter-spacing: .02em;
}
.hero h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 900; }
.hero h1 .g { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 18px; color: var(--muted); max-width: 540px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-stats { display: flex; gap: 34px; margin-top: 38px; }
.hero-stats .num { font-size: 26px; font-weight: 900; color: var(--text); }
.hero-stats .lbl { font-size: 13px; color: var(--muted); }

/* hero визуал — стопка кейсов */
.hero-art { position: relative; height: 420px; }
.case-float {
  position: absolute; border-radius: var(--r); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line);
  background: var(--panel); animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ---------- Секции ---------- */
.section { padding: 60px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 30px; gap: 20px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); }
.section-head p { color: var(--muted); margin: 6px 0 0; max-width: 560px; }
.eyebrow { color: var(--accent); font-weight: 800; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px; }

/* ---------- Сетка кейсов ---------- */
.cases-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.case-card {
  background: linear-gradient(180deg, var(--panel) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line); border-radius: var(--r); padding: 16px;
  text-align: center; position: relative; overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.case-card::before {
  content: ''; position: absolute; inset: 0; opacity: 0; transition: .25s;
  background: radial-gradient(220px 140px at 50% 0%, rgba(255,180,58,.16), transparent 70%);
}
.case-card:hover { transform: translateY(-6px); border-color: #39425e; box-shadow: var(--shadow); }
.case-card:hover::before { opacity: 1; }
.case-card .tag {
  position: absolute; top: 12px; left: 12px; font-size: 11px; font-weight: 800;
  padding: 4px 9px; border-radius: 7px; letter-spacing: .03em; z-index: 2;
}
.tag-new { background: rgba(47,224,192,.16); color: var(--teal); }
.tag-hot { background: rgba(255,84,112,.16); color: var(--red); }
.tag-free { background: rgba(52,211,153,.16); color: var(--green); }
.case-img { width: 100%; aspect-ratio: 1/.84; object-fit: contain; margin: 8px 0 12px; position: relative; z-index: 1;
  filter: drop-shadow(0 12px 22px rgba(0,0,0,.5)); }
.case-card h3 { font-size: 16px; margin: 0 0 12px; position: relative; z-index: 1; }
.case-price {
  display: inline-flex; align-items: center; gap: 7px; font-weight: 800; font-size: 15px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 9px 16px;
  position: relative; z-index: 1; transition: .18s; width: 100%; justify-content: center;
}
.case-price .coin { color: var(--accent); }
.case-card:hover .case-price { background: var(--gold-grad); color: #1a1304; border-color: transparent; }
.case-card:hover .case-price .coin { color: #1a1304; }

/* rarity bar */
.rarity { height: 4px; border-radius: 4px; margin: -16px -16px 14px; }
.rar-blue   { background: linear-gradient(90deg,#3a6df0,#5b9bff); }
.rar-purple { background: linear-gradient(90deg,#8d4bff,#b07cff); }
.rar-pink   { background: linear-gradient(90deg,#e64bd6,#ff7ce0); }
.rar-red    { background: linear-gradient(90deg,#ff4b5c,#ff7c6b); }
.rar-gold   { background: var(--gold-grad); }

/* ---------- Витрина скинов ---------- */
.skins-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.skin-tile {
  background: linear-gradient(180deg, var(--panel) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line); border-radius: var(--r); padding: 16px 12px 14px;
  text-align: center; position: relative; overflow: visible; transition: transform .16s ease, border-color .16s;
}
.skin-tile:hover { transform: translateY(-5px); border-color: #39425e; box-shadow: var(--shadow); }
.skin-tile .rarity { position: absolute; top: 0; left: 0; right: 0; height: 4px; margin: 0; border-radius: var(--r) var(--r) 0 0; }
.skin-tile img {aspect-ratio: 4/3; object-fit: contain; filter: drop-shadow(0 8px 14px rgba(0,0,0,.5)); }
.skin-tile .st-name { font-size: 12px; font-weight: 700; margin: 8px 0 6px; min-height: 30px; display: flex; align-items: center; justify-content: center; line-height: 1.25; }
.skin-tile .st-price { display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 13px; font-weight: 800; color: var(--accent); white-space: nowrap; }

.rar-b-gold   { box-shadow: inset 0 0 0 1px rgba(255,180,58,.35); }
.rar-b-red    { box-shadow: inset 0 0 0 1px rgba(255,84,112,.30); }
.rar-b-pink   { box-shadow: inset 0 0 0 1px rgba(230,75,214,.28); }
.rar-b-purple { box-shadow: inset 0 0 0 1px rgba(141,107,255,.24); }
@media (max-width: 1024px) { .skins-grid { grid-template-columns: repeat(4,1fr); } }
@media (max-width: 720px)  { .skins-grid { grid-template-columns: repeat(2,1fr); } }

/* ---------- Фичи ---------- */
.features { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.feature {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px; transition: .18s;
}
.feature:hover { border-color: #34405e; transform: translateY(-4px); }
.feature .ic {
  width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center;
  background: rgba(255,180,58,.12); color: var(--accent); margin-bottom: 16px;
}
.feature h3 { font-size: 18px; }
.feature p { color: var(--muted); margin: 0; font-size: 15px; }

/* ---------- Шаги ---------- */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; counter-reset: s; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 22px; position: relative; }
.step .n {
  font-size: 13px; font-weight: 900; color: var(--accent); background: rgba(255,180,58,.12);
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; margin-bottom: 14px;
}
.step h3 { font-size: 17px; }
.step p { color: var(--muted); margin: 0; font-size: 14px; }

/* ---------- Live drop лента ---------- */
.live { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; overflow: hidden; }
.live-row { display: flex; gap: 12px; align-items: center; }
.live-label { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13px; white-space: nowrap; color: var(--muted); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(52,211,153,.18); }
.live-track { display: flex; gap: 10px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.live-track .strip { display: flex; gap: 10px; animation: marq 32s linear infinite; }
@keyframes marq { to { transform: translateX(-50%); } }
.drop {
  display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 11px; padding: 8px 14px 8px 8px;
  flex: 0 0 auto; width: 188px; overflow: hidden;
}
.drop .dimg { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 8px; object-fit: contain; background: var(--bg-3); }
.drop .dtext { min-width: 0; flex: 1; }
.drop .dn { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drop .du { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drop.r-purple { border-color: rgba(141,75,255,.4); }
.drop.r-pink   { border-color: rgba(230,75,214,.4); }
.drop.r-red    { border-color: rgba(255,75,92,.4); }
.drop.r-gold   { border-color: rgba(255,180,58,.5); }

/* ---------- CTA баннер ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--panel-2), var(--bg-3));
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 44px; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.cta-banner::after { content:''; position:absolute; right:-60px; top:-60px; width:260px; height:260px;
  background: radial-gradient(circle, rgba(255,180,58,.18), transparent 70%); }
.cta-banner h2 { font-size: 28px; margin: 0 0 6px; }
.cta-banner p { color: var(--muted); margin: 0; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 820px; margin: 0 auto; }
.faq details {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 4px 22px;
  transition: border-color .18s;
}
.faq details[open] { border-color: #39425e; }
.faq summary {
  cursor: pointer; padding: 18px 0; font-weight: 700; font-size: 16px; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-size: 22px; font-weight: 700; transition: .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 0 0 18px; }

/* ---------- Таблица / прайс ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
table.tbl { width: 100%; border-collapse: collapse; min-width: 540px; }
table.tbl th, table.tbl td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
table.tbl th { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
table.tbl tr:last-child td { border-bottom: 0; }

/* ---------- Контент-страницы ---------- */
.page-head { padding: 54px 0 10px; }
.page-head h1 { font-size: clamp(30px, 4.4vw, 46px); }
.page-head .crumbs { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.page-head .crumbs a:hover { color: var(--accent); }
.prose { max-width: 820px; }
.prose h2 { font-size: 26px; margin-top: 38px; }
.prose h3 { font-size: 20px; margin-top: 28px; }
.prose ul, .prose ol { color: var(--muted); padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose a:not(.btn) { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose a.btn { text-decoration: none; }
.prose a.btn-primary { color: #1a1304; }
.prose a.btn-ghost { color: var(--text); }
.article-cover { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--r); border: 1px solid var(--line); margin: 0 0 28px; box-shadow: var(--shadow); }
.card-note {
  background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: var(--r-sm); padding: 16px 20px; color: var(--muted); margin: 22px 0;
}

/* ---------- Блог ---------- */
.posts { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.post {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  transition: .18s; display: flex; flex-direction: column;
}
.post:hover { transform: translateY(-5px); border-color: #34405e; }
.post .pimg { aspect-ratio: 16/9; background: var(--bg-3); display: grid; place-items: center; }
.post .pbody { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.post .pcat { color: var(--accent); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.post h3 { font-size: 18px; margin: 8px 0 10px; }
.post p { color: var(--muted); font-size: 14px; flex: 1; }
.post .pmeta { color: var(--muted-2); font-size: 13px; margin-top: 12px; color: var(--muted); }

/* ---------- Контакты ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 11px;
  padding: 12px 15px; color: var(--text); font-family: inherit; font-size: 15px;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.info-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.info-card h3 { font-size: 18px; }
.info-row { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.info-row:last-child { border-bottom: 0; }
.info-row .ic { color: var(--accent); }

/* ---------- Футер ---------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: 56px 0 28px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.footer-grid h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 16px; }
.footer-grid a { display: block; color: var(--muted); padding: 6px 0; font-size: 15px; transition: .15s; }
.footer-grid a:hover { color: var(--accent); }
.footer-about p { color: var(--muted); font-size: 14px; max-width: 320px; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a { width: 40px; height: 40px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--muted); }
.socials a:hover { color: var(--accent); border-color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 24px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.pay-icons { display: flex; gap: 10px; align-items: center; opacity: .7; }
.age-badge { border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; font-weight: 800; font-size: 12px; color: var(--red); }

/* ---------- Попап подтверждения ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
  padding: 20px; background: rgba(6,8,14,.72); backdrop-filter: blur(8px);
  animation: ovIn .2s ease;
}
.modal-overlay[hidden] { display: none; }
@keyframes ovIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  position: relative; width: 100%; max-width: 540px;
  background: radial-gradient(120% 90% at 75% 0%, rgba(255,180,58,.10), transparent 55%), linear-gradient(180deg, var(--panel) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 34px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(255,180,58,.06);
  animation: modIn .25s cubic-bezier(.2,.7,.2,1);
}
@keyframes modIn { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute; top: 18px; right: 18px; width: 38px; height: 38px; border-radius: 10px;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--muted); cursor: pointer;
  display: grid; place-items: center; transition: .15s;
}
.modal-close:hover { color: var(--text); border-color: #39425e; }
.modal-ic {
  width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center;
  background: rgba(255,180,58,.12); color: var(--accent); margin-bottom: 22px;
}
.modal-ic svg { width: 30px; height: 30px; }
.modal h2 { font-size: clamp(28px, 5vw, 38px); font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; margin: 0 0 12px; max-width: 80%; }
.modal-sub { color: var(--muted); margin: 0 0 24px; font-size: 16px; }
.modal-check {
  display: flex; align-items: center; gap: 14px; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; margin-bottom: 12px;
  transition: border-color .15s, background .15s;
}
.modal-check:hover { border-color: #39425e; }
.modal-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.modal-check .mcheck {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--line);
  background: var(--bg); position: relative; transition: .15s;
}
.modal-check .mcheck::after {
  content: ''; position: absolute; left: 8px; top: 4px; width: 6px; height: 11px;
  border: solid #1a1304; border-width: 0 2.6px 2.6px 0; transform: rotate(45deg) scale(0); transition: transform .15s;
}
.modal-check input:checked ~ .mcheck { background: var(--gold-grad); border-color: transparent; }
.modal-check input:checked ~ .mcheck::after { transform: rotate(45deg) scale(1); }
.modal-check input:checked ~ .mcheck { box-shadow: 0 0 0 3px rgba(255,180,58,.16); }
.modal-check:has(input:checked) { border-color: rgba(255,180,58,.4); background: rgba(255,180,58,.05); }
.modal-check .mtext { font-weight: 700; font-size: 15px; }
.modal-check .mtext a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.modal-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 26px; }
.modal-actions .btn-primary[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; filter: grayscale(.3); }
.modal-actions .btn { text-transform: uppercase; letter-spacing: .02em; font-size: 14px; }
body.modal-open { overflow: hidden; }
@media (max-width: 560px) {
  .modal { padding: 26px 22px; }
  .modal h2 { max-width: 100%; }
  .modal-actions { flex-direction: column-reverse; }
  .modal-actions .btn { width: 100%; justify-content: center; }
}

/* ---------- Утилиты ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.disclaimer { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 22px; color: var(--muted); font-size: 13px; margin-top: 30px; }

/* ---------- Адаптив ---------- */

/* Десктоп пониже / ноутбук */
@media (max-width: 1180px) {
  .skins-grid { grid-template-columns: repeat(4,1fr); }
}

/* Планшет (альбомный) */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .hero { padding: 48px 0 32px; }
  .cases-grid { grid-template-columns: repeat(3,1fr); }
  .features, .steps, .posts { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-banner { padding: 34px; }
}

/* Планшет (узкий) — прячем горизонтальное меню в бургер */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .burger { display: grid; place-items: center; }
  .nav { gap: 14px; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 12px; gap: 4px; z-index: 60;
  }
  .nav-links.open a { padding: 12px 14px; }
  .nav-spacer { display: none; }
}

/* Большой телефон */
@media (max-width: 720px) {
  .container { padding: 0 16px; }
  .section { padding: 44px 0; }
  .page-head { padding: 38px 0 6px; }
  .cases-grid { grid-template-columns: repeat(2,1fr); gap: 12px; }
  .skins-grid { grid-template-columns: repeat(3,1fr); }
  .features, .steps, .posts, .grid-2, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; flex-wrap: wrap; }
  .hero-stats .num { font-size: 22px; }
  .balance { display: none; }
  .cta-banner { padding: 24px; flex-direction: column; align-items: flex-start; }
  .cta-banner .btn { width: 100%; justify-content: center; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .section-head .btn { align-self: stretch; justify-content: center; }
  .live-label span:last-child, .live-label { font-size: 12px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* Маленький телефон */
@media (max-width: 480px) {
  .nav-actions .btn-primary { padding: 10px 16px; font-size: 14px; }
  .logo { font-size: 18px; }
  .logo .mark { width: 30px; height: 30px; }
  .hero h1 { font-size: 30px; }
  .hero p.lead { font-size: 16px; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .cases-grid { grid-template-columns: repeat(2,1fr); }
  .skins-grid { grid-template-columns: repeat(2,1fr); }
  .hero-stats { gap: 16px; }
  .hero-stats > div { flex: 1 0 30%; }
  .btn-lg { padding: 13px 22px; font-size: 15px; }
  table.tbl th, table.tbl td { padding: 11px 13px; }
}

/* ==========================================================================
   Общие дополнения для всех вариантов лендинга
   ========================================================================== */

/* появление блоков при скролле */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .live-track .strip, .case-float { animation: none; }
}

/* тост */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); z-index: 300;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--text);
  padding: 12px 20px; border-radius: 12px; font-weight: 700; font-size: 14px;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: .25s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* промокод-чип с копированием */
.promo-chip {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  background: rgba(255,180,58,.08); border: 1px dashed rgba(255,180,58,.55);
  border-radius: 12px; padding: 10px 16px; font-weight: 800; color: var(--accent);
  font-family: inherit; font-size: 15px; letter-spacing: .08em; transition: .15s;
}
.promo-chip:hover { background: rgba(255,180,58,.14); }
.promo-chip small { color: var(--muted); font-weight: 600; letter-spacing: 0; font-size: 12px; }

/* табы-фильтры */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  background: var(--panel); border: 1px solid var(--line); color: var(--muted);
  padding: 8px 14px; border-radius: 10px; font: inherit; font-size: 14px; font-weight: 700;
  cursor: pointer; transition: .15s;
}
.chip:hover { color: var(--text); }
.chip.active { color: #1a1304; background: var(--gold-grad); border-color: transparent; }

/* декоративное свечение баннера не должно перекрывать кнопку */
.cta-banner::after { pointer-events: none; }
.cta-banner > * { position: relative; z-index: 1; }

/* кликабельные скины и дропы */
.skin-tile[data-go], .drop[data-go], [data-go].feed-row, [data-go].top-drop { cursor: pointer; }
.drop[data-go] { transition: border-color .15s, background .15s, transform .15s; }
.drop[data-go]:hover { background: var(--panel-2); border-color: var(--accent); transform: translateY(-2px); }
.live-track:hover .strip { animation-play-state: paused; }
.skin-tile[data-go]::after {
  content: 'Забрать →'; display: block; margin-top: 8px; font-size: 12px; font-weight: 800;
  color: var(--accent); opacity: 0; transition: opacity .15s;
}
.skin-tile[data-go]:hover::after { opacity: 1; }

/* полоса редкости повторяет скругление карточки, концы не торчат */
.case-card, .skin-tile { overflow: hidden; }
.case-card .rarity, .skin-tile .rarity { border-radius: 0; }

.is-hidden { display: none !important; }

/* ==========================================================================
   Адаптив: дополнения к базовым брейкпоинтам
   ========================================================================== */
.logo { flex-shrink: 0; white-space: nowrap; }
.case-price, .st-price { white-space: nowrap; }

/* широкие мониторы: шире контейнер, на 2K/4K — пропорциональное увеличение */
@media (min-width: 1680px) { :root { --maxw: 1400px; } }
@media (min-width: 2200px) { html { zoom: 1.25; } }
@media (min-width: 2900px) { html { zoom: 1.6; } }

/* планшет: 8 кейсов ровно в 2 ряда по 4 */
@media (min-width: 721px) and (max-width: 1024px) {
  .cases-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .case-card { padding: 14px; }
  .case-card .rarity { margin: -14px -14px 12px; }
}

/* телефон */
@media (max-width: 480px) {
  .section-head h2 { font-size: 24px; }
  .case-card { padding: 12px; }
  .case-card .rarity { margin: -12px -12px 10px; }
  .case-card .tag { top: 10px; left: 10px; }
  .case-card h3 { font-size: 14px; margin-bottom: 10px; }
  .case-price { padding: 8px 6px; font-size: 14px; gap: 5px; }
  .hero-stats { flex-wrap: nowrap; gap: 12px; }
  .hero-stats .num { font-size: 19px; }
  .hero-stats .lbl { font-size: 12px; line-height: 1.3; }
  .cta-banner h2 { font-size: 22px; }
  .modal h2 { font-size: 24px; }
}

/* узкий телефон (iPhone SE, старые Android) */
@media (max-width: 380px) {
  .container { padding: 0 12px; }
  .nav { gap: 8px; }
  .logo { font-size: 16px; gap: 6px; }
  .logo .mark { width: 26px; height: 26px; }
  .nav-actions .btn-primary { padding: 9px 12px; font-size: 13px; }
  .burger { width: 38px; height: 38px; }
  .skins-grid { gap: 10px; }
  .skin-tile { padding: 14px 8px 12px; }
  .hero h1 { font-size: 27px; }
}
button.case-card { font: inherit; color: inherit; cursor: pointer; width: 100%; }
