:root {
  --accent: #550e13;
  --accent-2: #9f1f2b;
  --gold: #f4c35a;
  --gold-soft: #ffe6a3;
  --ink: #080609;
  --page: #0d090b;
  --panel: #171014;
  --panel-2: #211116;
  --panel-3: #2d141a;
  --line: rgba(255, 230, 190, 0.15);
  --text: #f7eeee;
  --muted: #cfbfc0;
  --soft: #a99698;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.34);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;
  color: var(--text);
  line-height: 1.68;
  background:
    radial-gradient(
      circle at 16% -10%,
      rgba(159, 31, 43, 0.38),
      transparent 34rem
    ),
    radial-gradient(
      circle at 84% 12%,
      rgba(244, 195, 90, 0.12),
      transparent 30rem
    ),
    linear-gradient(180deg, #14080d 0%, #090608 38%, #0d090b 100%);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--gold-soft);
  text-decoration: none;
}
a:hover {
  color: #fff;
  text-decoration: none;
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 18px;
  background: rgba(13, 7, 10, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
  will-change: transform;
}

.nav-inner {
  max-width: 1180px;
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  width: 176px;
  height: 45px;
  color: #fff;
  font-size: 1.08rem;
  font-weight: 900;
  letter-spacing: 0;
}
.logo img {
  width: 176px;
  height: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}
.nav-links a {
  display: block;
  color: #eadedf;
  font-size: 0.94rem;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 6px;
}
.nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  color: #fff;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition:
    transform 0.25s,
    opacity 0.25s;
}
.burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger.open span:nth-child(2) {
  opacity: 0;
}
.burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

main section:not(.hero) {
  content-visibility: auto;
  contain-intrinsic-size: 1px 500px;
}
main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 8px;
}

section {
  margin-bottom: 26px;
  padding: 30px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.045),
      rgba(255, 255, 255, 0.018)
    ),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px 24px;
  background: #060405;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/foto/hero-bg.jpeg");
  background-size: cover;
  background-position: center;
  opacity: 0.85;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at center,
      transparent 0%,
      rgba(6, 4, 5, 0.6) 70%,
      #060405 100%
    ),
    linear-gradient(
      0deg,
      #060405 0%,
      transparent 40%,
      transparent 60%,
      #060405 100%
    );
  z-index: 1;
}
.hero > *:not(.hero-bg) {
  position: relative;
  z-index: 2;
  max-width: 960px;
}
.hero h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 24px;
  font-weight: 800;
  letter-spacing: 0;
}
.hero h1 span {
  color: var(--gold);
}
.hero p {
  font-size: 1.18rem;
  max-width: 720px;
  margin: 0 auto 40px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}
.hero-btns .cta-btn {
  margin: 0;
}
.hero-btns .secondary-btn {
  padding: 16px 36px;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.05rem;
  transition: all 0.3s ease;
}
.hero-btns .secondary-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.hero-stats {
  display: flex;
  gap: 54px;
  justify-content: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 40px;
  width: 100%;
}
.stat-item {
  text-align: center;
}
.stat-item .stat-val {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-item .stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
}

.bonus-pill {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-bottom: 14px;
  padding: 7px 12px;
  color: #1b0904;
  font-size: 0.83rem;
  font-weight: 950;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--gold) 0%, #fff0b8 100%);
  border-radius: 6px;
  box-shadow: 0 10px 28px rgba(244, 195, 90, 0.24);
}

h1,
h2,
h3 {
  letter-spacing: 0;
  line-height: 1.16;
}
h1 {
  max-width: 780px;
  margin-bottom: 16px;
  color: #fff;
  font-size: 3.6rem;
  font-weight: 950;
}
h2 {
  margin-bottom: 14px;
  color: #fff;
  font-size: 1.9rem;
  font-weight: 900;
}
h2::after {
  content: "";
  display: block;
  width: 58px;
  height: 3px;
  margin-top: 10px;
  background: linear-gradient(90deg, var(--gold), transparent);
  border-radius: 4px;
}
h3 {
  margin: 22px 0 8px;
  color: var(--gold-soft);
  font-size: 1.08rem;
  font-weight: 850;
}
p {
  margin-bottom: 13px;
  color: var(--muted);
}
.hero p {
  max-width: 760px;
  color: #f5e8e7;
  font-size: 1.12rem;
}

