/* ===== Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
  color: #fff;
  background: linear-gradient(180deg, #090909 0%, #1f0254 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  line-height: 1.1;
  min-height: 100vh;
}

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

img {
  display: block;
  max-width: 100%;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

.page {
  width: 100%;
  max-width: 1366px;
  margin: 0 auto;
  position: relative;
  padding: 0 20px;
}

/* ===== Brand / Header / Nav ===== */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand__logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.brand__name {
  font-weight: 700;
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.header {
  padding: 20px 0;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
}

.nav__link {
  transition: opacity 0.2s ease;
}

.nav__link:hover {
  opacity: 0.7;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 22px 40px;
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(90deg, #0c3fd7 0%, #2b9fff 100%);
  border: 1px solid #fff;
  border-radius: 60px;
  filter: drop-shadow(0 0 10px rgba(43, 159, 255, 0.6));
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 0 16px rgba(43, 159, 255, 0.85));
}

/* ===== Section heading ===== */
.section-title {
  margin: 0;
  font-weight: 700;
  font-size: 72px;
  line-height: 1.1;
  text-transform: uppercase;
}

.section-title--center {
  text-align: center;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 56px 0 80px;
}

.hero__inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.hero__title {
  margin: 0;
  font-weight: 700;
  font-size: 130px;
  line-height: 1.1;
  text-transform: uppercase;
  word-break: break-word;
}

.hero__decoration {
  width: 174px;
  height: 137px;
  object-fit: contain;
  pointer-events: none;
}

.hero__decoration--flip {
  transform: rotate(180deg);
}

.hero__bottom {
  display: flex;
  align-items: flex-end;
  gap: 20px;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 387px;
  max-width: 100%;
}

.hero__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 14px;
  line-height: 1.35;
}

.hero__owl {
  position: absolute;
  top: 0;
  right: -40px;
  width: 508px;
  height: auto;
  z-index: 1;
  pointer-events: none;
}

/* ===== Stats ===== */
.stats {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 0;
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: flex-start;
}

.stats__head {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 100%;
}

.stats__head .section-title {
  max-width: 929px;
}

.stats__lead {
  font-size: 14px;
  line-height: 1.4;
  max-width: 692px;
}

