@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap');

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

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

body {
  font-family: 'Nunito Sans', sans-serif;
  background-color: #cc53ce;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

p { margin: 0; }

:root {
  --color-pink: #cc53ce;
  --color-teal: #006d94;
  --color-white: #ffffff;
}

.site-header {
  background-color: var(--color-pink);
  border-bottom: 1px solid var(--color-white);
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 40px;
}

.site-header__inner {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand__logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 6px;
}

.brand__name {
  font-weight: 700;
  font-size: 30px;
  line-height: 1.2;
  color: var(--color-white);
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 51px;
}

.nav__link {
  font-weight: 400;
  font-size: 18px;
  line-height: 1.2;
  color: var(--color-white);
  transition: opacity .2s ease;
}

.nav__link:hover { opacity: 0.75; }

.burger {
  width: 30px;
  height: 16px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: none;
  color: var(--color-white);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-pink);
  color: var(--color-white);
  padding: 20px 60px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
  line-height: 1;
  transition: transform .15s ease, opacity .15s ease;
  cursor: pointer;
  white-space: nowrap;
  border: 0;
}

.btn:hover { transform: translateY(-2px); opacity: 0.95; }

.section {
  position: relative;
  width: 100%;
  padding: 60px 50px;
  overflow: hidden;
}

.section--pink { background-color: var(--color-pink); }
.section--teal { background-color: var(--color-teal); }

.section__inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.section__title {
  font-weight: 800;
  font-size: 50px;
  line-height: 1.1;
  color: var(--color-white);
  text-transform: uppercase;
  text-align: center;
  margin: 0 0 40px;
}

.section__title--left {
  text-align: left;
}

.section__intro {
  font-weight: 400;
  font-size: 18px;
  line-height: 1.5;
  color: var(--color-white);
  text-align: center;
  margin: 0 0 40px;
}

.deco-star {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

.hero {
  background-color: var(--color-teal);
  padding: 60px 50px;
  position: relative;
  overflow: hidden;
}

.hero__inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero__title {
  font-weight: 900;
  font-size: 110px;
  line-height: 1;
  text-align: left;
  color: var(--color-white);
  text-transform: uppercase;
  margin: 0 0 40px;
  letter-spacing: -0.5px;
  white-space: nowrap;
}

.hero__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  
}

.hero__left {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
  min-width: 0;
}

.hero__image {
  width: 100%;
  max-width: 700px;
  height: auto;
  display: block;
}

.hero__cta-wrap { flex-shrink: 0; }

.hero__text {
  width: 238px;
  flex-shrink: 0;
  font-size: 18px;
  line-height: 1.4;
  text-align: justify;
  color: var(--color-white);
}

.hero__text p + p { margin-top: 1em; }

.short-form__title { text-align: left; margin-bottom: 40px; }

.short-form__row {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
}

.short-form__image {
  width: 520px;
  height: 340px;
  flex-shrink: 0;
  border-radius: 20px;
  object-fit: cover;
}

.short-form__text {
  flex: 1;
  font-size: 18px;
  line-height: 1.5;
  text-align: justify;
}

.short-form__text p + p { margin-top: 1em; }

.pretty__image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 20px;
  margin: 0 0 40px;
  display: block;
}

.pretty__cta-wrap {
  display: flex;
  justify-content: center;
}

