/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Anton', sans-serif;
    line-height: 1.6;
    color: rgba(21, 21, 21, 1);
    overflow-x: hidden;
    background: rgba(226, 226, 226, 1);
}

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

.red-text {
    color: rgba(202, 32, 34, 1);
}

/* Header */
.header {
    background: rgba(226, 226, 226, 1);
    padding: 15px 0;
    position: fixed;
    width: 100vw;
    top: 0;
    z-index: 1000;
}

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

.logo {
  font-weight: 400;
  font-size: 26px;
  text-transform: uppercase;
  text-decoration: unset;
  color: inherit;
}

.logo img {
    height: 30px;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    text-decoration: none;
    color: #333;
    font-weight: 400;
    text-transform: uppercase;
    font-size: 14px;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: rgba(202, 32, 34, 1);
}

/* Hero Section */
.hero {
    background: url(/wp-content/themes/joymotiq/assets/hero.webp) no-repeat bottom right;
    background-size: contain;
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
    margin-bottom: 80px;
}

.hero-text {
  max-width: 950px;
  width: 100%;
}

.hero h1 {
    font-size: 160px;
    line-height: 1.1;
    margin-bottom: 30px;
    text-transform: uppercase;
    font-weight: 400;
    z-index: 0;
    position: relative;
}


.hero p {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 30px;
    color: rgba(21, 21, 21, 1);
    max-width: 460px;
    width: 100%;
}

.cta-button {
  display: flex;
  width: max-content;
  max-width: 100%;
  justify-content: center;
    background: radial-gradient(50% 50% at 50% 50%, #FF7F7F 0%, #CA2022 100%);
    color: white;
    border: none;
    padding: 28px 80px;
    font-size: 20px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 15px;
    transition: all 0.3s ease;
    text-decoration: unset;
}

.cta-button:hover {
    background: radial-gradient(50% 50% at 50% 50%, #B61618 0%, #B61618 100%);
}

.hero-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
}

.qr-code {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}

.qr-code img {
    width: 100px;
    height: 100px;
}

/* Story Section */
.story {
    background: rgba(202, 32, 34, 1);
    color: white;
    padding: 80px 0 0;
    position: relative;
}

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

.section-title {
    font-size: 120px;
    line-height: 1;
    margin-bottom: 30px;
    text-transform: uppercase;
    font-weight: 400;
}

.story p {
    font-size: 14px;
    line-height: 1.4;
    max-width: 578px;
    width: 100%;
}


.story-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-width: 40vw;
}

.story-code {
  margin-left: auto;
  max-width: 362px;
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  margin-top: 80px;
}

@media (min-width:769px){
    .story-image img { 
      position: absolute;
      bottom: 0;
      left: 0;
    }
}

@media (max-width:768px){
    .story-image img { 
      max-width: 80vw;
    }
}

/* Categories Section - Updated to match exact design */
.categories {
    padding: 80px 0;
    position: relative;
}

.categories .container {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: flex-end;
}

.categories-main {
  display: flex;
  flex-direction: column;
}

.category-col {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.categories-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
    align-items: center;
    position: relative;
}

.main-character {
    grid-row: 1 / 3;
    grid-column: 2;
    text-align: center;
    z-index: 2;
}

.main-character img {
    width: 100%;
    max-width: 400px;
    height: auto;
}

.category-card {
    background: rgba(21, 21, 21, 1);
    color: white;
    padding: 20px;
    border-radius: 26px;
    position: relative;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    z-index: 2;
}

.category-card::before {
    content: '';
    position: relative;
    width: 30px;
    height: 30px;
    background: white;
    border-radius: 50%;
}

.category-content {
    margin-top: 10px;
}

.category-content h3 {
    font-size: 22px;
    margin-bottom: 15px;
    text-transform: none;
    font-weight: 400;
    line-height: 1.2;
}

.category-content p {
    font-size: 14px;
    line-height: 1.2;
    font-weight: normal;
}

.qr-code-small {
    position: absolute;
    bottom: 80px;
    left: 0;
    z-index: 1;
}

.qr-code-small img {
    width: 208px;
    height: auto;
}



