

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

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

body {
  font-family: 'Unbounded', system-ui, sans-serif;
  background: #010119;
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.4;
}

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

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

button {
  font-family: inherit;
}

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

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

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

.section--hero {
  padding-top: 110px;
  padding-bottom: 100px;
}

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

.section--decorated::before {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(146, 33, 193, 0.55) 0%, rgba(146, 33, 193, 0) 70%);
  top: -160px;
  left: -180px;
}

.section--decorated::after {
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(121, 16, 234, 0.5) 0%, rgba(121, 16, 234, 0) 70%);
  bottom: -200px;
  right: -200px;
}

.section--decorated-right::before {
  display: none;
}

.section--decorated-right::after {
  right: -180px;
  bottom: -120px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 40px;
  min-width: 240px;
  font-family: 'Unbounded', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  border-radius: 60px;
  border: 2px solid #fff;
  background: linear-gradient(90deg, #9221C1 0%, #7910EA 100%);
  color: #fff;
  cursor: pointer;
  text-align: center;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(146, 33, 193, 0.4);
}

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

.button--ghost {
  background: transparent;
  border: 2px solid #fff;
}

.button--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.button--small {
  padding: 12px 24px;
  min-width: auto;
  font-size: 12px;
  border-width: 1px;
  border-color: rgba(255, 255, 255, 0.4);
}

.header {
  position: relative;
  z-index: 20;
  padding: 24px 0;
}

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

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

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

.header__logo-text {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.01em;
}

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

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

.header__nav-link:hover,
.header__nav-link--active {
  color: #c178e8;
}

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

.header__burger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  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__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 620px;
}

.hero__title {
  font-size: 72px;
  line-height: 1.05;
  font-weight: 500;
  margin: 0;
}

.hero__description {
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
}

.hero__image {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.quote {
  padding: 60px 0 40px;
  position: relative;
}

.quote__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
}

.quote__text {
  font-size: 24px;
  line-height: 1.35;
  font-weight: 500;
  margin: 0;
}

.quote__icon {
  width: 64px;
  height: 64px;
}

.features {
  padding: 60px 0;
}

.features__head {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}

.features__title {
  font-size: 44px;
  font-weight: 500;
  line-height: 1.2;
  margin: 0;
}

.features__description {
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

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

.features__card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  background: linear-gradient(135deg, #010119 0%, #450B5D 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 26px;
  overflow: hidden;
}

.features__card-icon {
  width: 56px;
  height: 56px;
}

.features__card-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}

.features__card-text {
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

.features__actions {
  display: flex;
  justify-content: flex-start;
}

.categories {
  padding: 80px 0;
}

.categories__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
  text-align: center;
}

.categories__icon {
  width: 64px;
  height: 64px;
}

.categories__title {
  font-size: 44px;
  font-weight: 500;
  margin: 0;
}

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

.categories__card {
  position: relative;
  display: block;
  height: 380px;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background-size: cover;
  background-position: center;
}
.categories__card-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.categories__card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.85) 100%);
}

.categories__card-content {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.categories__card-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 10px 18px;
  background: #9221C1;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 60px;
  font-size: 12px;
}

.categories__card-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
}

.categories__card-text {
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
}

.icons {
  padding: 80px 0;
}

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

.icons__icon {
  width: 64px;
  height: 64px;
}

.icons__title {
  font-size: 44px;
  font-weight: 500;
  margin: 0;
  max-width: 900px;
}

.icons__description {
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
  max-width: 880px;
  color: rgba(255, 255, 255, 0.9);
}

.icons__grid {
  display: grid;
  grid-template-columns: 160px 1fr 1fr 160px;
  grid-template-rows: auto auto;
  grid-template-areas:
    "monkey tetris smash merge"
    "truck  tetris smash world";
  gap: 20px;
  margin-bottom: 36px;
}

.icons__card {
  display: block;
  border-radius: 26px;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1 / 1;
}

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

.icons__card--monkey { grid-area: monkey; }
.icons__card--truck  { grid-area: truck; }
.icons__card--tetris { grid-area: tetris; }
.icons__card--smash  { grid-area: smash; }
.icons__card--merge  { grid-area: merge; }
.icons__card--world  { grid-area: world; }

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

.invitation {
  padding: 80px 0;
}

.invitation__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

.invitation__content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 620px;
}

.invitation__title {
  font-size: 44px;
  font-weight: 500;
  line-height: 1.2;
  margin: 0;
}

.invitation__text {
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
}

.invitation__contacts {
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
  font-weight: 600;
}

.invitation__contacts p {
  margin: 0;
}

.invitation__image {
  width: 100%;
  max-width: 520px;
  justify-self: end;
}

.game-detail {
  padding: 60px 0 40px;
}

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

.game-detail__icon {
  width: 80px;
  height: 80px;
}

