@import url('https://fonts.googleapis.com/css2?family=KoHo:wght@500;600;700&family=Lato:wght@400;700&display=swap');

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  color: #ffffff;
  background-color: #090522;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul,
ol {
  list-style: none;
}

.container {
  width: 100%;
  margin: 0 auto;
  padding-left: max(42px, calc((100% - 1200px) / 2));
  padding-right: max(42px, calc((100% - 1200px) / 2));
}

.header {
  background-color: #090522;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  padding-bottom: 24px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 2px;
}

.header__logo-icon {
  width: 32px;
  height: 32px;
}

.header__logo-text {
  font-family: 'KoHo', sans-serif;
  font-weight: 500;
  font-size: 32px;
  line-height: normal;
  color: #ffffff;
  white-space: nowrap;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header__nav-link {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 20px;
  text-transform: uppercase;
  color: #ffffff;
  transition: opacity 0.3s;
}

.header__nav-link:hover {
  opacity: 0.8;
}

.header__burger {
  display: none;
  width: 24px;
  height: 24px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.header__burger img {
  width: 100%;
  height: 100%;
}

.hero {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 42px;
  padding-bottom: 42px;
  position: relative;
  overflow: hidden;
  min-height: 630px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: #160930;
}

.hero__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: hard-light;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #160930, rgba(22, 9, 48, 0));
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: 48px;
  align-items: flex-start;
  position: relative;
  width: 546px;
  flex-shrink: 0;
}

.hero__title {
  font-family: 'KoHo', sans-serif;
  font-weight: 600;
  font-size: 48px;
  line-height: 1;
  color: #ffffff;
}

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

.hero__description {
  font-size: 20px;
  line-height: 1.4;
  color: #ffffff;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  padding: 18px 36px;
  background: linear-gradient(to right, #8d34fd, #fd2479);
  border: 3px solid #d6b9de;
  border-radius: 20px;
  font-family: 'KoHo', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: #ffffff;
  text-transform: uppercase;
  white-space: nowrap;
  transition: opacity 0.3s, transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.btn-primary:hover {
  opacity: 0.95;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(141, 52, 253, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.hero__image {
  flex: 1;
  min-width: 0;
  position: relative;
  aspect-ratio: 1;
}

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

.section {
  padding-top: 96px;
  padding-bottom: 96px;
}

.section--dark {
  background-color: #090522;
}

.section--alt {
  background-color: #160930;
}

.section__header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 48px;
}

.section__title {
  font-family: 'KoHo', sans-serif;
  font-weight: 600;
  font-size: 48px;
  line-height: 1;
  color: #ffffff;
}

.section__subtitle {
  font-size: 20px;
  line-height: 1.4;
  color: #ffffff;
}

.insight__texts {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.insight__text {
  font-size: 20px;
  line-height: 1.4;
}

.insight__image-wrapper {
  background-color: #281e3d;
  border: 1px solid #441a73;
  border-radius: 32px;
  padding: 24px;
}

.insight__image {
  width: 100%;
  border-radius: 20px;
  object-fit: cover;
  aspect-ratio: 1068 / 478;
}

.cards-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.card {
  background-color: #281e3d;
  border: 1px solid #441a73;
  border-radius: 32px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card--half {
  width: calc(50% - 12px);
}

.card--third {
  width: calc(33.333% - 16px);
}

.card__title {
  font-family: 'KoHo', sans-serif;
  font-weight: 600;
  font-size: 32px;
  line-height: 1.1;
  color: #ffffff;
}

.card__text {
  font-size: 20px;
  line-height: 1.4;
  color: #ffffff;
}

.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.feature-card {
  background-color: #160930;
  border: 1px solid #441a73;
  border-radius: 32px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

.feature-card--third {
  width: calc(33.333% - 16px);
}

.feature-card--half {
  width: calc(50% - 12px);
}

.feature-card__title {
  font-family: 'KoHo', sans-serif;
  font-weight: 600;
  font-size: 32px;
  line-height: 1.1;
  color: #ffffff;
}

.feature-card__text {
  font-size: 20px;
  line-height: 1.4;
  color: #ffffff;
}

.testimonials-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.testimonial {
  background-color: #281e3d;
  border: 1px solid #441a73;
  border-radius: 32px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: calc(50% - 12px);
}

.testimonial__header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}

.testimonial__info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.testimonial__stars {
  width: 100px;
  height: 20px;
}

.testimonial__name {
  font-family: 'KoHo', sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: normal;
  color: #ffffff;
}

.testimonial__text {
  font-size: 20px;
  line-height: 1.4;
  color: #ffffff;
}

.footer {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  padding-top: 42px;
  padding-bottom: 42px;
  position: relative;
  overflow: hidden;
}

.footer__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.footer__links {
  display: flex;
  align-items: center;
  gap: 32px;
  position: relative;
}

.footer__link {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 20px;
  text-transform: uppercase;
  color: #ffffff;
  transition: opacity 0.3s;
}

.footer__link:hover {
  opacity: 0.8;
}

.footer__contacts {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  position: relative;
  flex-wrap: wrap;
}

.footer__contact {
  font-size: 20px;
  line-height: 1.4;
  color: #ffffff;
  white-space: nowrap;
}

.footer__social {
  width: 24px;
  height: 24px;
  transition: opacity 0.3s;
}

.footer__social:hover {
  opacity: 0.8;
}

.footer__social img {
  width: 100%;
  height: 100%;
}

.footer__copy {
  font-size: 16px;
  line-height: 1.4;
  color: #ffffff;
  text-align: center;
  position: relative;
}

.footer__legal {
  font-size: 14px;
  line-height: 1.5;
  color: #d6b9de;
  text-align: center;
  position: relative;
  max-width: 720px;
}

/* ===== Editorial / informational layer ===== */
.inline-link {
  color: #d6b9de;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.3s;
}

.inline-link:hover {
  opacity: 0.8;
}

.byline {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: center;
  font-size: 16px;
  line-height: 1.4;
  color: #d6b9de;
  margin-bottom: 24px;
}

.byline__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.byline__category {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border: 1px solid #441a73;
  border-radius: 999px;
  font-family: 'KoHo', sans-serif;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #ffffff;
}

.taxonomy {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 48px;
}

.taxonomy__item {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 16px;
  border: 1px solid #441a73;
  border-radius: 999px;
  background-color: #281e3d;
  font-family: 'KoHo', sans-serif;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #ffffff;
}

.editorial-list {
  list-style: disc;
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.editorial-list li {
  font-size: 18px;
  line-height: 1.5;
  color: #ffffff;
}

.score-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 12px;
}

.score-row {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr 56px;
  gap: 16px;
  align-items: center;
  font-size: 18px;
  color: #ffffff;
}

.score-row__label {
  font-family: 'KoHo', sans-serif;
  font-weight: 600;
}

.score-row__bar {
  height: 8px;
  border-radius: 999px;
  background-color: #281e3d;
  overflow: hidden;
}

.score-row__fill {
  height: 100%;
  background: linear-gradient(to right, #8d34fd, #fd2479);
}

.score-row__value {
  font-family: 'KoHo', sans-serif;
  font-weight: 700;
  text-align: right;
}

.review-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 20px;
  margin-top: 24px;
  border: 1px solid #441a73;
  border-radius: 20px;
  background-color: #160930;
  font-size: 16px;
  line-height: 1.5;
  color: #d6b9de;
}

@media (max-width: 768px) {
  .score-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .score-row__value {
    text-align: left;
  }
}

.page-title {
  font-family: 'KoHo', sans-serif;
  font-weight: 600;
  font-size: 64px;
  line-height: 1;
  color: #ffffff;
}

.games-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.game-card {
  background-color: #281e3d;
  border: 1px solid #441a73;
  border-radius: 32px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  width: calc(33.333% - 16px);
}

.game-card__image {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  object-fit: cover;
}

.game-card .btn-primary {
  width: 100%;
}

.game-detail {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  justify-content: center;
}

.game-detail__card {
  background-color: #281e3d;
  border: 1px solid #441a73;
  border-radius: 32px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  width: 546px;
  flex-shrink: 0;
}

.game-detail__image {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  object-fit: cover;
}

.game-detail__name {
  font-family: 'KoHo', sans-serif;
  font-weight: 600;
  font-size: 32px;
  line-height: normal;
  color: #ffffff;
  text-align: center;
  width: 100%;
}

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

.policy-text {
  font-size: 20px;
  line-height: 1.4;
  color: #ffffff;
  white-space: pre-wrap;
}

.game-detail__card .btn-primary {
  width: 100%;
}

.game-detail__info {
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1;
  min-width: 0;
}

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

.game-detail__block-title {
  font-family: 'KoHo', sans-serif;
  font-weight: 600;
  font-size: 64px;
  line-height: 1;
  color: #ffffff;
}

.game-detail__block-text {
  font-size: 20px;
  line-height: 1.4;
  color: #ffffff;
}

@media (max-width: 768px) {
  .game-detail {
    flex-direction: column;
    align-items: center;
  }

  .game-detail__card {
    width: 100%;
  }

  .game-detail__block-title {
    font-size: 40px;
  }
}

@media (max-width: 768px) {
  .page-title {
    font-size: 40px;
  }

  .game-card {
    width: 100%;
  }
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  flex-direction: column;
  background-color: #090522;
  overflow: hidden;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.mobile-menu__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: #090522;
}

.mobile-menu__bg-img {
  position: absolute;
  width: 1418px;
  height: 945px;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  object-fit: cover;
  mix-blend-mode: hard-light;
}

.mobile-menu__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(22, 9, 48, 0.8);
}

.mobile-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  position: relative;
  z-index: 1;
  background-color: #090522;
}

.mobile-menu__close {
  width: 24px;
  height: 24px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.mobile-menu__close img {
  width: 100%;
  height: 100%;
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 96px;
  flex: 1;
  position: relative;
  z-index: 1;
}

.mobile-menu__nav-link {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 20px;
  text-transform: uppercase;
  color: #ffffff;
}

.mobile-menu__btn {
  position: relative;
  z-index: 1;
  margin: 0 12px 46px;
  width: calc(100% - 24px);
}

@media (max-width: 768px) {
  .header {
    padding: 12px;
  }

  .header__nav {
    display: none;
  }

  .header__burger {
    display: block;
  }

  .hero {
    flex-direction: column;
    align-items: center;
    padding: 48px 12px 0;
    min-height: auto;
    gap: 24px;
  }

  .hero__bg::after {
    background: linear-gradient(to top, rgba(22, 9, 48, 0) 16%, #160930 47%);
  }

  .hero__content {
    width: 100%;
    gap: 24px;
  }

  .hero__content .btn-primary {
    width: 100%;
  }

  .hero__title {
    font-size: 40px;
  }

  .hero__image {
    width: 100%;
  }

  .section {
    padding: 48px 12px;
  }

  .section__title {
    font-size: 40px;
  }

  .card--half,
  .card--third {
    width: 100%;
  }

  .feature-card--third,
  .feature-card--half {
    width: 100%;
  }

  .testimonial {
    width: 100%;
  }

  .footer {
    padding: 24px 12px;
  }

  .footer__links {
    flex-direction: column;
    gap: 16px;
  }

  .footer__link {
    font-size: 16px;
  }

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

  .footer__contact {
    font-size: 16px;
  }

  .footer__copy {
    font-size: 14px;
  }
}

/* ===== Outline button ===== */
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  padding: 18px 36px;
  background: transparent;
  border: 3px solid #d6b9de;
  border-radius: 20px;
  font-family: 'KoHo', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: #ffffff;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-outline:hover {
  background-color: rgba(214, 185, 222, 0.14);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(214, 185, 222, 0.18);
}

.btn-outline:active {
  transform: translateY(0);
}

/* ===== Hover effects on cards ===== */
.card,
.feature-card,
.testimonial,
.game-card,
.game-detail__card,
.insight__image-wrapper {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover,
.feature-card:hover,
.testimonial:hover,
.game-card:hover,
.game-detail__card:hover,
.insight__image-wrapper:hover {
  transform: translateY(-6px);
  border-color: #8d34fd;
  box-shadow: 0 16px 40px rgba(141, 52, 253, 0.22);
}

.game-card {
  overflow: hidden;
}

.game-card__image,
.game-detail__image {
  transition: transform 0.4s ease;
}

.game-card:hover .game-card__image {
  transform: scale(1.05);
}

.testimonial__avatar {
  transition: transform 0.3s ease;
}

.testimonial:hover .testimonial__avatar {
  transform: scale(1.08);
}

/* ===== Scroll reveal animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===== Cookie banner ===== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 300;
  background-color: #160930;
  border-top: 1px solid #441a73;
  padding-top: 28px;
  padding-bottom: 28px;
  transform: translateY(130%);
  transition: transform 0.5s ease;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.45);
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-banner__inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.cookie-banner__title {
  font-family: 'KoHo', sans-serif;
  font-weight: 600;
  font-size: 40px;
  line-height: 1;
  color: #ffffff;
}

.cookie-banner__text {
  font-size: 18px;
  line-height: 1.4;
  color: #ffffff;
  max-width: 1000px;
}

.cookie-banner__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.cookie-banner__accept {
  height: 56px;
  font-size: 20px;
  padding: 14px 32px;
}

.cookie-banner__learn {
  align-self: center;
  font-size: 18px;
  color: #d6b9de;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 768px) {
  .cookie-banner {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .cookie-banner__title {
    font-size: 32px;
  }

  .cookie-banner__text {
    font-size: 16px;
  }

  .cookie-banner__actions {
    width: 100%;
    flex-direction: column;
  }

  .cookie-banner__accept {
    width: 100%;
  }
}
