:root {
    --primary-color: rgba(36, 0, 87, 1);
    --secondary-color: #FF6B35;
    --accent-color: #FFD700;
    --text-white: #FFFFFF;
    --text-light: rgba(255, 255, 255, 1);
    --gradient-bg: linear-gradient(135deg, rgba(36, 0, 87, 1), rgba(58, 12, 120, 1));
    --section-spacing: 5rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Oswald', sans-serif;
    background: var(--primary-color);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
  flex: 1 1 auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(36, 0, 87, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 15px 0;
}

.header.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: unset;
}

.nav-logo {
    width: 30px;
    height: 30px;
}

.nav-brand-text {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-white);
    transition: all 0.3s ease;
}


.nav-brand:hover .nav-brand-text {
  color: var(--secondary-color);
}


.nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
    padding: 15px 30px;
    border-radius: 60px;
    background: #fff;
}

.nav-link {
    color: rgba(36, 0, 87, 1);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--secondary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-white);
    transition: all 0.3s ease;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(90deg, #FEA712 0%, #D3501C 100%);
    color: var(--text-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    width: max-content;
}

.btn:hover {
    background:  linear-gradient(90deg, #FEA712 0%, #D3501C 100%);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

.btn-arrow {
    transition: transform 0.3s ease;
}

.btn:hover .btn-arrow {
    transform: translateX(5px);
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: url(/wp-content/themes/ludonio/assets/images/hero-bg.webp) no-repeat center;
    background-size: contain;
    position: relative;
    overflow: hidden;
    margin-top: 100px;
}


.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-block {
  display: flex;
  gap: 20px;
  align-items: flex-end;
}

.hero-title {
    margin-top: 20px;
    margin-bottom: 1.5rem;
    font-weight: 700;
    font-size: 120px;
    line-height: 110%;
    text-transform: uppercase;
    text-align: left;

}

.hero-description {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.1;
}

.hero-image {
    text-align: center;
    position: relative;
    width: 148px;
    flex-shrink: 0;
}


.hero-characters {
    width: 100%;
    margin-top: 10px;
    position: relative;
    z-index: 2;
}



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

/* Story Section */
.story {
    padding: var(--section-spacing) 0;
    background: url(/wp-content/themes/ludonio/assets/images/hero-bg.webp) no-repeat;
    position: relative;
    background-size: contain;
    background-position:  -20vw center;
}

.story-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.story-character {
  width: 40vw;
  flex-shrink: 0;
  height: auto;
  object-fit: contain;
}

.story-text {
  max-width: 420px;
  width: 100%;
  text-align: left;
}

.section-title {
  font-weight: 700;
  font-size: 100px;
  line-height: 110%;
  text-transform: uppercase;
}

.section-title--center {
  text-align: center;
}

.story .section-title {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 30px;
  padding-left: 16px;
  padding-right: 16px;
}

.story-description {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.1;
}

.story-points {
    margin-bottom: 16px;
}

.story-point {
    margin-bottom: 1.5rem;
}

.story-point h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-light);
}

.story-point p {
    color: var(--text-light);
    line-height: 1.1;
     font-size: 14px;
}



.story-planet {
    max-width: 266px;
    height: auto;
    margin-top: auto;
  
    margin-left: auto;
    width: 100%;
}

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


/* Advantages Section */
.advantages {
    padding: var(--section-spacing) 0;
    background: url(/wp-content/themes/ludonio/assets/images/advantages-bg.webp) no-repeat bottom;
    background-size: contain;
    position: relative;
}

.advantages-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: flex-end;
    margin-bottom: 3rem;
    margin-top: 30px;
}

.advantage-item {
    padding: 20px;
    border-radius: 22px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.advantage-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.advantage-item h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.advantage-item p {
    color: var(--text-light);
    line-height: 1.6;
}

.advantages-cta {
    text-align: center;
}

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

.advantages-row {
  display: flex;
  gap: 20px;
  height: 100%;
}

.advantages-row img {
  width: 170px;
  height: 170px;
  flex-shrink: 0;
  margin-top: auto;
}

.advantages .btn {
  width: max-content;
  max-width: 100%;
  margin-top: auto;
}

/* FAQ Section */
.faq {
    padding: var(--section-spacing) 0;
    background: url(/wp-content/themes/ludonio/assets/images/hero-bg.webp) no-repeat center;
    background-size: contain;
    position: relative;
}

.faq .section-title {
  margin-bottom: 30px;
}

.faq-content {
  display: grid;
  grid-template-columns: 272px 1fr 272px;
  gap: 20px;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.2rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
    position: relative;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
    color: var(--text-light);
    line-height: 1.6;
}

.faq-decoration {
  width: 100%;
  max-width: 272px;
}

.faq-rocket {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.faq-decoration--bottom {
  margin-top: auto;
}

/* CTA Section */
.cta {
    padding: var(--section-spacing) 0;
    position: relative;
}

.catalog {
  padding: var(--section-spacing) 0;
    position: relative;
    background: url(/wp-content/themes/ludonio/assets/images/advantages-bg.webp) no-repeat center;
    background-size: cover;
    margin-bottom: var(--section-spacing);
}
.games-hero {
  margin-bottom: var(--section-spacing);

}

.cta-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-items: flex-end;
}

.cta .section-title {
    margin-bottom: 30px;
}

.cta-description {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.1;
}

.cta-image {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 50vw;
}

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

.btn-arrow {
  margin-top: -4px;
}

/* Footer */
.footer {
    padding: 2rem 0;
  
   
}

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
     text-decoration: none;
}

