:root {
  --black: #171717;
  --red: #e2262d;
  --red-dark: #8b0914;
  --gold: #ffd86a;
  --gold-deep: #c88722;
  --purple: #5c2a86;
  --text: #3f4650;
  --muted: #6f7782;
  --line: #eceff2;
  --soft: #f8f8fa;
  --white: #fff;
  --shadow: 0 22px 50px rgba(70, 18, 24, .13);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.wrap {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .2);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 13vw;
  background: var(--black);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  color: var(--white);
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 3px 0 rgba(0, 0, 0, .3);
}

.brand span {
  color: #fff3bf;
}

.brand strong {
  color: var(--gold);
  font-weight: 900;
}

.auth {
  display: flex;
  gap: 18px;
  align-items: center;
}

.auth a {
  min-width: 116px;
  padding: 10px 18px;
  color: var(--white);
  background: #3d557b;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 900;
  text-align: center;
}

.auth a:first-child {
  background: linear-gradient(135deg, var(--red), #ff623f);
}

.nav {
  display: flex;
  justify-content: center;
  min-height: 70px;
  padding: 0 7vw;
  background: var(--red);
}

.nav a {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 20px;
  color: #252525;
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
}

.nav a.active {
  color: var(--gold);
}

.nav a.active::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 14px;
  height: 4px;
  background: var(--gold);
  border-radius: 999px;
}

.hero {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  background: #160004;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 0, 2, .94) 0%, rgba(35, 0, 5, .78) 45%, rgba(69, 4, 14, .16) 78%),
    linear-gradient(180deg, rgba(0, 0, 0, .08), rgba(0, 0, 0, .34));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 92px 0 110px;
  color: var(--white);
}

.hero h1 {
  max-width: 720px;
  margin: 0 0 22px;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 7px 22px rgba(0, 0, 0, .45);
}

.hero p {
  max-width: 650px;
  margin: 0 0 34px;
  color: rgba(255, 255, 255, .84);
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 168px;
  min-height: 50px;
  padding: 13px 24px;
  border-radius: 7px;
  font-weight: 900;
  line-height: 1.2;
}

.btn.primary {
  color: #171717;
  background: linear-gradient(135deg, #fff0a6, var(--gold-deep));
  box-shadow: 0 12px 28px rgba(200, 135, 34, .34);
}

.btn.secondary {
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, .72);
  background: rgba(0, 0, 0, .22);
}

.intro {
  padding: 58px 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 36px;
  align-items: start;
}

h2 {
  margin: 0 0 18px;
  color: #454b55;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.18;
  font-weight: 900;
}

.intro p,
.about p {
  color: var(--muted);
  font-size: 18px;
}

.intro strong {
  color: #415777;
}

