

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

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

body {
  font-family: 'Poppins', system-ui, sans-serif;
  background: #ffffff;
  color: #0d0e12;
  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;
}

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

.section--dark {
  background: linear-gradient(180deg, #240054 0%, #061C53 100%);
  color: #ffffff;
}

.section--light {
  background: #ffffff;
  color: #0d0e12;
}

.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(243, 70, 156, 0.35) 0%, rgba(243, 70, 156, 0) 70%);
  top: -160px;
  left: -180px;
}

.section--decorated::after {
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(36, 0, 84, 0.45) 0%, rgba(36, 0, 84, 0) 70%);
  bottom: -200px;
  right: -200px;
}

.section--decorated-light::before {
  background: radial-gradient(circle, rgba(243, 70, 156, 0.18) 0%, rgba(243, 70, 156, 0) 70%);
}

.section--decorated-light::after {
  background: radial-gradient(circle, rgba(36, 0, 84, 0.16) 0%, rgba(36, 0, 84, 0) 70%);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 40px;
  min-width: 210px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  border: none;
  border-radius: 60px;
  background: #F3469C;
  color: #ffffff;
  box-shadow: 0 0 20px rgba(243, 70, 156, 0.6);
  cursor: pointer;
  text-align: center;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(243, 70, 156, 0.8);
  background: #ec3590;
}

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

.button--ghost {
  background: transparent;
  color: #0d0e12;
  border: 2px solid #0d0e12;
  box-shadow: none;
}

.button--ghost:hover {
  background: rgba(13, 14, 18, 0.04);
  box-shadow: none;
}

.header {
  background: #0D0E12;
  color: #ffffff;
}

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

.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: 700;
  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 {
  color: #F3469C;
}

.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 {
  position: relative;
  min-height: 480px;
  color: #ffffff;
  padding: 90px 0 110px;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.hero__inner {
  position: relative;
  z-index: 2;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 14, 18, 0.6) 0%, rgba(36, 0, 84, 0.55) 100%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  text-align: center;
  max-width: 940px;
  margin: 0 auto;
}

.hero__title {
  font-size: 60px;
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
}

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

.about {
  padding: 80px 0;
  background: #ffffff;
}

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

.about__image {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 24px;
}

.about__content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: center;
  padding: 0 20px;
}

.about__title {
  font-size: 50px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  color: #0d0e12;
}

.about__text {
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
  color: #0d0e12;
  white-space: pre-line;
}

.why {
  padding: 80px 0;
}

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

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

.why__text {
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
  max-width: 920px;
  white-space: pre-line;
}

.why__image {
  width: 100%;
  max-width: 550px;
  height: auto;
  border-radius: 24px;
}

.advantages {
  padding: 80px 0;
  background: #ffffff;
}

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

.advantages__title {
  font-size: 50px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  color: #0d0e12;
}

.advantages__description {
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
  color: #0d0e12;
}

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