.footer-logo {
    width: 30px;
    height: 30px;
}

.footer-brand-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-white);
   
}

.footer-nav {
    display: flex;
    gap: 2rem;
    padding: 15px 30px;
    border-radius: 60px;
    background: #fff;
}

.footer-link {
    color: rgba(36, 0, 87, 1);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--secondary-color);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    text-align: center;
}

.footer-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.footer-socials img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

nav.container {
  gap: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero {
    margin-top: 150px;
  }
    .hero-title {
        font-size: 60px;
    }
    
    .section-title {
        font-size: 54px;
    }

    .hero-content {
        gap: 2rem;
    }
    
    .story-content {
        gap: 2rem;
    }
    
    .cta-content {
        gap: 2rem;
    }

    nav.container {
      flex-direction: column;
    }
}

@media (max-width: 768px) {
  .advantages-row {
    flex-direction: column;
  }

  .faq-decoration--bottom {
    margin-top: 0;
  }

  .faq-decoration--right {
    margin-left: auto;
  }

    .hero-content {
        grid-template-columns: 1fr;
  
        gap: 2rem;
    }

        .story-planet {
        max-width: 150px;
    }

    .faq-content {
      grid-template-columns: 1fr;
    }

    .story-text {
      padding-left: 16px;
      padding-right: 16px;
    }

    .story-character {
    height: auto;
    width: 100vw;
    max-width: 575px;
}

    .hero-characters img {
      height: 248px;
      object-fit: cover;
      object-position: center;
      margin-top: 30px;
    }
    
    
    .story-content {
        grid-template-columns: 1fr;
    }

    .faq-list {
      padding-left: 16px;
      padding-right: 16px;
    }
    
    .cta-content {
        grid-template-columns: 1fr;
    }
    
    .hero-characters {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .character-item {
        width: 60px;
        height: 60px;
    }
    
    .character-item img {
        width: 40px;
        height: 40px;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    :root {
        --section-spacing: 3rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }

    .footer-nav {
      flex-direction: column;
      gap: 20px;
      width: 100%;
    }
    
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .advantage-item {
        padding: 1.5rem;
    }
    
    .faq-question {
        padding: 1rem;
        font-size: 1.1rem;
    }
    
    .hero-characters {
        gap: 0.3rem;
    }
    
    .character-item {
        width: 50px;
        height: 50px;
    }
    
    .character-item img {
        width: 35px;
        height: 35px;
    }
  
    .cta-decorations {
        display: none;
    }
}




/* Simple SVG-based approach */
.dashed-frame-svg {
    position: relative;
    border-radius: 22px;
}

.dashed-frame-svg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' stroke='rgba(255,255,255,0.4)' stroke-width='2' stroke-dasharray='15,10' stroke-dashoffset='0' stroke-linecap='round'/%3e%3c/svg%3e");
    border-radius: 22px;
}


html {
  overflow-x: hidden;
}


        .games-grid {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            grid-template-rows: repeat(2, 200px);
            gap: 20px;
        }

        .game-card {
            position: relative;
            border-radius: 20px;
            overflow: hidden;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
        }

        /* Розміщення карточок як на макеті */
        .card-scary { grid-area: 1 / 1 / 2 / 2; }
        .card-pig { grid-area: 1 / 2 / 2 / 3; }
        .card-burgeria { grid-area: 1 / 3 / 3 / 5; }
        .card-carrot { grid-area: 1 / 5 / 2 / 6; }
        .card-dentist { grid-area: 2 / 1 / 3 / 2; }
        .card-sushi { grid-area: 2 / 2 / 3 / 3; }
        .card-tower { grid-area: 2 / 5 / 3 / 6; }

        .card-front {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 60px;
            transition: opacity 0.3s ease;
        }

        .card-back {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(254, 167, 18, 1);
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.3s ease;
            font-weight: bold;
            font-size: 18px;
            color: rgba(36, 0, 87, 1);
            text-align: center;
            padding: 20px;
            text-transform: uppercase;
        }

        .game-card:hover .card-front {
            opacity: 0;
        }

        .game-card:hover .card-back {
            opacity: 1;
        }

     

        /* Адаптивність */
        @media (max-width: 1024px) {
            .games-grid {
                grid-template-columns: repeat(3, 1fr);
                grid-template-rows: repeat(3, 180px);
            }

            .card-scary { grid-area: 1 / 1 / 2 / 2; }
            .card-pig { grid-area: 1 / 2 / 2 / 3; }
            .card-burgeria { grid-area: 1 / 3 / 3 / 4; }
            .card-carrot { grid-area: 2 / 1 / 3 / 2; }
            .card-dentist { grid-area: 2 / 2 / 3 / 3; }
            .card-sushi { grid-area: 3 / 1 / 4 / 2; }
            .card-tower { grid-area: 3 / 2 / 4 / 4; }
        }

        @media (max-width: 768px) {
            .games-grid {
                grid-template-columns: repeat(2, 1fr);
                grid-template-rows: repeat(4, 150px);
                gap: 15px;
            }

            .card-scary { grid-area: 1 / 1 / 2 / 2; }
            .card-pig { grid-area: 1 / 2 / 2 / 3; }
            .card-burgeria { grid-area: 2 / 1 / 4 / 3; }
            .card-carrot { grid-area: 4 / 1 / 5 / 2; }
            .card-dentist { grid-area: 4 / 2 / 5 / 3; }
            .card-sushi { grid-area: 5 / 1 / 6 / 2; }
            .card-tower { grid-area: 5 / 2 / 6 / 3; }

            .card-front {
                font-size: 40px;
            }

            .card-back {
                font-size: 14px;
                padding: 15px;
            }
        }

        @media (max-width: 480px) {
          .header {
            position: relative !important;
          }
            .games-grid {
                grid-template-columns: 1fr;
                grid-template-rows: unset;
                gap: 10px;
            }
            .game-card {
              height: auto;
              aspect-ratio: 1/1;
            }
            .hero {
              margin-top: 40px;
            }

            .card-scary { grid-area: unset; }
            .card-pig { grid-area: unset; }
            .card-burgeria { grid-area: unset; }
            .card-carrot { grid-area: unset; }
            .card-dentist { grid-area: unset; }
            .card-sushi { grid-area: unset; }
            .card-tower { grid-area: unset; }

            .card-front {
                font-size: 30px;
            }

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

            .container {
                padding-left: 16px;
                padding-right: 16px;
            }
        }



        .games-img img {
          
          width: 100%;
          height: 100%;
          object-fit: contain;
          z-index: 0;
        }

        .games-content {
          max-width: 1080px;
          width: 100%;
          display: flex;
          flex-direction: column;
          gap: 30px;
          z-index: 2;
          position: relative;
        }

        .games-content p {
          max-width: 660px;
          width: 100%;
        }

        .card-front img {
          width: 100%;
          height: 100%;
          object-fit: cover;
          object-position: center;
        }

        @media (max-width:768px){
                       .games-hero {
              gap: 30px;
              display: flex;
              flex-direction: column;
             }
        }

        .games-content h2 {
font-weight: 700;
font-size: 28px;
        }

        .game-image {
          max-width: 25vw;
        }

        .game-detail {
          display: flex;
          flex-direction: column;
          padding: var(--section-spacing) 0;
}
.game-detail .container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.game-content {
  display: flex;
  gap: 30px;
}
.game-descript {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 374px;
  width: 100%;
  flex-shrink: 0;
}

.game-descript--max {
  max-width: 646px;
}

.game-img img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  border-radius: 30px;
  object-position: center;
}