.game-detail__title {
  font-size: 44px;
  font-weight: 500;
  margin: 0;
}

.game-detail__description {
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
  max-width: 880px;
  color: rgba(255, 255, 255, 0.92);
}

.game-detail__image {
  width: 220px;
  height: 220px;
  border-radius: 32px;
  margin: 16px auto 8px;
  object-fit: cover;
}

.game-strategy {
  padding: 40px 0 80px;
}

.game-strategy__inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

.game-strategy__title {
  font-size: 36px;
  font-weight: 500;
  margin: 0;
}

.game-strategy__text {
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

.legal {
  padding: 60px 0 80px;
}

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

.legal__title {
  font-size: 50px;
  font-weight: 700;
  margin: 0;
  line-height: 1.1;
}

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

.legal__paragraph {
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
}

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

.footer {
  padding: 60px 0 40px;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

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

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

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

.footer__logo-text {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}

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

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

.footer__nav-link:hover {
  color: #c178e8;
}

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

.footer__social-link {
  width: 40px;
  height: 40px;
  display: block;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
}

.footer__social-link:hover {
  transform: translateY(-2px);
  filter: brightness(1.15);
}

.footer__social-link-image {
  position: absolute;
  top: 0;
  width: 95px;
  height: 40px;
  pointer-events: none;
}

.footer__social-link--twitter .footer__social-link-image {
  left: 0;
}

.footer__social-link--facebook .footer__social-link-image {
  left: -55px;
}

.footer__social-link__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.footer__copy {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  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: 400px;
  padding: 40px 32px;
  background: linear-gradient(135deg, #1a0a2e 0%, #0f0520 100%);
  border: 2px solid #9221C1;
  border-radius: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.cookie__icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd666 0%, #ffb84d 100%);
  position: relative;
}

.cookie__icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  background: #e63f8b;
  border-radius: 50%;
}

.cookie__icon::after {
  content: "";
  position: absolute;
  top: 18%;
  right: 18%;
  width: 8px;
  height: 8px;
  background: #4dd4e6;
  border-radius: 50%;
}

.cookie__title {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  line-height: 1.25;
}

.cookie__text {
  font-size: 13px;
  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: 8px;
}

.cookie__button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 16px;
  font-family: 'Unbounded', sans-serif;
  font-size: 14px;
  font-weight: 500;
  border-radius: 60px;
  border: 2px solid #fff;
  cursor: pointer;
}

.cookie__button--accept {
  background: linear-gradient(90deg, #9221C1 0%, #7910EA 100%);
  color: #fff;
}

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

.cookie__button--decline {
  background: transparent;
  color: #fff;
}

.cookie__button--decline:hover {
  background: rgba(255, 255, 255, 0.08);
}

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

  .features__title,
  .categories__title,
  .icons__title,
  .invitation__title,
  .game-detail__title,
  .legal__title {
    font-size: 36px;
  }

  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .icons__grid {
    grid-template-columns: 120px 1fr 1fr 120px;
    grid-template-areas:
      "monkey tetris smash merge"
      "truck  tetris smash world";
  }

  .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: #0c0428;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  }

  .header__nav--open {
    display: flex;
  }

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

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

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }

  .hero__content {
    align-items: center;
    margin: 0 auto;
  }

  .hero__title {
    font-size: 40px;
  }

  .hero__image {
    max-width: 360px;
    margin: 0 auto;
    order: -1;
  }

  .quote__text {
    font-size: 18px;
  }

  .features__title,
  .categories__title,
  .icons__title,
  .invitation__title,
  .game-detail__title,
  .legal__title {
    font-size: 30px;
  }

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

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

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

  .categories__card {
    height: 320px;
  }

  .icons__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto auto;
    grid-template-areas:
      "monkey truck"
      "tetris tetris"
      "smash  smash"
      "merge  world";
  }

  .invitation__inner {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .invitation__content {
    align-items: center;
    margin: 0 auto;
  }

  .invitation__image {
    max-width: 320px;
    margin: 0 auto;
    justify-self: center;
  }

  .game-detail__title {
    font-size: 30px;
  }

  .game-detail__image {
    width: 180px;
    height: 180px;
  }

  .game-strategy__title {
    font-size: 24px;
  }

  .footer__nav {
    gap: 14px 20px;
  }

  .footer__copy {
    font-size: 12px;
  }

  .button {
    min-width: 200px;
    padding: 16px 28px;
  }

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

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

  .features__title,
  .categories__title,
  .icons__title,
  .invitation__title,
  .game-detail__title,
  .legal__title {
    font-size: 26px;
  }

  .quote__text {
    font-size: 16px;
  }

  .section {
    padding: 50px 0;
  }

  .section--hero {
    padding-top: 30px;
    padding-bottom: 50px;
  }

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

  .cookie__banner {
    padding: 30px 22px;
  }

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