.flavors__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.card {
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card--teal { background-color: var(--color-teal); }
.card--pink { background-color: var(--color-pink); }

.card__title {
  font-weight: 700;
  font-size: 22px;
  line-height: 1.1;
  color: var(--color-white);
  margin: 0;
}

.card__text {
  font-weight: 400;
  font-size: 16px;
  line-height: 1.4;
  color: var(--color-white);
  margin: 0;
}

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

.mood__images {
  display: flex;
  gap: 40px;
  justify-content: center;
  margin: 0 0 40px;
  flex-wrap: wrap;
}

.mood__images img {
  width: 350px;
  height: 228px;
  object-fit: cover;
  border-radius: 10px;
}

.mood__text {
  font-size: 18px;
  line-height: 1.5;
  text-align: center;
}

.mood__text p + p { margin-top: 1em; }

.site-footer {
  background-color: var(--color-pink);
  border-top: 1px solid var(--color-white);
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.site-footer__deco {
  position: absolute;
  top: 0;
  left: 45%;
  transform: translateX(-50%);
  width: 257px;
  height: 236px;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

.site-footer__inner {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
  z-index: 2;
}

.site-footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.site-footer__contacts-wrap {
  display: flex;
  align-items: center;
  gap: 80px;
}

.site-footer__contacts {
  width: 249px;
  font-size: 16px;
  line-height: 1.2;
  color: var(--color-white);
}

.site-footer__contacts p + p { margin-top: 1em; }

.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 18px;
  line-height: 1.2;
}

.site-footer__links a:hover { opacity: 0.8; }

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-footer__copy {
  font-size: 14px;
  line-height: 1.2;
  color: var(--color-white);
}

.site-footer__social {
  display: flex;
  gap: 17px;
  align-items: center;
}

.site-footer__social a {
  display: block;
  width: 57px;
  height: 57px;
  transition: transform .2s ease;
}

.site-footer__social a:hover { transform: scale(1.08); }

.site-footer__social img { width: 100%; height: 100%; display: block; }

.policy__title {
  font-weight: 800;
  font-size: 60px;
  line-height: 1.2;
  color: var(--color-white);
  text-transform: uppercase;
  text-align: center;
  margin: 0 0 40px;
  width: 100%;
}

.policy__body {
  font-size: 18px;
  line-height: 1.5;
  color: var(--color-white);
  width: 100%;
}

.policy__body p { margin: 0 0 20px; }
.policy__body p:last-child { margin-bottom: 0; }

.game-page__title {
  font-weight: 800;
  font-size: 60px;
  line-height: 1.2;
  color: var(--color-white);
  text-transform: uppercase;
  text-align: center;
  margin: 0 0 40px;
  width: 100%;
}

.game-page__hero {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  margin: 0 0 40px;
}

.game-page__thumb {
  width: 200px;
  height: 200px;
  flex-shrink: 0;
  border-radius: 20px;
  object-fit: cover;
}

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

.game-page__text {
  font-size: 18px;
  line-height: 1.5;
  text-align: justify;
  color: var(--color-white);
}

.game-page__text p + p { margin-top: 1em; }

.game-page__cta { align-self: flex-start; }

.game-page__gallery {
  display: flex;
  gap: 20px;
  justify-content: center;
  width: 100%;
}

.game-page__gallery img {
  width: 300px;
  height: 380px;
  flex-shrink: 0;
  border-radius: 20px;
  object-fit: cover;
}

.catalog__intro {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
  width: 100%;
}

.catalog__title {
  font-weight: 800;
  font-size: 60px;
  line-height: 1.2;
  color: var(--color-white);
  text-transform: uppercase;
  margin: 0;
}

.catalog__lede {
  font-size: 18px;
  line-height: 1.5;
  color: var(--color-white);
}

.catalog__lede p + p { margin-top: 1em; }

.catalog__mosaic {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  margin: 0 0 40px;
}

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

.catalog__col--left {
  width: 203px;
}

.catalog__col--right {
  width: 426px;
}

.catalog__row {
  display: flex;
  gap: 20px;
}

.game-card {
  position: relative;
  display: block;
  border-radius: 20px;
  overflow: hidden;
  background-color: rgba(0,0,0,0.1);
  transition: transform .25s ease, box-shadow .25s ease;
  cursor: pointer;
  text-decoration: none;
  color: var(--color-white);
}

.game-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.25);
}

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

.game-card--sm {
  width: 203px;
  height: 203px;
}

.game-card--lg {
  width: 426px;
  height: 426px;
}

.game-card__name {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0));
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  color: var(--color-white);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease;
}

.game-card:hover .game-card__name,
.game-card:focus-visible .game-card__name {
  opacity: 1;
  transform: translateY(0);
}

.catalog__features {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  width: 100%;
}

