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

:root {
  --blue: #53a8ce;
  --purple: #532ea8;
  --white: #ffffff;
  --font: 'Nunito Sans', sans-serif;
  --fvs: 'YTLC' 500, 'wdth' 100;
}

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

body {
  font-family: var(--font);
  font-variation-settings: var(--fvs);
  color: var(--white);
  background: var(--blue);
  overflow-x: hidden;
}

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

img {
  display: block;
}

.header {
  background: var(--blue);
  border-bottom: 1px solid var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 13px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}

.header__logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

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

.header__nav a {
  font-size: 18px;
  font-weight: 400;
  font-variation-settings: var(--fvs);
  position: relative;
}

.header__nav a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--white);
  transition: width 0.25s ease;
}

.header__nav a:hover::after {
  width: 100%;
}

.header__burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  line-height: 0;
}

.header__burger img {
  width: 30px;
  height: 20px;
}

.footer {
  background: var(--blue);
  border-top: 1px solid var(--white);
  padding: 39px 40px;
  position: relative;
  overflow: hidden;
  min-height: 236px;
}

.footer__decoration {
  position: absolute;
  left: 40%;
  top: -1px;
  width: 206px;
  height: 236px;
  object-fit: cover;
  pointer-events: none;
  z-index: 0;
}

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

.footer__row1 {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 30px;
  font-weight: 700;
  font-variation-settings: var(--fvs);
  line-height: 1;
}

.footer__logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.footer__right1 {
  display: flex;
  align-items: center;
  gap: 80px;
}

.footer__contact {
  width: 249px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 16px;
  line-height: 1.5;
}

.footer__links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
}

.footer__links a {
  font-size: 18px;
  line-height: 1.5;
}

.footer__links a:hover {
  text-decoration: underline;
}

.footer__row2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__copyright {
  font-size: 14px;
  line-height: 1.5;
  white-space: nowrap;
}

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

