:root {
  --bg: #0a0a0a;
  --surface: #141414;
  --surface-strong: #1c1c1c;
  --ink: #ffffff;
  --muted: #a8a3b0;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #ff1744;
  --accent-dark: #c4001d;
  --accent-2: #ff5252;
  --accent-3: #ffd700;
  --gold: #ffd700;
  --green: #00e676;
  --shadow: 0 24px 70px rgba(255, 23, 68, 0.25);
  --shadow-hot: 0 18px 50px rgba(255, 23, 68, 0.55);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --container: 1180px;
  --grad-hero: linear-gradient(135deg, #ff1744 0%, #d50000 50%, #b71c1c 100%);
  --grad-accent: linear-gradient(135deg, #ff1744 0%, #ffd700 100%);
  --grad-cool: linear-gradient(135deg, #b71c1c 0%, #1a1a1a 100%);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 12%, rgba(255, 23, 68, 0.35), transparent 38rem),
    radial-gradient(circle at 92% 8%, rgba(255, 215, 0, 0.15), transparent 32rem),
    radial-gradient(circle at 50% 95%, rgba(255, 23, 68, 0.2), transparent 36rem),
    radial-gradient(circle at 80% 60%, rgba(183, 28, 28, 0.25), transparent 28rem),
    var(--bg);
  line-height: 1.6;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

code {
  padding: 0.15rem 0.45rem;
  border-radius: 0.45rem;
  background: rgba(255, 23, 68, 0.18);
  color: var(--accent-2);
  font-size: 0.9em;
  font-weight: 700;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: calc(var(--container) + 48px);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  backdrop-filter: blur(18px);
  background: rgba(10, 10, 10, 0.6);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #fff;
}

.brand-mark span span {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-icon {
  display: grid;
  width: 2.6rem;
  height: 2.6rem;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--grad-hero);
  box-shadow: 0 12px 30px rgba(255, 23, 68, 0.6);
  font-size: 1.1rem;
}

main {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.hero-section {
  display: grid;
  gap: 1.5rem;
  padding: 4.5rem 0 3rem;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.85rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  color: #fff;
  background: var(--grad-hero);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(255, 23, 68, 0.4);
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 880px;
  margin-bottom: 1.25rem;
  font-size: clamp(3rem, 8vw, 6.4rem);
  line-height: 0.9;
  letter-spacing: -0.07em;
  background: linear-gradient(135deg, #ffffff 0%, #ff1744 50%, #ffd700 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-text {
  max-width: 680px;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 500;
}

.hero-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Unified button system (legacy header-btn kept for hero) */
.header-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.header-btn--primary {
  color: #fff;
  background: var(--grad-hero);
  box-shadow: 0 14px 32px rgba(255, 23, 68, 0.5);
}

.header-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(255, 23, 68, 0.7);
  filter: brightness(1.1);
}

.header-btn--ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(255, 23, 68, 0.5);
}

.header-btn--ghost:hover {
  transform: translateY(-2px);
  background: rgba(255, 23, 68, 0.12);
  border-color: var(--accent);
  color: var(--accent-2);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 1.5rem;
}

.section-heading h2,
.guide-section h2,
.faq-section h2 {
  margin-bottom: 0.65rem;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.96;
  letter-spacing: -0.065em;
  background: linear-gradient(135deg, #ffffff 0%, #ff1744 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-heading p,
.guide-section p,
.faq-section p {
  color: var(--muted);
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.brand-card {
  position: relative;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, rgba(28, 28, 28, 0.95), rgba(20, 20, 20, 0.9));
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.5);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
  color: #fff;
}

.brand-card::before {
  content: "";
  position: absolute;
  inset: 0;
  height: 5px;
  background: var(--grad-hero);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.brand-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 23, 68, 0.6);
  box-shadow: var(--shadow-hot);
}

/* === ВИПРАВЛЕНЕ ВИРІВНЮВАННЯ ЛОГОТИПІВ === */
.brand-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.3rem;
  min-height: 88px;
}

.logo-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 80px;
  flex-shrink: 0;
  overflow: hidden;
  padding: 8px;
  border: 1px dashed rgba(255, 23, 68, 0.35);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 23, 68, 0.08), rgba(255, 215, 0, 0.04)),
    #ffffff;
}

.logo-slot img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  padding: 0;
  margin: auto;
  display: block;
}

.logo-slot span {
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0.5rem;
  color: var(--accent-2);
  font-size: 0.86rem;
  font-weight: 800;
  text-align: center;
}

.brand-topline .tag {
  align-self: center;
  flex-shrink: 0;
}
/* === КІНЕЦЬ ВИПРАВЛЕНЬ === */

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 0.85rem;
  border-radius: 999px;
  color: #fff;
  background: var(--grad-hero);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 6px 14px rgba(255, 23, 68, 0.45);
}