/* Responsive adjustments */
@media (max-width: 1200px) {
    .categories-grid {
        grid-template-columns: 300px 1fr 300px;
        gap: 30px;
    }

}

@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 30px;
 
    }
    
    .main-character {
        grid-row: auto;
        grid-column: 1;
        order: 1;
    }
    
    .category-card:nth-child(1) {
        grid-column: 1;
        grid-row: auto;
        justify-self: stretch;
        order: 2;
    }
    
    .category-card:nth-child(3) {
        grid-column: 1;
        grid-row: auto;
        justify-self: stretch;
        order: 3;
    }
    
    .category-card:nth-child(4) {
        grid-column: 1;
        grid-row: auto;
        justify-self: stretch;
        order: 4;
    }
    
    .category-card:nth-child(5) {
        grid-column: 1;
        grid-row: auto;
        justify-self: stretch;
        order: 5;
    }

}

.mob {
  display: none;
}

@media (max-width: 768px) {
    .categories {
        padding: 60px 0;
    }

    .mob {
      display: flex;
      width: 100%;
      height: auto;
    }

    img.mob {
      object-fit: contain;
      max-width: 580px;
    }
    
    .hero {
        background: url(/wp-content/themes/joymotiq/assets/hero.webp) no-repeat top left;
    background-size: cover;
    }
    
    .categories h2 {

        margin-bottom: 40px;
    }
    
    .category-card {
        padding: 20px;
        min-height: 120px;
    }
    
    .category-content h3 {

        margin-bottom: 12px;
    }

    
    .qr-code-small {
       position: relative;
       bottom: unset;
    }
    .qr-code-small img {
      width: 140px;
    }
}

@media (max-width: 480px) {
    .numbers-text {
      flex-direction: column;
      
      align-items: flex-start !important;
    }
    
    .category-card {
        padding: 15px;
        min-height: 100px;
    }
    
    .category-content h3 {

        margin-bottom: 10px;
    }
}

/* Numbers Section */
.numbers {
    background: rgba(202, 32, 34, 1);
    color: white;
    padding: 80px 0 0;
    position: relative;
}

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

.numbers h2 {
    margin-bottom: 40px;
  z-index: 2;
  position: relative;
}