.stats__row {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.stats__cards {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.stats__icon {
  width: 200px;
  height: auto;
  margin-left: auto;
}

.stat-card {
  width: 285px;
  padding: 20px;
  border-radius: 28px;
  background: linear-gradient(90deg, #0c3fd7 0%, #2b9fff 100%);
  display: flex;
  flex-direction: column;
  gap: 15px;
  color: #fff;
}

.stat-card__value {
  font-weight: 700;
  font-size: 50px;
  line-height: 1.1;
  text-transform: uppercase;
}

.stat-card__label {
  font-size: 14px;
  line-height: 1.1;
}

/* ===== Story ===== */
.story {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 0;
  display: flex;
  align-items: center;
  gap: 30px;
}

.story__image {
  width: 277px;
  height: auto;
  flex-shrink: 0;
}

.story__content {
  display: flex;
  flex-direction: column;
  gap: 30px;
  flex: 1;
}

.story__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 14px;
  line-height: 1.4;
}

.story__decoration {
  width: 174px;
  height: 137px;
  object-fit: contain;
}

/* ===== Popular ===== */
.popular {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 0;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.popular__head {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 894px;
}

.popular__lead {
  font-size: 14px;
  line-height: 1.4;
}

.popular__body {
  display: flex;
  gap: 50px;
  align-items: center;
}

.popular__left {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: flex-start;
}

.popular__grid {
  display: grid;
  grid-template-columns: repeat(3, 180px);
  gap: 20px;
}

.popular__image {
  width: 570px;
  height: auto;
  flex-shrink: 0;
}

.game-tile {
  display: block;
  width: 180px;
  height: 180px;
  border-radius: 24px;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.game-tile:hover {
  transform: translateY(-4px);
}

.game-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== Categories ===== */
.categories {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 0;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

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

.category-card {
  background: linear-gradient(90deg, #0c3fd7 0%, #2b9fff 100%);
  border: 1px solid #fff;
  border-radius: 26px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 272px;
}

.category-card__icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.category-card__title {
  margin: 0;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.1;
}

.category-card__text {
  font-size: 14px;
  line-height: 1.35;
}

/* ===== Contacts ===== */
.contacts {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 0;
  display: flex;
  align-items: center;
  gap: 30px;
}

.contacts__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 692px;
}

.contacts__title {
  margin: 0;
  font-weight: 700;
  font-size: 80px;
  line-height: 1.1;
  text-transform: uppercase;
}

.contacts__text {
  font-size: 14px;
  line-height: 1.4;
}

.contacts__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 1.1;
  color: #2b9fff;
}

.contacts__list a {
  transition: opacity 0.2s ease;
}

.contacts__list a:hover {
  opacity: 0.8;
}

.contacts__image {
  width: 440px;
  height: auto;
  flex-shrink: 0;
}

/* ===== Footer ===== */
.footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 0 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  font-size: 14px;
}

.footer__socials {
  display: flex;
  align-items: center;
  gap: 15px;
}

.footer__social {
  display: inline-flex;
  width: 80px;
  height: 80px;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.footer__social:hover {
  transform: scale(1.05);
}

.footer__social img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer__copy {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

/* ===== Cookies banner ===== */
.cookies {
  box-sizing: border-box;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 600px;
  background: #1F0254;
  border: 3px solid #FFFFFF;
  border-radius: 24px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  z-index: 100;
}

.cookies__img img {
  width: 60px;
  height: 60px;
  display: block;
}

.cookies h2 {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.2;
}

.cookies__text {
  font-size: 14px;
  line-height: 1.4;
  color: #fff;
  margin: 0;
}

.cookies__text a {
  color: #2b9fff;
  text-decoration: underline;
}

.cookies__actions {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.cookies__btn {
  padding: 12px 28px;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  background: linear-gradient(90deg, #0c3fd7 0%, #2b9fff 100%);
  border: 2px solid #fff;
  border-radius: 60px;
  color: #fff;
  filter: drop-shadow(0 0 8px rgba(43, 159, 255, 0.5));
  transition: transform 0.2s ease;
  cursor: pointer;
}

.cookies__btn--deny {
  background: transparent;
  filter: none;
}

.cookies__btn:hover {
  transform: translateY(-1px);
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .hero {
    padding-top: 40px;
  }
  .hero__title {
    font-size: 90px;
  }
  .hero__owl {
    position: static;
    width: 360px;
    margin: 20px auto 0;
  }
  .hero__content {
    max-width: 100%;
  }
  .section-title {
    font-size: 56px;
  }
  .contacts__title {
    font-size: 64px;
  }
  .popular__body {
    flex-direction: column;
  }
  .popular__image {
    width: 100%;
    max-width: 570px;
  }
  .categories__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .story {
    flex-direction: column;
    align-items: flex-start;
  }
  .stats__row {
    flex-direction: column;
    align-items: flex-start;
  }
  .stats__icon {
    margin-left: 0;
  }
}

@media (max-width: 720px) {
  .header__inner {
    flex-direction: column;
    gap: 12px;
  }
  .nav {
    flex-wrap: wrap;
    justify-content: center;
  }
  .hero__title {
    font-size: 56px;
  }
  .section-title {
    font-size: 40px;
  }
  .contacts__title {
    font-size: 48px;
  }
  .hero__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero__copy {
    width: 100%;
  }
  .stats__cards {
    flex-direction: column;
    width: 100%;
  }
  .stat-card {
    width: 100%;
  }
  .popular__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .game-tile {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }
  .categories__grid {
    grid-template-columns: 1fr;
  }
  .contacts {
    flex-direction: column;
  }
  .contacts__image {
    width: 100%;
    max-width: 320px;
  }
  .contacts__list {
    font-size: 18px;
  }
  .btn {
    padding: 16px 28px;
    font-size: 13px;
  }
  .cookies {
    flex-direction: column;
    text-align: center;
  }
}

.story--game{
  padding: 0;
}

/* ===== Legal pages ===== */
.legal {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 0 80px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.legal__head {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.legal__list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.legal__item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.legal__item-title {
  margin: 0;
  font-weight: 700;
  font-size: 26px;
  line-height: 1.2;
  text-transform: uppercase;
  color: #2b9fff;
}

.legal__item-text {
  font-size: 14px;
  line-height: 1.5;
}

.legal__contacts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 600;
  font-size: 20px;
  color: #2b9fff;
  margin-top: 6px;
}

@media (max-width: 720px) {
  .legal__item-title {
    font-size: 20px;
  }
  .legal__contacts {
    font-size: 16px;
  }
}