.tag--hot {
  background: linear-gradient(135deg, #ffd700, #ff1744);
  color: #0a0a0a;
  box-shadow: 0 6px 14px rgba(255, 215, 0, 0.4);
}

.tag--cool {
  background: linear-gradient(135deg, #1a1a1a, #ff1744);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.5);
}

.brand-card h3 {
  margin-bottom: -0.25rem;
  font-size: 1.7rem;
  line-height: 1;
  letter-spacing: -0.055em;
  color: #fff;
}

.brand-card p {
  color: var(--muted);
  font-size: 0.96rem;
}

.bonus-box {
  min-height: 92px;
  padding: 1rem;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 23, 68, 0.2), rgba(255, 215, 0, 0.08));
  border: 1px solid rgba(255, 23, 68, 0.35);
}

.bonus-box span {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--accent-3);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.bonus-box strong {
  display: block;
  min-height: 28px;
  border-radius: 10px;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.08) 0,
    rgba(255, 255, 255, 0.08) 10px,
    transparent 10px,
    transparent 18px
  );
}

.feature-list {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 1.85rem;
  color: #e8e3ee;
  font-weight: 600;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.1rem;
  display: grid;
  width: 1.2rem;
  height: 1.2rem;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--grad-hero);
  font-size: 0.72rem;
  font-weight: 900;
  box-shadow: 0 4px 10px rgba(255, 23, 68, 0.5);
}

.card-actions {
  margin-top: auto;
  padding-top: 0.45rem;
}

.card-actions .header-btn {
  flex: 1 1 140px;
  font-size: 0.88rem;
  padding: 0.75rem 1rem;
}

/* ===== UNIFIED PLAY BUTTON (high specificity to beat caches & resets) ===== */
.brand-card .card-actions a.btn,
.brand-card .card-actions a.btn-play {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex: 1 1 100%;
  min-height: 52px;
  padding: 0.95rem 1.2rem;
  border-radius: 999px;
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff !important;
  background: linear-gradient(135deg, #ff1744 0%, #d50000 50%, #b71c1c 100%);
  border: none;
  box-shadow: 0 14px 32px rgba(255, 23, 68, 0.5);
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.brand-card .card-actions a.btn:hover,
.brand-card .card-actions a.btn-play:hover,
.brand-card .card-actions a.btn:focus-visible,
.brand-card .card-actions a.btn-play:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 20px 42px rgba(255, 23, 68, 0.7), 0 0 32px rgba(255, 215, 0, 0.35);
  outline: none;
}

.brand-card .card-actions a.btn:active,
.brand-card .card-actions a.btn-play:active {
  transform: translateY(0);
  filter: brightness(0.95);
}

.guide-section,
.faq-section {
  position: relative;
  margin-top: 4.5rem;
  padding: 2.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, rgba(28, 28, 28, 0.9), rgba(20, 20, 20, 0.85));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  color: #fff;
}

.guide-section::before,
.faq-section::before {
  content: "";
  position: absolute;
  inset: 0;
  height: 6px;
  background: var(--grad-hero);
}

.faq-section::before {
  background: linear-gradient(135deg, #ffd700, #ff1744);
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.guide-grid div {
  padding: 1.4rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(40, 40, 40, 0.9), rgba(25, 25, 25, 0.85));
  border: 1px solid rgba(255, 23, 68, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.guide-grid div:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(255, 23, 68, 0.3);
  border-color: rgba(255, 23, 68, 0.45);
}

.guide-grid h3 {
  margin-bottom: 0.35rem;
  font-size: 1.3rem;
  color: var(--accent-2);
}

.faq-section details {
  border-top: 1px solid var(--line);
  padding: 1rem 0;
}

.faq-section details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-section summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--accent-2);
  font-size: 1.05rem;
}

.faq-section summary:hover { color: var(--accent-3); }

.faq-section details p {
  margin: 0.8rem 0 0;
  color: var(--muted);
}

.site-footer {
  width: min(var(--container), calc(100% - 32px));
  margin: 2.5rem auto 0;
  padding: 2rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

[hidden] { display: none !important; }

@media (max-width: 980px) {
  .hero-section { padding-top: 3.25rem; }
  .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .site-header {
    position: static;
    flex-direction: column;
    align-items: stretch;
    padding: 0.9rem 1rem;
  }

  main, .site-footer {
    width: min(100% - 24px, var(--container));
  }

  .hero-section { gap: 1rem; padding: 2.5rem 0 2rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .header-btn { width: 100%; }

  .brand-grid { grid-template-columns: 1fr; }

  .brand-card { padding: 1rem; border-radius: 24px; }
  .brand-topline { align-items: center; min-height: 80px; }
  .logo-slot { width: 130px; height: 72px; padding: 6px; }

  .guide-section, .faq-section {
    margin-top: 3rem;
    padding: 1.25rem;
    border-radius: 24px;
  }
}

@media (max-width: 420px) {
  .brand-mark { font-size: 1.1rem; }
  .brand-icon { width: 2.2rem; height: 2.2rem; }
  h1 { font-size: clamp(2.65rem, 18vw, 4.5rem); }
  .brand-card h3 { font-size: 1.45rem; }
  .card-actions { flex-direction: column; }
  .card-actions .header-btn { width: 100%; flex-basis: auto; }
}
