

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

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

body {
  font-family: 'Michroma', system-ui, sans-serif;
  background: #15071F;
  color: #FEFEFE;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.45;
}

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

.section--decorated::before {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(255, 82, 206, 0.25) 0%, rgba(255, 82, 206, 0) 70%);
  top: -180px;
  left: -180px;
}

.section--decorated::after {
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(54, 74, 255, 0.22) 0%, rgba(54, 74, 255, 0) 70%);
  bottom: -200px;
  right: -200px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 22px 48px;
  min-width: 260px;
  font-family: 'Michroma', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  border: none;
  border-radius: 12px;
  background: linear-gradient(90deg, #FF52CE 0%, #FF5266 100%);
  color: #FFFFFF;
  cursor: pointer;
  text-align: center;
  text-transform: none;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(255, 82, 206, 0.35);
  filter: brightness(1.06);
}

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

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

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

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

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

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

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

.header__nav-link {
  font-size: 14px;
  color: #FFFFFF;
}

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

.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: 60px 0 90px;
}

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

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

.hero__title {
  font-size: 72px;
  font-weight: 400;
  text-transform: uppercase;
  color: #FF52CE;
  margin: 0;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.hero__description {
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
  max-width: 1006px;
  color: rgba(254, 254, 254, 0.7);
}

.hero__main {
  display: grid;
  grid-template-columns: 1fr 230px;
  gap: 20px;
  align-items: center;
  width: 100%;
}

.hero__image {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 40px;
}

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

.hero__stat-value {
  font-size: 26px;
  font-weight: 400;
  color: #FF52CE;
  margin: 0;
  line-height: 1.2;
}

.hero__stat-value--large {
  font-size: 32px;
}

.hero__stat-label {
  font-size: 14px;
  line-height: 1.45;
  color: rgba(254, 254, 254, 0.7);
  margin: 6px 0 0;
}

.story {
  padding: 80px 0;
}

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

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

.story__title {
  font-size: 40px;
  font-weight: 400;
  margin: 0;
  line-height: 1.35;
  color: #FEFEFE;
}

.story__text {
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  color: rgba(254, 254, 254, 0.7);
}

.story__image {
  width: 100%;
  max-width: 540px;
  height: auto;
  justify-self: end;
}

.advantages {
  padding: 60px 0 100px;
}

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

.advantages__title {
  font-size: 40px;
  font-weight: 400;
  margin: 0;
  color: #FEFEFE;
}

.advantages__description {
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  color: rgba(254, 254, 254, 0.7);
}

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

.advantages__card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.advantages__card-icon {
  width: 46px;
  height: 46px;
  background: linear-gradient(90deg, #FF52CE 0%, #FF5266 100%);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.advantages__card-icon img {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
}

.advantages__card-title {
  font-size: 22px;
  font-weight: 400;
  line-height: 1.4;
  margin: 0;
  color: #FEFEFE;
}

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

.advantages__image {
  width: 100%;
  max-width: 840px;
  margin: 30px auto 0;
  height: auto;
}

.popular {
  padding: 80px 0;
}

.popular__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
  margin: 0 auto 36px;
  max-width: 1000px;
}

.popular__title {
  font-size: 40px;
  font-weight: 400;
  margin: 0;
}

.popular__description {
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  color: rgba(254, 254, 254, 0.7);
}

.popular__grid {
  display: grid;
  grid-template-columns: 260px 260px 120px 120px;
  grid-template-rows: 120px 120px;
  grid-template-areas:
    "king market kitten cash"
    "king market crazy farm";
  gap: 20px;
  justify-content: center;
  margin-bottom: 36px;
}

.popular__card {
  display: block;
  border-radius: 22px;
  overflow: hidden;
}

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

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

.popular__card--king   { grid-area: king; }
.popular__card--market { grid-area: market; }
.popular__card--kitten { grid-area: kitten; }
.popular__card--cash   { grid-area: cash; }
.popular__card--crazy  { grid-area: crazy; }
.popular__card--farm   { grid-area: farm; }

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

.contacts {
  padding: 60px 0 0;
  background: linear-gradient(90deg, #FF52CE 0%, #FF5266 100%);
  color: #FFFFFF;
}

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

.contacts__title {
  font-size: 40px;
  font-weight: 400;
  margin: 0;
}

.contacts__text {
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  max-width: 880px;
}

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

.contacts__info p {
  margin: 0;
}

.contacts__image {
  width: 100%;
  height: 224px;
  object-fit: cover;
  display: block;
}

.game-hero {
  padding: 70px 0;
}

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

.game-hero__title {
  font-size: 44px;
  font-weight: 400;
  margin: 0;
  color: #FEFEFE;
  text-transform: capitalize;
}

.game-hero__description {
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  max-width: 1000px;
  color: rgba(254, 254, 254, 0.85);
}

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

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

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

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

.game-about__title {
  font-size: 36px;
  font-weight: 400;
  margin: 0;
  line-height: 1.35;
  color: #FEFEFE;
}

.game-about__text {
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  color: rgba(254, 254, 254, 0.85);
}

.game-about__image {
  width: 100%;
  max-width: 400px;
  height: auto;
  justify-self: end;
}

.legal {
  padding: 70px 0 90px;
}

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

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

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

.legal__paragraph {
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
  color: rgba(254, 254, 254, 0.85);
}

.legal__paragraph-label {
  color: #FEFEFE;
  font-weight: 400;
}

.footer {
  background: #15071F;
  color: #FFFFFF;
  padding: 50px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.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: 20px;
  font-weight: 400;
  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: #FF52CE;
}

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

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

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

.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(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: 460px;
  padding: 36px 32px;
  background: #1a0f25;
  border: 1px solid rgba(255, 82, 206, 0.25);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
  color: #FFFFFF;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.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: 400;
  margin: 0;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.cookie__text {
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
  color: rgba(254, 254, 254, 0.7);
}

.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: 'Michroma', sans-serif;
  font-size: 14px;
  font-weight: 400;
  border-radius: 12px;
  border: none;
  cursor: pointer;
}

.cookie__button--accept {
  background: linear-gradient(90deg, #FF52CE 0%, #FF5266 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: 56px;
  }

  .story__title,
  .advantages__title,
  .popular__title,
  .contacts__title,
  .game-about__title,
  .game-hero__title {
    font-size: 32px;
  }

  .legal__title {
    font-size: 38px;
  }

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

  .hero__main {
    grid-template-columns: 1fr 200px;
  }

  .story__inner {
    grid-template-columns: 1fr 360px;
  }

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

  .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: #1a0f25;
    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__title {
    font-size: 36px;
  }

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

  .hero__image {
    height: 280px;
  }

  .hero__stats {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
  }

  .hero__stat {
    flex: 1 1 200px;
    max-width: 240px;
    text-align: center;
  }

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

  .story__image,
  .game-about__image {
    max-width: 360px;
    margin: 0 auto;
    justify-self: center;
  }

  .story__title,
  .advantages__title,
  .popular__title,
  .contacts__title,
  .game-about__title,
  .game-hero__title {
    font-size: 26px;
  }

  .legal__title {
    font-size: 30px;
  }

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

  .popular__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto auto;
    grid-template-areas:
      "king king"
      "market market"
      "kitten cash"
      "crazy farm";
    justify-content: stretch;
  }

  .popular__card--king,
  .popular__card--market {
    aspect-ratio: 1 / 1;
    height: auto;
  }

  .button {
    min-width: 220px;
    padding: 18px 32px;
    font-size: 14px;
  }

  .footer__nav {
    gap: 14px 20px;
  }

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

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

  .story__title,
  .advantages__title,
  .popular__title,
  .contacts__title,
  .game-about__title,
  .game-hero__title,
  .legal__title {
    font-size: 22px;
  }

  .section {
    padding: 50px 0;
  }

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

  .cookie__banner {
    padding: 30px 22px;
  }

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