.info-panel {
  display: grid;
  gap: 16px;
  padding: 24px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.info-panel div {
  padding: 18px 20px;
  background: var(--white);
  border-left: 5px solid var(--red);
  border-radius: 10px;
}

.info-panel span {
  display: block;
  color: var(--red);
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}

.info-panel p {
  margin: 7px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.games {
  padding: 10px 0 56px;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.game-grid article {
  min-height: 230px;
  padding: 24px;
  color: var(--white);
  background:
    radial-gradient(circle at 82% 10%, rgba(255, 216, 106, .28), transparent 34%),
    linear-gradient(145deg, #282021, #151515 70%);
  border: 1px solid rgba(226, 38, 45, .35);
  border-radius: 12px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .18);
}

.game-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 28px;
  color: #171717;
  background: linear-gradient(135deg, #fff0a6, var(--gold-deep));
  border-radius: 50%;
  font-weight: 900;
}

.game-grid h3,
.about-grid h3,
.footer h3 {
  margin: 0 0 10px;
  font-size: 21px;
  line-height: 1.25;
}

.game-grid p {
  margin: 0;
  color: rgba(255, 255, 255, .74);
}

.promo {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 34px;
  align-items: center;
  padding: 42px;
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(20, 4, 7, .96), rgba(136, 8, 18, .94)),
    radial-gradient(circle at 86% 8%, rgba(255, 216, 106, .34), transparent 35%);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.promo h2 {
  color: var(--white);
}

.promo p {
  margin: 0;
  color: rgba(255, 255, 255, .74);
}

.promo-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.promo-list span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 102px;
  padding: 16px;
  color: var(--gold);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 216, 106, .32);
  border-radius: 12px;
  font-weight: 900;
  text-align: center;
}

.articles {
  padding: 58px 0;
}

.section-title {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 22px;
}

.section-title h2 {
  margin-bottom: 0;
}

.section-title a {
  flex: 0 0 auto;
  padding: 10px 18px;
  color: var(--red);
  border: 1px solid rgba(226, 38, 45, .35);
  border-radius: 999px;
  font-weight: 900;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.article-grid article {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.thumb {
  position: relative;
  height: 190px;
  background:
    radial-gradient(circle at 28% 55%, rgba(226, 38, 45, .9), transparent 22%),
    radial-gradient(circle at 72% 30%, rgba(255, 216, 106, .85), transparent 19%),
    linear-gradient(135deg, #160004, #5c0812 75%);
}

.thumb.alt {
  background:
    radial-gradient(circle at 34% 58%, rgba(255, 216, 106, .75), transparent 22%),
    radial-gradient(circle at 72% 30%, rgba(255, 255, 255, .54), transparent 16%),
    linear-gradient(135deg, #1a0508, #7f0a15 72%);
}

.thumb.gold {
  background:
    radial-gradient(circle at 76% 22%, rgba(255, 216, 106, .78), transparent 20%),
    linear-gradient(135deg, #251516, #9d111b 80%);
}

.thumb span {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  color: #171717;
  background: linear-gradient(135deg, #fff4b6, var(--gold-deep));
  border-radius: 4px;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
}

.tag {
  margin: 22px 22px 8px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.article-grid h3 {
  margin: 0 22px 12px;
  color: #30343a;
  font-size: 21px;
  line-height: 1.3;
}

.article-grid p:not(.tag) {
  margin: 0 22px 18px;
  color: var(--muted);
}

.article-grid article > a.thumb {
  display: block;
  margin: 0;
  color: inherit;
}

.article-grid h3 a {
  color: inherit;
}

.article-grid article > a:not(.thumb) {
  display: inline-flex;
  margin: 0 22px 24px;
  color: var(--red);
  font-weight: 900;
}

.page-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 28px;
}

.page-list a,
.page-list span {
  min-width: 42px;
  padding: 9px 12px;
  color: var(--red);
  background: var(--white);
  border: 1px solid rgba(226, 38, 45, .28);
  border-radius: 999px;
  font-weight: 900;
  text-align: center;
}

.article-hero {
  position: relative;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(12, 0, 2, .94), rgba(63, 2, 10, .78)),
    url("rr99-hero.png") center / cover;
}

.article-hero .wrap {
  position: relative;
  z-index: 1;
  padding: 74px 0 82px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, .74);
  font-weight: 800;
}

.breadcrumbs a {
  color: var(--gold);
}

.article-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(34px, 4.8vw, 58px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: 0;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  color: rgba(255, 255, 255, .78);
  font-weight: 800;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 30px;
  padding: 58px 0 66px;
}

.article-content,
.sidebar-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.article-content {
  padding: 34px;
}

.article-body h2 {
  margin: 30px 0 12px;
  color: #30343a;
  font-size: 28px;
  line-height: 1.22;
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body p,
.article-body li {
  color: var(--muted);
  font-size: 18px;
}

.article-body ul {
  margin: 0 0 22px;
  padding-left: 22px;
}

.article-body a {
  color: var(--red);
  font-weight: 900;
}

.article-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.article-nav a {
  padding: 16px;
  color: #30343a;
  background: var(--soft);
  border-left: 4px solid var(--red);
  border-radius: 10px;
  font-weight: 900;
}

.sidebar-card {
  padding: 24px;
  margin-bottom: 18px;
}

.sidebar-card h2 {
  margin-bottom: 14px;
  font-size: 24px;
}

.sidebar-card p {
  color: var(--muted);
}

.related-list {
  display: grid;
  gap: 12px;
}

.related-list a {
  padding: 13px 0;
  color: #30343a;
  border-bottom: 1px solid var(--line);
  font-weight: 900;
}

.related-list a:last-child {
  border-bottom: 0;
}

.about {
  padding: 0 0 64px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.about-grid div {
  padding: 26px;
  color: var(--white);
  background: linear-gradient(145deg, #26201f, #151515);
  border-top: 4px solid var(--red);
  border-radius: 12px;
}

.about-grid p {
  margin: 0;
  color: rgba(255, 255, 255, .72);
  font-size: 16px;
}

.footer {
  color: rgba(255, 255, 255, .76);
  background: var(--black);
  border-top: 8px solid var(--red);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 36px;
  padding: 44px 0;
}

.footer-brand {
  margin-bottom: 16px;
  font-size: 36px;
}

.footer p {
  max-width: 340px;
  margin: 14px 0 0;
}

.footer h3 {
  color: var(--white);
}

.footer a:not(.brand) {
  display: block;
  margin: 8px 0;
  color: rgba(255, 255, 255, .76);
}

@media (max-width: 960px) {
  .topbar {
    padding-left: 24px;
    padding-right: 24px;
  }

  .nav {
    justify-content: flex-start;
    overflow-x: auto;
    padding: 0 18px;
  }

  .nav a {
    flex: 0 0 auto;
  }

  .intro-grid,
  .article-layout,
  .promo,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .game-grid,
  .article-grid,
  .about-grid,
  .promo-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .wrap,
  .hero-content {
    width: min(100% - 32px, 560px);
  }

  .topbar {
    min-height: auto;
    padding: 14px 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .brand {
    font-size: 34px;
  }

  .auth {
    width: 100%;
    gap: 10px;
  }

  .auth a {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    white-space: nowrap;
  }

  .hero {
    min-height: 620px;
  }

  .hero-img {
    object-position: 65% center;
  }

  .hero-shade {
    background: linear-gradient(180deg, rgba(12, 0, 2, .92) 0%, rgba(35, 0, 5, .74) 54%, rgba(35, 0, 5, .3) 100%);
  }

  .hero-content {
    padding-top: 52px;
  }

  .hero h1 {
    font-size: 37px;
  }

  .hero p {
    font-size: 17px;
  }

  .game-grid,
  .article-grid,
  .about-grid,
  .promo-list {
    grid-template-columns: 1fr;
  }

  .promo {
    width: min(100% - 32px, 560px);
    padding: 30px 20px;
  }

  .section-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .article-hero .wrap {
    padding: 54px 0 62px;
  }

  .article-content {
    padding: 24px 20px;
  }

  .article-nav {
    grid-template-columns: 1fr;
  }
}
