

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

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

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: #020202;
  color: #ffffff;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
}

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

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

button {
  font-family: inherit;
}

.page {
  position: relative;
  width: 100%;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.gradient-text {
  background: linear-gradient(90deg, #FF8A24 0%, #2453FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.section {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
}

.section--decorated::before,
.section--decorated::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
}

.section--decorated::before {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(255, 138, 36, 0.18) 0%, rgba(255, 138, 36, 0) 70%);
  top: -160px;
  left: -180px;
}

.section--decorated::after {
  width: 540px;
  height: 540px;
  background: radial-gradient(circle, rgba(36, 83, 255, 0.2) 0%, rgba(36, 83, 255, 0) 70%);
  bottom: -200px;
  right: -200px;
}

.section__inner {
  position: relative;
  z-index: 1;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 22px 50px;
  min-width: 206px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  border: none;
  border-radius: 60px;
  background: linear-gradient(90deg, #FF8A24 0%, #2453FF 100%);
  color: #ffffff;
  cursor: pointer;
  text-align: center;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(255, 138, 36, 0.25), 0 0 24px rgba(36, 83, 255, 0.25);
  filter: brightness(1.06);
}

.button:active {
  transform: translateY(0);
}

.header {
  background: #020202;
  position: relative;
  z-index: 20;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
}

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

.header__logo-text {
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0;
  letter-spacing: 0.02em;
}

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

.header__nav-link {
  font-size: 14px;
  font-weight: 400;
  color: #ffffff;
}

.header__nav-link:hover,
.header__nav-link--active {
  background: linear-gradient(90deg, #FF8A24 0%, #2453FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

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

.header__burger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: #ffffff;
  margin: 5px auto;
}

.header__burger--open .header__burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header__burger--open .header__burger-line:nth-child(2) {
  opacity: 0;
}

.header__burger--open .header__burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  padding: 30px 0 80px;
  position: relative;
}

.hero__title {
  font-size: 120px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  margin: 0 0 30px;
  text-align: center;
  background: linear-gradient(90deg, #FF8A24 0%, #2453FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero__inner {
  display: grid;
  grid-template-columns: 389px 1fr;
  gap: 24px;
  align-items: end;
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 420px;
}

.hero__description {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.55;
  margin: 0;
  color: #ffffff;
}

.hero__image {
  width: 100%;
  height: auto;
  max-height: 620px;
  object-fit: contain;
  justify-self: end;
}

.story {
  padding: 80px 0;
}

.story__title {
  font-size: 70px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  margin: 0 0 30px;
  background: linear-gradient(90deg, #FF8A24 0%, #2453FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.story__inner {
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: 30px;
  align-items: center;
}

.story__image {
  width: 100%;
  max-width: 440px;
  height: auto;
}

.story__text-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.story__text {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.55;
  margin: 0;
  color: #ffffff;
  white-space: pre-line;
}

.why {
  padding: 80px 0;
}

.why__head {
  display: grid;
  grid-template-columns: 1fr 416px;
  gap: 60px;
  align-items: end;
  margin-bottom: 30px;
}

.why__title {
  font-size: 70px;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.15;
  margin: 0;
  background: linear-gradient(90deg, #FF8A24 0%, #2453FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.why__description {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.55;
  margin: 0;
  color: #ffffff;
}

.why__banner {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 200px;
  margin-bottom: 30px;
}

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

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

.why__card-icon {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.why__card-title {
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.25;
  margin: 0;
  background: linear-gradient(90deg, #FF8A24 0%, #2453FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.why__card-text {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.55;
  margin: 0;
  color: #ffffff;
}

.categories {
  padding: 80px 0;
}

.categories__inner {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 50px;
  align-items: start;
}

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

.categories__title {
  font-size: 64px;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.15;
  margin: 0;
  background: linear-gradient(90deg, #FF8A24 0%, #2453FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.categories__image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 26px;
}

.categories__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

.categories__card-image {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 60px;
}

.categories__card-title {
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.25;
  margin: 0;
  background: linear-gradient(90deg, #FF8A24 0%, #2453FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.categories__card-text {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.55;
  margin: 0;
  color: #ffffff;
}

.categories__actions {
  margin-top: 30px;
  display: flex;
  justify-content: flex-start;
}

.games {
  padding: 80px 0;
}

.games__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
  margin-bottom: 36px;
}

.games__title {
  font-size: 70px;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.15;
  margin: 0;
  background: linear-gradient(90deg, #FF8A24 0%, #2453FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.games__description {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.55;
  margin: 0;
  max-width: 900px;
  color: #ffffff;
}

.games__grid {
  display: grid;
  grid-template-columns: 152px 152px 1fr 152px 152px;
  grid-template-rows: 152px 152px 172px;
  grid-template-areas:
    "gran   moto  hero hero  apple"
    "fruit  pop   hero hero  pop2"
    "wheel  wheel horse horse plant"
    "wheel  wheel horse horse plant";
  gap: 20px;
  margin-bottom: 36px;
}

.games__card {
  display: block;
  border-radius: 20px;
  overflow: hidden;
  background: #111;
}

.games__card:hover {
  transform: translateY(-3px);
}

.games__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.games__card--gran  { grid-area: gran; }
.games__card--moto  { grid-area: moto; }
.games__card--fruit { grid-area: fruit; }
.games__card--pop   { grid-area: pop; }
.games__card--hero  { grid-area: hero; }
.games__card--apple { grid-area: apple; }
.games__card--pop2  { grid-area: pop2; }
.games__card--wheel { grid-area: wheel; }
.games__card--horse { grid-area: horse; }
.games__card--plant { grid-area: plant; }

.games__actions {
  display: flex;
  justify-content: center;
}

.join {
  padding: 80px 0;
}

.join__title {
  font-size: 70px;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.15;
  margin: 0 0 30px;
  background: linear-gradient(90deg, #FF8A24 0%, #2453FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.join__inner {
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: 30px;
  align-items: center;
}

.join__image {
  width: 100%;
  max-width: 440px;
  height: auto;
}

.join__content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.join__text {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.55;
  margin: 0;
  color: #ffffff;
}

.join__contact {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
  margin: 0;
  color: #ffffff;
}

.join__contact p {
  margin: 0;
  background: linear-gradient(90deg, #FF8A24 0%, #2453FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

.game-detail {
  padding: 80px 0;
}

.game-detail__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  text-align: center;
}

.game-detail__title {
  font-size: 64px;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.15;
  margin: 0;
  background: linear-gradient(90deg, #FF8A24 0%, #2453FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.game-detail__description {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.55;
  margin: 0;
  max-width: 1000px;
  color: #ffffff;
}

.game-detail__icon {
  width: 200px;
  height: 200px;
  border-radius: 28px;
  object-fit: cover;
}

.game-about {
  padding: 60px 0 100px;
}

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

.game-about__title {
  font-size: 56px;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.15;
  margin: 0;
  background: linear-gradient(90deg, #FF8A24 0%, #2453FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.game-about__text {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.55;
  margin: 0;
  color: #ffffff;
}

.game-about__image {
  width: 100%;
  max-width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 200px;
}

.legal {
  padding: 80px 0;
}

.legal__inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}

.legal__title {
  font-size: 64px;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.1;
  margin: 0;
  background: linear-gradient(90deg, #FF8A24 0%, #2453FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.legal__body {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.legal__paragraph {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.6;
  margin: 0;
  color: #ffffff;
}

.legal__paragraph-label {
  font-weight: 700;
  color: #ffffff;
}

.footer {
  background: #020202;
  color: #ffffff;
  padding: 40px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
}

.footer__logo-icon {
  width: 30px;
  height: 30px;
}

.footer__logo-text {
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0;
}

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

.footer__nav-link {
  font-size: 14px;
  color: #ffffff;
}

.footer__nav-link:hover {
  background: linear-gradient(90deg, #FF8A24 0%, #2453FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

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

.footer__social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #FF8A24;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.footer__social-link:hover {
  transform: translateY(-2px);
  background: #2453FF;
}

.footer__social-icon {
  width: 18px;
  height: 18px;
}

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

.cookie {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
}

.cookie--hidden {
  display: none;
}

.cookie__banner {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 32px 28px;
  background: #0f0a16;
  border: 1px solid rgba(255, 138, 36, 0.3);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

.cookie__icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffd89a 0%, #d99464 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  line-height: 1;
}

.cookie__icon::before {
  content: "";
}

.cookie__title {
  font-size: 20px;
  font-weight: 800;
  margin: 0;
  line-height: 1.25;
  text-transform: uppercase;
  background: linear-gradient(90deg, #FF8A24 0%, #2453FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.cookie__text {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.55;
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
}

.cookie__buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin-top: 6px;
}

.cookie__button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  border-radius: 12px;
  border: none;
  cursor: pointer;
}

.cookie__button--accept {
  background: linear-gradient(90deg, #FF8A24 0%, #2453FF 100%);
  color: #ffffff;
}

.cookie__button--accept:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.cookie__button--decline {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie__button--decline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 1024px) {
  .hero__title {
    font-size: 80px;
  }

  .story__title,
  .why__title,
  .games__title,
  .join__title {
    font-size: 50px;
  }

  .categories__title,
  .game-detail__title,
  .legal__title {
    font-size: 44px;
  }

  .game-about__title {
    font-size: 36px;
  }

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

  .why__head {
    grid-template-columns: 1fr 360px;
    gap: 40px;
  }

  .categories__inner {
    grid-template-columns: 360px 1fr;
    gap: 30px;
  }

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

  .games__grid {
    grid-template-columns: 120px 120px 1fr 120px 120px;
  }

  .section {
    padding: 60px 0;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .header__burger {
    display: block;
  }

  .header__nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 16px;
    left: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px;
    background: #0f0a16;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
    z-index: 30;
  }

  .header__nav--open {
    display: flex;
  }

  .header__nav-link {
    padding: 12px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .header__nav-link:last-child {
    border-bottom: none;
  }

  .hero__title {
    font-size: 48px;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero__content {
    max-width: 100%;
  }

  .hero__image {
    max-width: 320px;
    justify-self: center;
  }

  .story__inner,
  .join__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .story__image,
  .join__image {
    max-width: 320px;
    margin: 0 auto;
  }

  .story__title,
  .why__title,
  .games__title,
  .join__title {
    font-size: 36px;
  }

  .categories__title,
  .game-detail__title,
  .legal__title {
    font-size: 34px;
  }

  .game-about__title {
    font-size: 26px;
  }

  .why__head {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .why__banner {
    height: 180px;
    border-radius: 60px;
  }

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

  .categories__inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .categories__image {
    height: 280px;
  }

  .games__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "gran moto"
      "fruit pop"
      "hero hero"
      "apple pop2"
      "wheel wheel"
      "horse horse"
      "plant plant";
    gap: 16px;
  }

  .games__card--hero,
  .games__card--wheel,
  .games__card--horse,
  .games__card--plant {
    aspect-ratio: 1.6 / 1;
  }

  .games__card--gran,
  .games__card--moto,
  .games__card--fruit,
  .games__card--pop,
  .games__card--apple,
  .games__card--pop2 {
    aspect-ratio: 1 / 1;
  }

  .footer__nav {
    gap: 12px 18px;
  }

  .button {
    min-width: 180px;
    padding: 18px 32px;
  }

  .section--decorated::before,
  .section--decorated::after {
    width: 280px;
    height: 280px;
    filter: blur(80px);
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 36px;
  }

  .story__title,
  .why__title,
  .games__title,
  .join__title,
  .categories__title,
  .game-detail__title,
  .legal__title {
    font-size: 28px;
  }

  .game-about__title {
    font-size: 22px;
  }

  .section {
    padding: 50px 0;
  }

  .button {
    width: 100%;
    min-width: 0;
    padding: 16px 20px;
  }

  .cookie__banner {
    padding: 28px 22px;
  }

  .cookie__title {
    font-size: 16px;
  }
}
