/* =========================================================
   FLAGMAN — премиальная автохимия
   Светлая премиальная тема: крем + графит + золото + акценты бренда.
   Игра (полноэкранное окно) намеренно остаётся тёмной — см. .game-overlay,
   где переопределены переменные темы.
   ========================================================= */

:root {
  --bg: #f7f2e6;
  --panel: #ffffff;
  --panel-2: #fbf7ec;
  --border: rgba(35,27,15,0.10);
  --border-strong: rgba(168,122,20,0.45);
  --text: #241d14;
  --text-dim: #5c5346;
  --text-faint: #8c8271;
  --gold: #b8892c;
  --gold-light: #8f6716;
  --gold-dark: #6b4d10;
  --red: #d5333e;
  --green: #1f9153;
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1180px;
  --shadow: 0 20px 40px rgba(40,30,10,0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Oswald', 'Manrope', sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
  color: var(--text);
}

p { margin: 0 0 1em; color: var(--text-dim); }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.gold { color: var(--gold-light); }

button { font-family: inherit; cursor: pointer; }

/* --- Кнопки: всегда с тактильной анимацией нажатия --- */
button, .btn {
  transition: transform 0.08s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, opacity .2s ease;
}
button:active, .btn:active { transform: scale(0.95); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.btn-lg { padding: 18px 38px; font-size: 16px; }

.btn-gold {
  background: linear-gradient(135deg, #f0d581, #cf9f3f 55%, #97721f);
  color: #241c0d;
  box-shadow: 0 8px 22px rgba(151,114,31,0.35);
}
.btn-gold:hover { box-shadow: 0 10px 28px rgba(151,114,31,0.48); }

.btn-ghost {
  background: transparent;
  border-color: rgba(36,29,20,0.25);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-light); }

/* =============== BACKGROUND GLOW =============== */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(650px 420px at 10% -5%, rgba(184,137,44,0.14), transparent 60%),
    radial-gradient(500px 380px at 100% 8%, rgba(31,145,83,0.06), transparent 60%),
    radial-gradient(520px 360px at 50% 105%, rgba(213,51,62,0.05), transparent 60%),
    var(--bg);
}

/* =============== HEADER =============== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(247,242,230,0.86);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand-logo { height: 30px; width: auto; }

.main-nav { display: flex; gap: 32px; }
.main-nav a {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  padding: 8px 0;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.main-nav a:hover { color: var(--gold-light); border-color: var(--gold); }

/* --- выпадающее меню «Каталог» --- */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  padding: 8px 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.nav-dropdown-trigger .caret { font-size: 10px; transition: transform .2s ease; }
.nav-dropdown:hover .nav-dropdown-trigger,
.nav-dropdown.open .nav-dropdown-trigger { color: var(--gold-light); border-color: var(--gold); }
.nav-dropdown.open .nav-dropdown-trigger .caret { transform: rotate(180deg); }

.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: -18px;
  min-width: 280px;
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 60;
}
.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown.open .nav-dropdown-panel { opacity: 1; transform: translateY(0); pointer-events: auto; }
.nav-dropdown-panel a {
  padding: 11px 14px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
  color: var(--text-dim);
  border-bottom: none !important;
}
.nav-dropdown-panel a:hover { background: rgba(184,137,44,0.1); color: var(--gold-light); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}
.burger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

/* =============== HERO =============== */
.hero {
  padding: 110px 0 90px;
  position: relative;
}
.hero-inner { max-width: 760px; }
.eyebrow, .section-eyebrow, .modal-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(34px, 5.4vw, 58px);
  line-height: 1.08;
  margin-bottom: 22px;
}
.hero-text { font-size: 17px; max-width: 560px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; }

/* =============== SECTIONS =============== */
.section { padding: 88px 0; }
.section-title { font-size: clamp(28px, 3.6vw, 40px); }
.section-lead { max-width: 620px; font-size: 16px; margin-bottom: 44px; }

/* =============== CATALOG: вкладки =============== */
.cat-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.cat-tab {
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: border-color .2s ease, color .2s ease, background .2s ease, transform .08s ease;
}
.cat-tab:active { transform: scale(0.96); }
.cat-tab .count {
  font-size: 11.5px;
  background: rgba(35,27,15,0.06);
  color: var(--text-faint);
  padding: 2px 8px;
  border-radius: 999px;
}
.cat-tab.active {
  border-color: var(--border-strong);
  color: var(--gold-light);
  background: rgba(184,137,44,0.1);
}
.cat-tab.active .count { background: rgba(184,137,44,0.2); color: var(--gold-light); }