ul,
ol {
  padding-left: 22px;
  margin: 12px 0 18px;
  color: var(--muted);
}
li {
  margin-bottom: 9px;
  padding-left: 4px;
}
li::marker {
  color: var(--gold);
  font-weight: 900;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  width: fit-content;
  margin-top: 4px;
  padding: 14px 22px;
  color: #160705;
  font-weight: 950;
  font-size: 1rem;
  text-align: center;
  background: linear-gradient(
    135deg,
    var(--gold) 0%,
    #fff0b8 52%,
    #efb43d 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 6px;
  box-shadow: 0 16px 34px rgba(244, 195, 90, 0.22);
  transition:
    transform 0.18s,
    box-shadow 0.18s,
    filter 0.18s;
}
.cta-btn:hover {
  color: #160705;
  transform: translateY(-1px);
  filter: saturate(1.06);
  box-shadow: 0 20px 42px rgba(244, 195, 90, 0.3);
}

table {
  width: 100%;
  margin: 16px 0 20px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  background: rgba(12, 8, 10, 0.52);
  border: 1px solid var(--line);
  border-radius: 8px;
}
th,
td {
  padding: 13px 15px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
tr:last-child th,
tr:last-child td {
  border-bottom: 0;
}
th {
  width: 230px;
  color: var(--gold-soft);
  font-weight: 850;
  background: rgba(255, 255, 255, 0.04);
  white-space: nowrap;
}
td {
  color: #eadedf;
}
tr:hover td,
tr:hover th {
  background: rgba(244, 195, 90, 0.045);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 18px;
  margin: 18px 0 22px;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.topic-card {
  display: block;
  min-height: 160px;
  padding: 20px;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(244, 195, 90, 0.12), rgba(255, 255, 255, 0.03)),
    var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  transition: transform 0.18s, border-color 0.18s;
}
.topic-card:hover {
  transform: translateY(-2px);
  border-color: rgba(244, 195, 90, 0.42);
}
.topic-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--gold-soft);
  font-size: 1.02rem;
}
.topic-card span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}

.answer-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
  margin: 18px 0;
}
.answer-step {
  padding: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.answer-step strong {
  display: block;
  margin-bottom: 6px;
  color: var(--gold-soft);
}
.game-card {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 270px;
  text-align: left;
  color: inherit;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  transition:
    transform 0.18s,
    border-color 0.18s;
}
.game-card:hover { text-decoration: none; }
.game-card:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
.game-card:hover {
  transform: translateY(-3px);
  border-color: rgba(244, 195, 90, 0.42);
}
.game-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}
.game-card p {
  margin: 0;
  padding: 8px 10px 0;
  color: #fff;
  font-size: 0.9rem;
}
.game-card p:first-of-type {
  font-weight: 900;
}
.game-card p:last-of-type {
  padding: 3px 10px 12px;
  color: var(--gold-soft);
  font-size: 0.76rem;
}

.note,
.warning {
  position: relative;
  padding: 18px 18px 18px 48px;
  background: linear-gradient(
    135deg,
    rgba(244, 195, 90, 0.11),
    rgba(255, 255, 255, 0.03)
  );
  border: 1px solid rgba(244, 195, 90, 0.28);
  border-radius: 8px;
}
.note::before,
.warning::before {
  content: "!";
  position: absolute;
  top: 18px;
  left: 16px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: #160705;
  font-weight: 950;
  background: var(--gold);
  border-radius: 50%;
}

details {
  overflow: hidden;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 8px;
}
summary {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 18px;
  cursor: pointer;
  color: #fff;
  font-weight: 850;
  list-style: none;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #160705;
  background: var(--gold);
  border-radius: 6px;
  font-size: 1.2rem;
  line-height: 1;
}
details[open] summary::after {
  content: "-";
}
details p {
  padding: 0 18px 18px;
  color: var(--muted);
}

footer {
  margin-top: 54px;
  padding: 34px 18px;
  color: var(--soft);
  font-size: 0.85rem;
  text-align: center;
  background: #090608;
  border-top: 1px solid var(--line);
}
footer a {
  color: var(--gold-soft);
}
.footer-nav {
  margin-top: 12px;
}
.footer-nav a {
  display: inline-block;
  margin: 4px 8px;
}