.footer__social a {
  display: block;
  width: 57px;
  height: 57px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.footer__social a:hover {
  transform: scale(1.15);
}

.footer__social a img {
  width: 57px;
  height: 57px;
}

.btn {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  border-radius: 10px;
  padding: 20px 60px;
  font-size: 18px;
  font-weight: 700;
  font-family: var(--font);
  font-variation-settings: var(--fvs);
  text-align: center;
  cursor: pointer;
  line-height: 1;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.btn:hover {
  transform: scale(1.05);
  filter: brightness(1.12);
}

.btn--purple {
  background: var(--purple);
}

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

.star--mobile {
  display: none;
}

.section {
  position: relative;
  overflow: hidden;
}

.hero {
  background: var(--purple);
  padding: 60px 19px;
  position: relative;
  overflow: hidden;
}

.hero__inner {
  max-width: 1162px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 214px;
}

.hero__title {
  width: 100%;
  font-size: 150px;
  font-weight: 900;
  font-variation-settings: var(--fvs);
  line-height: 1;
  text-transform: uppercase;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero__img {
  position: absolute;
  left: 50px;
  top: 153px;
  width: 845px;
  height: 550px;
  object-fit: contain;
  pointer-events: none;
  z-index: 0;
}

.hero__bottom {
  width: 1100px;
  display: flex;
  flex-direction: row-reverse; 
  align-items: flex-end;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.hero__body {
  width: 238px;
  font-size: 18px;
  line-height: 1.6;
  font-weight: 400;
  text-align: justify;
}

.about {
  background: var(--blue);
  padding: 60px 50px;
  position: relative;
  overflow: hidden;
}

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

.about__heading {
  font-size: 60px;
  font-weight: 800;
  font-variation-settings: var(--fvs);
  line-height: 1;
  text-transform: uppercase;
}

.about__row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.about__image {
  flex-shrink: 0;
  width: 520px;
}

.about__image img {
  width: 520px;
  height: 457px;
  object-fit: cover;
  border-radius: 10px;
}

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

.about__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 18px;
  line-height: 1.6;
  font-weight: 400;
}

.games {
  background: var(--purple);
  padding: 60px 50px;
  position: relative;
  overflow: hidden;
}

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

.games__top {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.games__heading {
  font-size: 60px;
  font-weight: 800;
  font-variation-settings: var(--fvs);
  line-height: 1.1;
}

.games__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 18px;
  line-height: 1.6;
  font-weight: 400;
}

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

.why {
  background: var(--blue);
  padding: 60px 50px;
  position: relative;
  overflow: hidden;
}

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

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

.why__heading {
  font-size: 60px;
  font-weight: 800;
  font-variation-settings: var(--fvs);
  line-height: 1.1;
}

.why__intro {
  font-size: 18px;
  line-height: 1.6;
  font-weight: 400;
}

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

.why__card {
  background: var(--purple);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.25s ease;
}

.why__card:hover {
  transform: translateY(-6px);
}

.why__card-title {
  font-size: 22px;
  font-weight: 700;
  font-variation-settings: var(--fvs);
  line-height: 1.2;
}

.why__card-text {
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
}

.advertise {
  background: var(--purple);
  padding: 60px 50px;
  position: relative;
  overflow: hidden;
}

.advertise__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.advertise__content {
  width: 560px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.advertise__heading {
  font-size: 60px;
  font-weight: 800;
  font-variation-settings: var(--fvs);
  line-height: 1.1;
}

.advertise__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 18px;
  line-height: 1.6;
  font-weight: 400;
}

.advertise__image {
  flex: 1;
}

.advertise__image img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

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

.catalog-hero__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.catalog-hero__text-block {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.catalog-hero__heading {
  font-size: 60px;
  font-weight: 800;
  font-variation-settings: var(--fvs);
  line-height: 1.2;
  text-transform: uppercase;
}

.catalog-hero__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 18px;
  line-height: 1.6;
  font-weight: 400;
}

.catalog-mosaic {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin: 0 auto;
}

.catalog-mosaic__left {
  flex-shrink: 0;
  width: 203px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.catalog-mosaic__left a {
  display: block;
  line-height: 0;
}

.catalog-mosaic__left img {
  width: 203px;
  height: 203px;
  object-fit: cover;
}

.catalog-mosaic__right {
  flex-shrink: 0;
  width: 426px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.catalog-mosaic__large {
  display: block;
  line-height: 0;
}

.catalog-mosaic__large img {
  width: 426px;
  height: 426px;
  object-fit: cover;
}

.catalog-mosaic__bottom {
  display: flex;
  gap: 20px;
}

.catalog-mosaic__bottom a {
  display: block;
  line-height: 0;
}

.catalog-mosaic__bottom img {
  width: 203px;
  height: 203px;
  object-fit: cover;
}

.game-page {
  background: var(--blue);
  padding: 60px 50px;
  position: relative;
  overflow: hidden;
}

.game-page__inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.game-page__title {
  font-size: 60px;
  font-weight: 800;
  font-variation-settings: var(--fvs);
  line-height: 1.2;
  text-transform: uppercase;
  text-align: center;
  width: 100%;
}

.game-page__row {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  width: 100%;
}

.game-page__hero-img {
  flex-shrink: 0;
  width: 200px;
  height: 200px;
  object-fit: cover;
}

.game-page__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.game-page__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  text-align: justify;
}

.game-page__btn {
  background: var(--purple);
  color: var(--white);
  border-radius: 10px;
  padding: 20px 60px;
  font-size: 18px;
  font-weight: 600;
  font-family: var(--font);
  font-variation-settings: var(--fvs);
  text-transform: uppercase;
  display: inline-block;
  align-self: flex-start;
}

.game-page__screenshots {
  display: flex;
  gap: 20px;
  width: 100%;
}

.game-page__screenshot {
  flex: 1;
  min-width: 0;
  width: 0;
  object-fit: cover;
}

.inner-page {
  background: var(--purple);
  padding: 60px 50px;
  position: relative;
  overflow: hidden;
}

.inner-page__inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.inner-page__heading {
  font-size: 60px;
  font-weight: 800;
  font-variation-settings: var(--fvs);
  line-height: 1.1;
  text-transform: uppercase;
}

.inner-page__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 18px;
  line-height: 1.6;
  font-weight: 400;
}

.inner-page__text h2 {
  font-size: 22px;
  font-weight: 700;
  font-variation-settings: var(--fvs);
  line-height: 1.3;
  margin-top: 8px;
}

.inner-page__text ul {
  padding-left: 27px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.inner-page__text strong {
  font-weight: 700;
  display: block;
  margin-bottom: 2px;
}

@media (max-width: 768px) {
  
  .header__inner {
    padding: 13px 20px;
  }

  .header__nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--blue);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--white);
    z-index: 99;
  }

  .header__nav.is-open {
    display: flex;
  }

  .header__nav a {
    padding: 16px 20px;
    font-size: 18px;
    border-top: 1px solid rgba(255,255,255,0.2);
    width: 100%;
  }

  .header__burger {
    display: block;
  }

  
  .btn {
    padding: 16px 40px;
    font-size: 18px;
    text-align: center;
    display: block;
    width: 100%;
  }

  
  .star--desktop {
    display: none;
  }

  .star--mobile {
    display: block;
  }

  
  .hero {
    padding: 40px 20px;
  }

  .hero__inner {
    gap: 0;
    align-items: stretch;
  }

  .hero__title {
    font-size: 50px;
    text-align: left;
    margin-bottom: 20px;
  }

  
  .hero__img {
    position: static;
    width: 100%;
    max-width: 390px;
    height: 254px;
    object-fit: contain;
    margin: 0 auto 20px;
  }

  
  .hero__bottom {
    flex-direction: column;
    width: 100%;
    gap: 20px;
    align-items: stretch;
  }

  .hero__body {
    width: 100%;
    text-align: left;
  }

  
  .about {
    padding: 40px 20px;
  }

  .about__inner {
    gap: 16px;
  }

  .about__heading {
    font-size: 32px;
  }

  .about__row {
    flex-direction: column;
    gap: 16px;
  }

  .about__image {
    width: 100%;
  }

  .about__image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
  }

  .about__content {
    width: 100%;
  }

  .about__text {
    font-size: 18px;
  }

  
  .games {
    padding: 40px 20px;
  }

  .games__top {
    align-items: stretch;
  }

  .games__heading {
    font-size: 28px;
  }

  .games__banner {
    height: 300px;
  }

  
  .why {
    padding: 40px 20px;
  }

  .why__heading {
    font-size: 28px;
  }

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

  
  .advertise {
    padding: 40px 20px;
  }

  .advertise__inner {
    flex-direction: column;
  }

  .advertise__content {
    width: 100%;
    align-items: stretch;
  }

  .advertise__heading {
    font-size: 28px;
  }

  .advertise__image {
    width: 100%;
    max-width: 390px;
    margin: 0 auto;
  }

  .advertise__image img {
    max-height: 335px;
    object-fit: contain;
  }

  
  .footer {
    padding: 0 20px 40px;
    min-height: unset;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer__decoration {
    position: static;
    width: auto;
    height: auto;
    max-width: 100%;
    transform: none;
    order: -1;
  }

  .footer__inner {
    width: 100%;
    gap: 24px;
  }

  .footer__row1 {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .footer__right1 {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .footer__contact {
    width: 100%;
  }

  .footer__row2 {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer__copyright {
    white-space: normal;
  }

  
  .catalog-hero {
    padding: 40px 20px;
  }

  .catalog-hero__inner {
    gap: 20px;
  }

  .catalog-hero__heading {
    font-size: 28px;
  }

  .catalog-mosaic {
    gap: 12px;
  }

  .catalog-mosaic__left {
    width: 122px;
    gap: 12px;
  }

  .catalog-mosaic__left img {
    width: 122px;
    height: 122px;
  }

  .catalog-mosaic__right {
    width: 256px;
    gap: 12px;
  }

  .catalog-mosaic__large img {
    width: 256px;
    height: 256px;
  }

  .catalog-mosaic__bottom {
    gap: 12px;
  }

  .catalog-mosaic__bottom img {
    width: 122px;
    height: 122px;
  }

  
  .game-page {
    padding: 40px 20px;
  }

  .game-page__inner {
    gap: 20px;
  }

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

  .game-page__row {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .game-page__hero-img {
    width: 200px;
    height: 200px;
  }

  .game-page__content {
    width: 100%;
  }

  .game-page__body {
    text-align: left;
  }

  .game-page__btn {
    align-self: stretch;
    text-align: center;
    padding: 20px 40px;
  }

  .game-page__screenshots {
    gap: 20px;
  }

  .game-page__screenshot {
    height: auto;
    aspect-ratio: 300 / 380;
  }

  
  .inner-page {
    padding: 40px 20px;
  }

  .inner-page__heading {
    font-size: 28px;
  }
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--blue);
  padding: 24px 40px;
  transform: translateY(100%);
  transition: transform 0.35s ease;
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
}

.cookie-banner__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cookie-banner__title {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.cookie-banner__text p {
  font-size: 14px;
  line-height: 1.5;
}

.cookie-banner__text a {
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}

.cookie-banner__btn {
  min-width: 160px;
  background: var(--purple);
}

@media (max-width: 768px) {
  .cookie-banner {
    padding: 20px;
  }

  .cookie-banner__inner {
    flex-direction: column;
    gap: 20px;
  }

  .cookie-banner__actions {
    width: 100%;
    flex-direction: column;
  }

  .cookie-banner__btn {
    width: 100%;
    text-align: center;
  }
}

/* ===== Animations ===== */

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-14px); }
}

.star { animation: float 5s ease-in-out infinite; }
.star:nth-child(2) { animation-duration: 6.5s; animation-delay: -1.5s; }
.star:nth-child(3) { animation-duration: 4.5s; animation-delay: -0.8s; }
.star:nth-child(4) { animation-duration: 7s;   animation-delay: -3s; }

@keyframes hero-in {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.hero__title {
  animation: hero-in 0.8s ease both;
}

.hero__bottom {
  animation: hero-in 0.8s 0.25s ease both;
}

/* Scroll-reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