.stats {
    display: grid;
    gap: 30px;
    padding-bottom: 80px;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat-number {
    font-size: 60px;
    font-weight: 400;
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    
    opacity: 0.9;
}

.numbers-text {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
}

.numbers-text img {
  max-width: 297px;
  width: 100%;
  height: auto;
  object-fit: contain;
}

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

@media (min-width:768px){
    .numbers-image img {
      position: absolute;
      bottom: 0;
      right: 0;
      max-width: 38vw;
      z-index: 0;
    }
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
}

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

.cta-section h2 {
    
    margin-bottom: 30px;

}

.cta-section p {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 40px;
    color: #000;
    
}

.cta-image img {
    width: 100%;
    height: auto;
}

/* Footer */
.footer {
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
    gap: 20px;
}

.footer-logo  {
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-nav {
    display: flex;
    gap: 30px;
}

.footer-nav a {
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    color: #333;
}

.footer-nav a:hover {
    color: rgba(202, 32, 34, 1);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link img {
    width: 28px;
    height: 28px;
    
}


.footer-bottom p {
    font-size: 14px;
    color: rgba(21, 21, 21, 0.5);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 100px;
    }
    
    .section-title {
        font-size: 90px;
    }
    
    
    .main-character {
        grid-row: auto;
        order: -1;
    }
}

@media (max-width: 768px) {
    .header .container {
        gap: 20px;
    }
    
    .nav {
        gap: 20px;
        display: none;
    }
    .hero-content,
    
    
    .cta-content {
        grid-template-columns: 1fr;
        gap: 40px;

    }

    .categories .container {
      grid-template-columns: 1fr;
    }

    .story-content,
    .numbers-content {
      display: flex;
      flex-direction: column-reverse;
      gap: 40px;
    }
    
    .hero h1 {
        font-size: 90px;
    }
    
    .section-title {
        font-size: 80px;
    }
    
    .qr-code {
        display: none;
    }
    
  
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-nav {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero h1 {
        font-size: 80px;
    }
    
    .section-title {
        font-size: 70px;
    }

    .footer-nav {
      flex-direction: column;
      align-items: flex-start;
    }

    
    .nav {
        flex-direction: column;
        gap: 10px;
    }
}

.cta-content--bottom {
  align-items: flex-end;
}

 .games-section {
            background: rgba(202, 32, 34, 1);
            padding: 80px 0;
            position: relative;
            overflow: hidden;
        }

        .games-section::after {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            width: 80px;
            height: 362px;
            background: url(/wp-content/themes/joymotiq/./assets/games/qr.webp) no-repeat  center;
            background-size: contain;
            z-index: 0;
        }

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

        .games-section h2 {
            font-family: 'Anton', sans-serif;
            font-size: 4rem;
            color: white;
            text-transform: uppercase;
            font-weight: 400;
            margin-bottom: 50px;
            line-height: 0.9;
        }

        .games-grid {
            display: grid;
            grid-template-columns: 2fr 1fr 1fr 1fr;
            grid-template-rows: auto auto;
            gap: 20px;
            max-width: 1000px;
            margin-left: auto;
        }

        .game-card {
            perspective: 1000px;
            height: 200px;
            border-radius: 20px;
            position: relative;
            z-index: 2;
        }

        .game-card.large {
            grid-row: 1 / 3;
            height: 420px;
        }

        .card-inner {
            position: relative;
            width: 100%;
            height: 100%;
            text-align: center;
            transition: transform 0.6s;
            transform-style: preserve-3d;
        }

        .game-card:hover .card-inner {
            transform: rotateY(180deg);
        }

        .card-front, .card-back {
            position: absolute;
            width: 100%;
            height: 100%;
            backface-visibility: hidden;
            border-radius: 20px;
          overflow: hidden;
        }

        .card-front {
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
        }

        .card-back {
            background: rgba(21, 21, 21, 1);
            color: white;
            transform: rotateY(180deg);
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            align-items: flex-start;
            padding: 20px;
    
        }

        .card-back h3 {
            font-family: 'Anton', sans-serif;
            font-size: 1.5rem;
            text-transform: uppercase;
            margin-bottom: 15px;
            color: white;
            text-align: left;
            line-height: 1.2;
        }

  

        /* Game card backgrounds */
        .game-1 .card-front {
            background-image: url(/wp-content/themes/joymotiq/assets/games/1.webp);
        }

        .game-2 .card-front {
            background-image: url(/wp-content/themes/joymotiq/assets/games/2.webp);
        }

        .game-3 .card-front {
            background-image: url(/wp-content/themes/joymotiq/assets/games/3.webp);
        }

        .game-4 .card-front {
            background-image: url(/wp-content/themes/joymotiq/assets/games/4.webp);
        }

        .game-5 .card-front {
            background-image: url(/wp-content/themes/joymotiq/assets/games/5.webp);
        }

        .game-6 .card-front {
            background-image: url(/wp-content/themes/joymotiq/assets/games/6.webp);
        }

        .game-7 .card-front {
            background-image: url(/wp-content/themes/joymotiq/assets/games/7.webp);
        }

        .qr-code-games {
            position: absolute;
            bottom: 60px;
            left: 0;
            z-index: 10;
        }

        .qr-code-games img {
            width: 170px;
            height: auto;
           object-fit: contain;
        }

        /* Responsive Design */
        @media (max-width: 1024px) {
            .games-section h2 {
                font-size: 3rem;
            }
            .qr-code-games {
              position: relative;
              bottom: 0;
              margin-top: 40px;
              margin-left: -20px;
            }

            .games-grid {
                grid-template-columns: 1fr 1fr;
                gap: 15px;
            }

            .game-card.large {
                grid-row: auto;
        
            }

            .game-card {
                height: 180px;
            }
        }

        @media (max-width: 768px) {
            .games-section {
                padding: 60px 0;
            }

            .games-grid {
                grid-template-columns: 1fr 1fr;
                grid-template-rows: auto auto auto auto;
                gap: 10px;
                max-width: none;
            }

            .game-card.large {
                grid-column: 1 / 3;
                grid-row: 1;
 
            }

            .game-card {
                height: auto;
                aspect-ratio: 1/1;
                width: 100%;
            }



            .games-section h2 {
                font-size: 2.5rem;
                margin-bottom: 30px;
            }

       
           

            .card-back h3 {
                font-size: 1.2rem;
                margin-bottom: 10px;
            }

            .card-back p {
                font-size: 12px;
            }

            .qr-code-games {
                bottom: 20px;
                left: 20px;
            }

            .qr-code-games img {
                width: 80px;
                height: 80px;
            }
        }

        @media (max-width: 480px) {
            .games-section h2 {
                font-size: 2rem;
            }

            .games-grid {
                grid-template-columns: 1fr;
                gap: 10px;
            }


            .card-back {
                padding: 15px;
            }

            .card-back h3 {
                font-size: 1rem;
                margin-bottom: 8px;
            }

            .card-back p {
                font-size: 11px;
            }
        }

          /* Game Hero Section */
        .game-hero {
            margin-top: 60px;
            padding: 60px 0;
            text-align: center;
        }

        .game-banner {
            max-width: 600px;
            margin: 0 auto 40px;
            border-radius: 20px;
            overflow: hidden;
        }

        .game-banner img {
            width: 100%;
            height: auto;
        }

        .game-hero h1 {
     
            margin-bottom: 20px;
       
        }

        .game-hero .subtitle {
   
            font-weight: 400;
            font-size: 24px;
            line-height: 1.1;
       
            text-align: center;

            margin-bottom: 30px;
           
        }

        .game-hero .description {
            font-size: 14px;
     
            line-height: 1.4;
            margin-bottom: 40px;
           
            max-width: 900px;
            margin-left: auto;
            margin-right: auto;
        }

        

        /* About Game Section */
        .about-game {
            background: rgba(202, 32, 34, 1);
            color: white;
            padding: 80px 0;
            position: relative;
        }

        .cta-button--center {
          margin-left: auto;
          margin-right: auto;
        }

         .cta-button.outline {
            background: radial-gradient(50% 50% at 50% 50%, #FF7F7F 0%, #CA2022 100%);
            border: 2px solid white;
            color: white;
        }


        .about-text {
          max-width: 920px;
        }

        .about-content {
            display: flex;
            flex-direction: column;
        }

        .advantages-block {
          display: grid;
          grid-template-columns: 1fr 1fr;
          gap: 40px;
          margin-bottom: 40px;
   
        }

        .about-game h2 {
           
            margin-bottom: 40px;
           
        }

        .about-game .description {
            font-size: 14px;
            line-height: 1.4;
            margin-bottom: 40px;
            z-index: 2;
            position: relative;
           
        }

        .about-game h3 {
            font-size: 1.8rem;
            margin-bottom: 30px;
            text-transform: uppercase;
            font-weight: 400;
        }

        .advantages-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            margin-bottom: 40px;
        }

        .advantage-card {
            background: rgba(21, 21, 21, 1);
            padding: 20px;
            border-radius: 26px;
            position: relative;
        }

        .advantage-card::before {
            content: '';
            display: block;
            width: 30px;
            height: 30px;
            background: white;
            border-radius: 50%;
        }

        .advantage-card h4 {
            font-size: 1.1rem;
            margin-bottom: 10px;
            margin-top: 10px;
            font-weight: 400;
            line-height: 1.3;
        }

        .advantage-card p {
            font-size: 14px;
            color: #ccc;
           
            line-height: 1.4;
        }

        .game-image {
            text-align: center;
        }

        .game-image img {
            width: 100%;
            height: auto;
            aspect-ratio: 502/380;
            object-fit: cover;
            border-radius: 15px;
        }

        .about-game::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 362px;
    background: url(/wp-content/themes/joymotiq/./assets/games/qr.webp) no-repeat center;
    background-size: contain;
    z-index: 0;
}


           @media (max-width: 1024px) {
  

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

        @media (max-width: 768px) {

          .advantages-block {
            grid-template-columns: 1fr;
          }

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


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

           

        }

        @media (max-width: 480px) {
   

            .advantage-card {
                padding: 20px;
            }

        }

        .about-content--row {
  display: flex;
  flex-direction: row;
  gap: 30px;
  align-items: flex-end;
}

.game-image--absolute {
  max-width: 40vw;
  flex-shrink: 0;
  
}

.game-image--left {
margin-left: calc((100vw - 1200px) / 2 * -1);
}

.game-image--right {
margin-right: calc((100vw - 1200px) / 2 * -1);
}

.game-image--absolute img {
  object-fit: contain;
  aspect-ratio: unset;
}

@media (max-width:1200px){
    .game-image--left {
  margin-left: -20px;
}

.game-image--right {
  margin-right: -20px;
}
}

.description li {
  list-style-position: inside;
}

@media (max-width:768px){
    .about-content--row {
      flex-direction: column;
      align-items: flex-start;
    }

    .game-image--absolute {
      max-width: 80vw;
    }
}

.about-game--without::after {
  display: none;
}

        .game-content {
            display: grid;
            grid-template-columns: 1fr 400px 1fr;
            gap: 40px;
            align-items: flex-end;
            position: relative;
        }

        .about-game--center {
          display: flex;
          flex-direction: column;
          align-items: center;
        }

        .about-game--center h2,
        .about-game--center .game-description {
          text-align: center;
        }

        .about-game--center .game-description {
          margin-bottom: 40px;
        }

        .features-left,
        .features-right {
            display: flex;
            flex-direction: column;
            gap: 40px;
        }

        .feature-item h3 {
            font-size: 2.2rem;
            margin-bottom: 15px;
            text-transform: uppercase;
            font-weight: 400;
            line-height: 1.1;
        }

        .feature-item p {
            font-size: 16px;
            
            line-height: 1.4;
            opacity: 0.9;
        }



        .achievement-section {
        
            margin-top: auto;
        }

        .achievement-section h3 {
            font-size: 2rem;
            margin-bottom: 30px;
            text-transform: uppercase;
            font-weight: 400;
            line-height: 1.2;
        }

       
        .qr-code-game {
            position: absolute;
            top: 140px;
            right: 0;
            width: 178px;
            z-index: 10;
        }


        /* Responsive Design */
        @media (max-width: 1024px) {
            .about-game h2 {
                font-size: 3rem;
            }

            .game-content {
                grid-template-columns: 1fr;
                gap: 40px;
                text-align: center;
            }

            .features-left,
            .features-right {
                order: 2;
            }

            .game-image {
                order: 1;
            }

            .achievement-section {
                order: 3;
            }

            .qr-code-game {
                display: none;
            }
        }

        @media (max-width: 768px) {
      

            .game-description {
                font-size: 14px;
                margin-bottom: 40px;
            }

            .feature-item h3 {
                font-size: 1.8rem;
                margin-bottom: 10px;
            }

            .feature-item p {
                font-size: 14px;
            }

             .achievement-section {
 
                text-align: left;
            }


            .cta-button {
                padding: 12px 30px;
                font-size: 16px;
            }

            .about-game::after {
                width: 60px;
            }

            .qr-code-game {
                bottom: 20px;
                right: 80px;
            }

            .qr-code-game img {
                width: 80px;
                height: 80px;
            }

              .feature-item * {
              text-align: left;
            }
        }

        @media (max-width: 480px) {
          
            .about-game h2 {
                font-size: 2rem;
            }

            .feature-item h3 {
                font-size: 1.5rem;
            }

           
            

            .features-left,
            .features-right {
                gap: 30px;
                align-items: flex-start;
            }

          

            .qr-code-game {
                display: none;
            }
        }

        .about-game--center .about-text {
          margin-left: auto;
          margin-right: auto;
        }

        .about-game--center .about-text .description {
          text-align: center;
        }

        .policy-content {
          margin-top: 40px;
        }

        .policy {
          margin-top: 80px;
        }

        .policy-content li {
          list-style-position: inside;
        }

        .policy-content li + ul li {
          margin-left: 16px;
        }