.game-detail .advantage-item h3 {
  margin-bottom: 0;
}

@media (max-width:768px){
   .game-content {
      flex-direction: column;
   }
   .game-descript { 
      max-width: 100%;
   }
   .game-image {
    max-width: 100vw;
   }
}

.game-descript span {
  font-weight: 700;
  font-size: 24px;
}

@media (min-width:768px){
    .advantages-col--2 {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 20px;
    }

             .games-img img {
position: absolute;
          bottom: 0;
          right: 0;
          max-width: 30vw;
             }

  .game-content--grid {
    display: grid;
    grid-template-columns: 308px 1fr 308px;
    align-items: center;
  }

  .game-content--row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: flex-end;
  }

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

  .game-content--row .game-descript {
    max-width: 100%;
    gap: 16px;
  }

  .game-content--row .btn,
  .game-content--col .btn{
    margin-top: 20px;
  }

  .game-content--col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 800px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
.game-content--col .game-descript {
  max-width: 100%;
    gap: 16px;
    align-items: center;
}

.game-content--col .game-descript * {
  text-align: center;
}

.game-content--col .hero-description {
  display: flex;
  flex-direction: column;
  align-items: center;
}
}



.game-img--3 img {
  object-fit: contain;
  height: auto;
}

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

.policy-content {
  margin-top: 30px;
  margin-bottom: 60px;
}

.policy-content a {
  color: inherit;
  text-decoration: unset;
}