.cat-panel { display: none; }
.cat-panel.active { display: block; animation: fadein .35s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* =============== CATALOG: категории и подгруппы =============== */
.category-block { margin-bottom: 68px; }
.category-block:last-child { margin-bottom: 0; }

.category-head {
  display: flex;
  align-items: stretch;
  gap: 18px;
  margin-bottom: 30px;
}
.category-accent { width: 5px; border-radius: 4px; flex-shrink: 0; }
.accent-gold { background: linear-gradient(180deg, var(--gold), var(--gold-dark)); }
.accent-mix { background: linear-gradient(180deg, var(--green), var(--gold), var(--red)); }
.category-head h3 { font-size: clamp(22px, 2.6vw, 28px); margin-bottom: 4px; }
.category-head p { margin: 0; font-size: 14.5px; }

.sub-groups { display: flex; flex-direction: column; gap: 38px; }
.sub-group-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; }
.sub-group-head h4 {
  font-size: 14.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-light);
  margin: 0;
}
.sub-count {
  font-size: 11px;
  color: var(--text-faint);
  background: rgba(35,27,15,0.06);
  padding: 2px 9px;
  border-radius: 999px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
.product-grid.collapsed .product-card:nth-child(n+5) { display: none; }

.product-card {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 18px 18px;
  display: flex;
  flex-direction: column;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.product-card:hover { border-color: var(--border-strong); transform: translateY(-3px); box-shadow: var(--shadow); }

.product-card .thumb {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.product-card .thumb img { max-height: 150px; max-width: 100%; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(40,30,10,0.18)); }

.product-tag {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold-light);
  background: rgba(184,137,44,0.12);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.product-card h4 { font-size: 16.5px; margin: 0 0 2px; }
.product-volume { font-size: 13px; color: var(--text-faint); margin-bottom: 8px; }
.product-card .desc { font-size: 13.5px; margin: 0; color: var(--text-dim); flex-grow: 1; }

.show-more-wrap { display: flex; justify-content: center; margin-top: 22px; }
.show-more-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 11px 24px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
}
.show-more-btn:hover { border-color: var(--gold); color: var(--gold-light); }

/* =============== GUIDE (встроен в раздел «Антифризы») =============== */
.guide-block { margin-top: 46px; padding-top: 40px; border-top: 1px solid var(--border); }
.guide-block-head { margin-bottom: 28px; }
.guide-block-head h3 { font-size: clamp(21px, 2.6vw, 27px); }
.sub-lead { max-width: 600px; font-size: 15px; margin: 0; }

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.guide-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  position: relative;
}
.guide-num {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 32px;
  color: rgba(184,137,44,0.35);
  font-weight: 600;
  margin-bottom: 6px;
}
.guide-card h4 { font-size: 17px; margin-bottom: 12px; }
.guide-card p { font-size: 14px; }
.guide-list { margin: 12px 0; display: flex; flex-direction: column; gap: 10px; }
.guide-list li {
  font-size: 13.5px;
  color: var(--text-dim);
  padding-left: 18px;
  position: relative;
}
.guide-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
.accent-green-text { color: var(--green); }
.accent-red-text { color: var(--red); }
.guide-note {
  font-size: 12.5px;
  color: var(--text-faint);
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 14px;
  margin-bottom: 0;
}

/* =============== GAME TEASER (в потоке страницы) =============== */
.section-game { background: radial-gradient(900px 500px at 50% 0%, rgba(184,137,44,0.07), transparent 70%); }
.game-teaser {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  background: linear-gradient(135deg, var(--panel), var(--panel-2));
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  padding: 44px;
  box-shadow: var(--shadow);
}
.game-teaser-text { flex: 1; min-width: 260px; }
.game-teaser .section-eyebrow, .game-teaser .section-title { margin-bottom: 10px; }

/* =============== ИГРА: полноэкранное окно (всегда тёмная тема) =============== */
.game-overlay {
  --bg: #17130f;
  --panel: #241d14;
  --panel-2: #2b2319;
  --border: rgba(255,255,255,0.12);
  --border-strong: rgba(212,175,55,0.5);
  --text: #faf6ee;
  --text-dim: #d3c9b6;
  --text-faint: #9c9280;
  --gold: #d4af37;
  --gold-light: #f4dc8e;
  --gold-dark: #a67c1f;
  --shadow: 0 20px 50px rgba(0,0,0,0.45);

  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(10,8,5,0.92);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.game-close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 320;
}
.game-close:hover { background: rgba(230,57,70,0.28); border-color: #e63946; color: #fff; }

.game-shell {
  width: min(1080px, 96vw);
  height: min(760px, 94vh);
  background: linear-gradient(180deg, #241d14, #17120c);
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.game-panel {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
}
.game-emblem { width: 64px; height: 64px; border-radius: 16px; margin-bottom: 20px; }
.game-panel h3 { font-size: 24px; }
.game-panel p { max-width: 420px; font-size: 14.5px; }

.game-play { display: flex; flex-direction: column; height: 100%; }

.game-hud {
  display: flex;
  justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
}
.hud-item { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.hud-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint); }
.hud-value { font-family: 'Oswald', sans-serif; font-size: 18px; color: var(--gold-light); }

.hud-progress { height: 3px; background: rgba(255,255,255,0.08); }
.hud-progress-bar { height: 100%; background: linear-gradient(90deg, var(--gold-dark), var(--gold-light)); width: 1%; transition: width .3s ease; }

.game-field {
  position: relative;
  flex-grow: 1;
  min-height: 260px;
  overflow: hidden;
}
.field-baseline {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,0.55), transparent);
}