@media (max-width: 900px) {
  .site-header { padding: 13px 20px; height: 64px; position: relative; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background-color: var(--color-pink);
    border-bottom: 1px solid var(--color-white);
    padding: 8px 20px 16px;
    z-index: 50;
    box-shadow: 0 12px 24px rgba(0,0,0,0.18);
  }
  .nav.nav--open { display: flex; animation: fadeUp .25s ease both; }
  .nav__link {
    padding: 14px 4px;
    font-size: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.18);
  }
  .nav__link:last-child { border-bottom: 0; }
  .nav__link::after { display: none; }
  .burger { display: block; }
  .burger[aria-expanded="true"] { opacity: 0.85; }
  .brand__name { font-size: 26px; }

  .section { padding: 40px 20px; }
  .section__title { font-size: 32px; margin-bottom: 20px; text-align: left; }
  .section__intro { margin-bottom: 20px; }

  .hero { padding: 40px 20px; }
  .hero__title { font-size: 36px; white-space: normal; margin-bottom: 20px; text-align: left; }
  .hero__image { width: 100%; max-width: 390px; height: auto; margin: 0 auto; }
  .hero__bottom { flex-direction: column; align-items: stretch; gap: 20px; }
  .hero__left { gap: 20px; align-items: stretch; }
  .hero__cta-wrap { display: flex; justify-content: center; }
  .hero__cta-wrap .btn { width: 100%; }
  .hero__text { width: 100%; }

  .short-form__title { text-align: left; }
  .short-form__row { flex-direction: column; gap: 20px; }
  .short-form__image { width: 100%; max-width: 390px; height: 340px; }
  .short-form__text { width: 100%; }

  .pretty__image { height: 220px; }
  .pretty .section__title,
  .pretty .section__intro { text-align: center; }

  .flavors__grid { grid-template-columns: 1fr; gap: 20px; }
  .flavors__grid .card:nth-child(1) { order: 3; }
  .flavors__grid .card:nth-child(2) { order: 1; }
  .flavors__grid .card:nth-child(3) { order: 4; }
  .flavors__grid .card:nth-child(4) { order: 2; }
  .flavors .section__title { text-align: center; }

  .lineup .section__title { text-align: center; }

  .mood .section__title { text-align: center; }
  .mood__images { flex-direction: column; align-items: center; gap: 20px; margin-bottom: 20px; }
  .mood__images img { width: 100%; max-width: 390px; }

  .site-footer { padding: 40px 20px; text-align: center; }
  .site-footer__deco {
    position: static;
    transform: none;
    width: 142px;
    height: 130px;
    margin: 0 auto 20px;
  }
  .site-footer__inner { gap: 20px; align-items: center; }
  .site-footer__top { flex-direction: column; align-items: center; gap: 20px; }
  .site-footer__contacts-wrap { flex-direction: column; gap: 20px; }
  .site-footer__contacts { text-align: center; width: 100%; }
  .site-footer__links { align-items: center; text-align: center; }
  .site-footer__bottom { flex-direction: column-reverse; gap: 20px; }
  .site-footer__copy { text-align: center; }

  .catalog__title { font-size: 32px; }
  .catalog__intro { gap: 12px; margin-bottom: 20px; }
  .catalog__mosaic {
    gap: 12px;
    width: 100%;
    max-width: 390px;
    margin: 0 auto 20px;
  }
  .catalog__col--left {
    width: 122px;
  }
  .catalog__col--right {
    width: 256px;
  }
  .catalog__col { gap: 12px; }
  .catalog__row { gap: 12px; }
  .game-card--sm { width: 122px; height: 122px; border-radius: 14px; }
  .game-card--lg { width: 256px; height: 256px; border-radius: 14px; }
  .game-card__name { padding: 8px 10px; font-size: 12px; }
  .catalog__features { grid-template-columns: 1fr; gap: 20px; }

  .policy__title { font-size: 32px; margin-bottom: 20px; }
  .game-page__title { font-size: 32px; margin-bottom: 20px; }
  .game-page__hero {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
  }
  .game-page__body { width: 100%; }
  .game-page__cta { align-self: stretch; }
  .game-page__cta .btn { width: 100%; padding: 20px; }
  .game-page__gallery { flex-direction: column; align-items: stretch; gap: 20px; }
  .game-page__gallery img { width: 100%; height: 300px; }
}

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