.mobile-cta-bar {
  display: none;
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 300;
  padding: 10px 16px 14px;
  text-align: center;
  background: linear-gradient(135deg, var(--gold) 0%, #fff0b8 100%);
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.42);
}
.mobile-cta-bar a {
  display: block;
  color: #160705;
  font-weight: 950;
  line-height: 1.25;
}
.mcta-bonus {
  display: block;
  font-size: 1rem;
}
.mcta-sub {
  display: block;
  margin-top: 2px;
  color: rgba(22, 7, 5, 0.72);
  font-size: 0.72rem;
}

.bottom-banner {
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  margin-top: 32px;
  margin-bottom: 42px;
}
.bottom-banner a {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
  transition:
    transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.25s;
}
.bottom-banner a:hover {
  transform: translateY(-4px);
  border-color: rgba(244, 195, 90, 0.4);
}
.bottom-banner img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.bottom-banner a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.4) 100%);
  pointer-events: none;
}

@media (max-width: 860px) {
  .burger {
    display: block;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    right: 14px;
    left: 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    background: rgba(13, 7, 10, 0.98);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    padding: 13px 14px;
  }
  .mobile-cta-bar {
    display: block;
  }
  body {
    padding-bottom: 74px;
  }
}

@media (max-width: 640px) {
  main section:not(.hero) {
    content-visibility: auto;
    contain-intrinsic-size: 1px 500px;
  }
  main {
    width: min(100% - 24px, 1180px);
    padding-top: 16px;
  }
  .nav-inner {
    height: 64px;
  }
  .nav-links {
    top: 64px;
  }
  section {
    padding: 17px;
    margin-bottom: 18px;
  }
  .hero {
    min-height: auto;
    padding: 44px 18px 22px;
  }
  .hero::before {
    background:
      linear-gradient(
        180deg,
        rgba(6, 4, 5, 0.08) 0%,
        rgba(6, 4, 5, 0.36) 34%,
        rgba(6, 4, 5, 0.95) 100%
      ),
      linear-gradient(90deg, rgba(6, 4, 5, 0.72), rgba(6, 4, 5, 0.56));
  }
  h1 {
    font-size: 2.05rem;
  }
  h2 {
    font-size: 1.35rem;
  }
  .hero p {
    margin-bottom: 22px;
    font-size: 1rem;
  }
  .hero-btns {
    width: 100%;
    gap: 10px;
    margin-bottom: 24px;
  }
  .hero-btns .cta-btn,
  .hero-btns .secondary-btn {
    width: 100%;
    padding: 14px 16px;
  }
  .hero-stats {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding-top: 18px;
  }
  .stat-item {
    min-width: 0;
    padding: 12px 8px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
  }
  .stat-item .stat-val {
    font-size: 1.55rem;
    line-height: 1.05;
  }
  .stat-item .stat-label {
    font-size: 0.66rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }
  .cta-btn {
    width: 100%;
  }
  table,
  thead,
  tbody,
  th,
  td,
  tr {
    display: block;
  }
  thead tr {
    display: none;
  }
  table {
    border-spacing: 0;
  }
  tr {
    border-bottom: 1px solid var(--line);
  }
  tr:last-child {
    border-bottom: 0;
  }
  th {
    width: 100%;
    border-bottom: 0;
    padding-bottom: 4px;
    white-space: normal;
  }
  td {
    padding-top: 4px;
  }
  .games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .game-card {
    min-height: 0;
  }
  .game-card p {
    font-size: 0.82rem;
  }
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--soft);
  font-size: 0.88rem;
}
.breadcrumbs a {
  color: var(--gold-soft);
  font-weight: 800;
}
.breadcrumbs span::before {
  content: "/";
  margin-right: 8px;
  color: rgba(255, 255, 255, 0.35);
}
.breadcrumbs span:first-child::before { content: ""; margin: 0; }
.internal-links {
  border-color: rgba(244, 195, 90, 0.28);
  background:
    linear-gradient(145deg, rgba(244, 195, 90, 0.09), rgba(255, 255, 255, 0.025)),
    var(--panel);
}