/* --- падающая карточка-характеристика --- */
.falling-tag {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 132px;
  user-select: none;
  pointer-events: none;
  z-index: 5;
}
.falling-tag.launching { z-index: 20; filter: drop-shadow(0 8px 16px rgba(0,0,0,0.55)); }
.falling-tag .tag-emblem {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 35% 30%, #322818, #17120c 75%);
  border: 2px solid var(--tag-color, var(--gold));
  box-shadow: 0 0 0 4px rgba(212,175,55,0.1), 0 6px 14px rgba(0,0,0,0.5);
  flex-shrink: 0;
}
.falling-tag .tag-emblem img { max-width: 34px; max-height: 40px; object-fit: contain; }
.falling-tag .tag-text {
  margin-top: 7px;
  font-size: 11.5px;
  line-height: 1.25;
  text-align: center;
  font-weight: 700;
  color: var(--tag-color, var(--gold));
  text-shadow: 0 2px 6px rgba(0,0,0,0.7);
}

/* --- эффекты попадания / промаха --- */
.impact-burst {
  position: absolute;
  width: 10px; height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244,220,142,0.95), rgba(212,175,55,0.45) 45%, transparent 72%);
  pointer-events: none;
  z-index: 8;
  animation: burstAnim .55s ease-out forwards;
}
@keyframes burstAnim {
  0% { transform: scale(0.3); opacity: 1; }
  55% { transform: scale(6); opacity: .75; }
  100% { transform: scale(9.5); opacity: 0; }
}

.shard {
  position: absolute;
  width: 8px; height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 2px;
  pointer-events: none;
  z-index: 8;
  animation: shardAnim .56s cubic-bezier(.2,.7,.3,1) forwards;
}
@keyframes shardAnim {
  0% { transform: translate(0,0) rotate(0deg) scale(1); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)) scale(0.3); opacity: 0; }
}