/* ---------- Animations ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes floatStar {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-10px) rotate(8deg); }
}

@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__title,
.hero__image,
.hero__text,
.hero__cta-wrap,
.section__title,
.section__intro,
.short-form__image,
.short-form__text,
.pretty__image,
.pretty__cta-wrap,
.card,
.mood__images img,
.mood__text,
.game-page__title,
.game-page__hero,
.game-page__gallery,
.policy__title,
.policy__body,
.catalog__intro,
.catalog__mosaic,
.catalog__features {
  animation: fadeUp .8s ease both;
}

.hero__image { animation-delay: .1s; }
.hero__text { animation-delay: .25s; }
.hero__cta-wrap { animation-delay: .4s; }

.deco-star {
  animation: floatStar 6s ease-in-out infinite;
}
.deco-star:nth-of-type(odd) { animation-duration: 7.5s; }
.deco-star:nth-of-type(3n)  { animation-duration: 5s; }

/* ---------- Hover & focus effects ---------- */
.brand { transition: transform .25s ease; }
.brand:hover { transform: scale(1.03); }
.brand__logo { transition: transform .35s ease, filter .25s ease; }
.brand:hover .brand__logo { transform: rotate(-8deg); filter: drop-shadow(0 4px 8px rgba(0,0,0,0.25)); }

.nav__link {
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background-color: var(--color-white);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .3s ease;
}
.nav__link:hover::after { transform: scaleX(1); }

.btn {
  transition: transform .2s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease;
}
.btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 24px rgba(0,0,0,0.22);
  opacity: 1;
}
.btn:active { transform: translateY(-1px) scale(1.0); }

.card {
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.22);
}

.short-form__image,
.pretty__image,
.mood__images img,
.game-page__thumb,
.game-page__gallery img {
  transition: transform .45s ease, box-shadow .35s ease, filter .35s ease;
}
.short-form__image:hover,
.pretty__image:hover,
.mood__images img:hover,
.game-page__thumb:hover,
.game-page__gallery img:hover {
  transform: scale(1.02);
  box-shadow: 0 16px 36px rgba(0,0,0,0.22);
  filter: brightness(1.04);
}

.site-footer__links a {
  position: relative;
  transition: transform .2s ease, opacity .2s ease;
  display: inline-block;
}
.site-footer__links a:hover {
  opacity: 0.85;
  transform: translateX(3px);
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  margin: 0 auto;
  max-width: 1280px;
  background-color: var(--color-pink);
  color: var(--color-white);
  border-radius: 24px;
  padding: 40px 50px;
  box-shadow: 0 24px 56px rgba(0,0,0,0.35);
  animation: slideUpFade .5s ease both;
}

.cookie-banner[hidden] { display: none !important; }

.cookie-banner__title {
  font-weight: 800;
  font-size: 40px;
  line-height: 1.1;
  margin: 0 0 24px;
  text-transform: uppercase;
  color: var(--color-white);
}

.cookie-banner__text {
  font-size: 18px;
  line-height: 1.5;
  margin: 0 0 24px;
  color: var(--color-white);
}

.cookie-banner__text p + p { margin-top: 1em; }

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

.cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-white);
  color: #000;
  padding: 18px 36px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  line-height: 1;
  border: 0;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease;
}

.cookie-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.25);
  background-color: #f3eaff;
}

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

@media (max-width: 900px) {
  .cookie-banner {
    left: 16px;
    right: 16px;
    bottom: 16px;
    padding: 28px 24px;
    border-radius: 20px;
  }
  .cookie-banner__title { font-size: 26px; margin-bottom: 16px; }
  .cookie-banner__text { font-size: 15px; margin-bottom: 18px; }
  .cookie-banner__actions { flex-direction: column; gap: 12px; }
  .cookie-btn { width: 100%; padding: 16px 20px; }
}