.advantages__card {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 24px;
  background: linear-gradient(180deg, #240054 0%, #061C53 100%);
  border-radius: 26px;
  color: #ffffff;
}

.advantages__card-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

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

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

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

.worlds {
  padding: 80px 0;
}

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

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

.worlds__title-highlight {
  color: #F3469C;
}

.worlds__description {
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}

.worlds__grid {
  display: grid;
  grid-template-columns: 160px 1fr 1fr 160px;
  grid-template-rows: auto auto;
  grid-template-areas:
    "pets tag plonky pizza"
    "hill tag plonky subway";
  gap: 20px;
  margin-bottom: 36px;
}

.worlds__card {
  display: block;
  border-radius: 26px;
  overflow: hidden;
  border: 4px solid #F3469C;
  aspect-ratio: 1 / 1;
}

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

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

.worlds__card--pets   { grid-area: pets; }
.worlds__card--hill   { grid-area: hill; }
.worlds__card--tag    { grid-area: tag; }
.worlds__card--plonky { grid-area: plonky; }
.worlds__card--pizza  { grid-area: pizza; }
.worlds__card--subway { grid-area: subway; }

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

.contacts {
  padding: 80px 0;
  background: #ffffff;
}

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

.contacts__title {
  font-size: 50px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  color: #0d0e12;
}

.contacts__text {
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
  max-width: 920px;
  color: #0d0e12;
}

.contacts__info {
  font-size: 14px;
  line-height: 1.8;
  margin: 0;
  font-weight: 600;
  color: #0d0e12;
}

.contacts__info p {
  margin: 0;
}

.contacts__image {
  width: 100%;
  max-width: 550px;
  height: auto;
  border-radius: 24px;
}

.game-hero {
  padding: 80px 0;
  position: relative;
  background: linear-gradient(180deg, #240054 0%, #061C53 100%);
  color: #ffffff;
}

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

.game-hero__icon {
  width: 180px;
  height: 180px;
  border-radius: 32px;
  object-fit: cover;
}

.game-hero__title {
  font-size: 44px;
  font-weight: 700;
  margin: 0;
}

.game-hero__description {
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
  max-width: 900px;
}

.game-about {
  padding: 80px 0;
  background: #ffffff;
}

.game-about__inner {
  display: grid;
  grid-template-columns: 1fr 360px;
  align-items: center;
  gap: 40px;
}

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

.game-about__title {
  font-size: 44px;
  font-weight: 700;
  margin: 0;
  color: #0d0e12;
}

.game-about__text {
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
  color: #0d0e12;
}

.game-about__image {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 24px;
}

.legal {
  padding: 80px 0;
  background: #ffffff;
}

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

.legal__title {
  font-size: 50px;
  font-weight: 700;
  margin: 0;
  line-height: 1.15;
  color: #0d0e12;
}

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

.legal__paragraph {
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
  color: #0d0e12;
}

.legal__paragraph-label {
  font-weight: 700;
}

.footer {
  background: #0D0E12;
  color: #ffffff;
  padding: 50px 0 30px;
}

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

.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: 700;
  text-transform: uppercase;
  margin: 0;
}

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

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

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

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

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

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

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

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

.cookie {
  position: fixed;
  inset: 0;
  background: rgba(13, 14, 18, 0.5);
  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: 460px;
  padding: 36px 32px;
  background: #ffffff;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
  color: #0d0e12;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
}

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

.cookie__icon::before,
.cookie__icon::after {
  content: "";
  position: absolute;
  background: #8b5a3c;
  border-radius: 50%;
}

.cookie__icon::before {
  width: 10px;
  height: 10px;
  top: 26%;
  left: 32%;
}

.cookie__icon::after {
  width: 8px;
  height: 8px;
  top: 56%;
  left: 54%;
  box-shadow:
    -16px -4px 0 -1px #8b5a3c,
    10px 12px 0 -2px #8b5a3c;
}

.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(13, 14, 18, 0.75);
}

.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: 14px 16px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 700;
  border-radius: 60px;
  border: none;
  cursor: pointer;
}

.cookie__button--accept {
  background: #F3469C;
  color: #ffffff;
  box-shadow: 0 0 20px rgba(243, 70, 156, 0.4);
}

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

.cookie__button--decline {
  background: #ffffff;
  color: #0d0e12;
  border: 2px solid #d9d9d9;
}

.cookie__button--decline:hover {
  background: #f4f4f4;
  border-color: #0d0e12;
}

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

  .about__title,
  .why__title,
  .advantages__title,
  .worlds__title,
  .contacts__title,
  .game-about__title,
  .legal__title {
    font-size: 38px;
  }

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

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

  .about__inner {
    grid-template-columns: 180px 1fr 180px;
  }

  .about__image {
    height: 320px;
  }

  .worlds__grid {
    grid-template-columns: 120px 1fr 1fr 120px;
    grid-template-areas:
      "pets tag plonky pizza"
      "hill tag plonky subway";
  }

  .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: #0c0d11;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
    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 {
    padding: 60px 0 80px;
  }

  .hero__title {
    font-size: 36px;
  }

  .about__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about__image {
    height: 260px;
    max-width: 320px;
    margin: 0 auto;
  }

  .about__title,
  .why__title,
  .advantages__title,
  .worlds__title,
  .contacts__title,
  .game-about__title,
  .legal__title {
    font-size: 30px;
  }

  .game-hero__title {
    font-size: 28px;
  }

  .game-hero__icon {
    width: 140px;
    height: 140px;
  }

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

  .game-about__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .game-about__image {
    height: 280px;
    max-width: 360px;
    margin: 0 auto;
  }

  .worlds__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto auto;
    grid-template-areas:
      "pets hill"
      "tag tag"
      "plonky plonky"
      "pizza subway";
  }

  .footer__nav {
    gap: 14px 20px;
  }

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

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

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

  .about__title,
  .why__title,
  .advantages__title,
  .worlds__title,
  .contacts__title,
  .game-about__title,
  .legal__title {
    font-size: 26px;
  }

  .section {
    padding: 50px 0;
  }

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

  .cookie__banner {
    padding: 30px 22px;
  }

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