/* --- крупный центральный флеш верно/неверно --- */
.center-flash {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.4);
  width: 108px; height: 108px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
  z-index: 15;
  opacity: 0;
  animation: centerFlashAnim .62s cubic-bezier(.2,.8,.3,1) forwards;
}
.center-flash.good { background: radial-gradient(circle, rgba(31,145,83,0.28), transparent 70%); border: 3px solid #2fbf76; }
.center-flash.bad { background: radial-gradient(circle, rgba(213,51,62,0.28), transparent 70%); border: 3px solid #e64b55; }
.center-flash svg { width: 56px; height: 56px; }
.center-flash.good svg { color: #2fbf76; }
.center-flash.bad svg { color: #e64b55; }
@keyframes centerFlashAnim {
  0% { transform: translate(-50%, -50%) scale(0.4); opacity: 0; }
  25% { transform: translate(-50%, -50%) scale(1.08); opacity: 1; }
  40% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

/* --- ряд категорий-мишеней --- */
.game-targets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--border);
  border-top: 1px solid var(--border);
}
.target-slot {
  background: #120e09;
  border: none;
  padding: 16px 10px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: background .25s ease, transform .08s ease;
}
.target-slot:hover { background: rgba(212,175,55,0.08); }
.target-slot:active { transform: scale(0.96); }
.target-slot.no-target { animation: noTargetPulse .26s ease; }
@keyframes noTargetPulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

.target-slot.flash-correct { animation: flashGood .5s ease; }
.target-slot.flash-wrong { animation: flashBad .5s ease; }
@keyframes flashGood { 0%, 100% { background: #120e09; } 40% { background: rgba(33,168,95,0.32); } }
@keyframes flashBad { 0%, 100% { background: #120e09; } 40% { background: rgba(230,57,70,0.32); } }

.target-slot.bump .target-icon { animation: bumpAnim .42s ease; }
@keyframes bumpAnim { 0% { transform: scale(1); } 35% { transform: scale(1.2); } 65% { transform: scale(0.94); } 100% { transform: scale(1); } }

.target-slot.shake { animation: shakeAnim .4s ease; }
@keyframes shakeAnim { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } }

.target-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 35% 30%, #322818, #17120c 75%);
  border: 2px solid var(--tag-color, var(--gold));
  box-shadow: 0 0 0 4px rgba(212,175,55,0.08), 0 6px 14px rgba(0,0,0,0.4);
  margin-bottom: 10px;
  flex-shrink: 0;
}
.target-icon svg { width: 28px; height: 28px; color: var(--tag-color, var(--gold)); }
.target-slot .target-name { font-size: 13px; font-weight: 700; color: var(--text-dim); line-height: 1.25; }
.target-slot .target-hits {
  margin-top: 7px;
  font-size: 11px;
  font-weight: 700;
  color: var(--tag-color, var(--gold));
  background: rgba(255,255,255,0.07);
  padding: 2px 9px;
  border-radius: 999px;
}

/* =============== PARTNERS =============== */
.partners-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.partner-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color .2s ease, transform .2s ease;
}
.partner-card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.partner-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(184,137,44,0.12);
  color: var(--gold-light);
  margin-bottom: 18px;
}
.partner-icon svg { width: 28px; height: 28px; }
.partner-card h3 { font-size: 19px; }
.partner-card p { font-size: 14px; }
.partner-cta { font-size: 13.5px; font-weight: 700; color: var(--gold-light); text-transform: uppercase; letter-spacing: 0.03em; }

/* =============== FOOTER =============== */
.site-footer { border-top: 1px solid var(--border); padding: 44px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
.footer-logo { height: 22px; opacity: 0.85; }
.footer-inner p { margin: 0; font-size: 13px; color: var(--text-faint); }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-nav a { font-size: 13px; color: var(--text-dim); }
.footer-nav a:hover { color: var(--gold-light); }

/* =============== MODALS (внутри игры) =============== */
.modal-overlay {
  position: absolute; inset: 0;
  background: rgba(10,8,5,0.85);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  z-index: 30;
  padding: 20px;
}
.modal-overlay[hidden] { display: none; }
.modal {
  background: linear-gradient(180deg, #2a2216, #17120c);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 36px 32px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow);
}
.modal-emoji { font-size: 40px; line-height: 1; margin-bottom: 6px; }
.modal h3 { font-size: 22px; }
.modal p { font-size: 14.5px; }
.modal-leader {
  background: rgba(212,175,55,0.1);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 14px;
  margin: 16px 0;
  font-size: 13.5px;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}
.modal-leader img { width: 44px; height: 44px; object-fit: contain; flex-shrink: 0; }
.modal-actions { display: flex; gap: 12px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }
.modal-close-link {
  display: block;
  margin: 16px auto 0;
  background: none;
  border: none;
  color: var(--text-faint);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.modal-close-link:hover { color: var(--text-dim); }

.modal-prize .qr-box {
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  display: inline-flex;
  margin: 10px 0;
}
.promo-code {
  font-family: 'Oswald', sans-serif;
  font-size: 20px;
  letter-spacing: 0.08em;
  color: var(--gold-light);
  margin: 10px 0 4px;
}
.promo-hint { font-size: 12.5px; color: var(--text-faint); }

/* =============== RESPONSIVE =============== */
@media (max-width: 980px) {
  .guide-grid { grid-template-columns: 1fr; }
  .partners-grid { grid-template-columns: 1fr; }
  .game-teaser { flex-direction: column; align-items: stretch; text-align: center; }
}

@media (max-width: 760px) {
  .main-nav { position: fixed; top: 76px; left: 0; right: 0; background: #fbf7ec; border-bottom: 1px solid var(--border); flex-direction: column; padding: 18px 24px; gap: 4px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; box-shadow: var(--shadow); }
  .main-nav.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .burger { display: flex; }
  .nav-dropdown-trigger { padding: 12px 0; width: 100%; justify-content: space-between; border-bottom: 1px solid var(--border); }
  .nav-dropdown-panel {
    position: static;
    opacity: 1; transform: none; pointer-events: auto;
    display: none;
    box-shadow: none; border: none; background: rgba(35,27,15,0.03);
    margin: 4px 0 4px;
  }
  .nav-dropdown.open .nav-dropdown-panel { display: flex; }
  .hero { padding: 70px 0 60px; }
  .section { padding: 60px 0; }
  .game-shell { width: 100vw; height: 100vh; border-radius: 0; }
  .game-overlay { padding: 0; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { text-align: center; }
  .category-head { gap: 12px; }
}
