@font-face{
  font-family: "Montserrat";
  src: url("/fonts/montserrat-v31-cyrillic_latin-regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face{
  font-family: "Montserrat";
  src: url("/fonts/montserrat-v31-cyrillic_latin-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face{
  font-family: "Montserrat";
  src: url("/fonts/montserrat-v31-cyrillic_latin-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face{
  font-family: "Montserrat";
  src: url("/fonts/montserrat-v31-cyrillic_latin-800.woff2") format("woff2");
  font-weight: 800; font-style: normal; font-display: swap;
}
html, body { font-family: "Montserrat", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Noto Sans", sans-serif; }


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Montserrat;
    scroll-behavior: smooth;

}

h1 {
    font-size: 70px;
    font-weight: 700;
    color: #000000;
}


header.game {
    height: 167px;

    .right, .languages, .logo {
        display: none;
    }
    background-repeat: no-repeat;
    background-size: cover;


    @media screen and (max-width: 950px) {
        justify-content: center;
        align-items: center;
        
    }
}


header.vampires {
    background-image: url('/imgs/headervampires.png');
}

header.minecraft {
    background-image: url('/imgs/Rectangle\ 19.png');
}

header.zona {
    background-image: url('/imgs/Rectangle\ 19\ \(1\).png');
}

header.halloween {
    background-image: url('/imgs/Rectangle\ 19\ \(2\).png');
}

header {
    background: linear-gradient(89.22deg, #B40000 -24.19%, #4E0000 116.93%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    padding: 0 20px;


    .gamelogo {
        margin-right: 180px;
        transform: translateY(-20px);

        @media screen and (max-width: 950px) {
            display: none;
            
        }

    }

    .name {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        flex-direction: column;
        color: #FFFFFF;

        p {
            text-align: left;
            width: 100%;

            &:first-child {
                font-size: 46px;
                font-weight: 700;
                
                        }
                
                        &:last-child {
                font-size: 33px;
                font-weight: 700;
                
                        }
        }

      
    }

    .languages {
        margin-top: 25px;
        @media screen and (max-width: 900px) {
            margin:0;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column;
        }
    }


    .left {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: row;
        gap:5px;

        a {
            font-size: 20px;
            font-weight: 500;
            color:  #F0F0F0;
            text-decoration: none;


        }
    }


    

    .right {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: row;
        gap:34px;

        a {
            color:  #F0F0F0;
            text-decoration: none;
            font-size: 20px;
            font-weight: 700;
        }

        @media screen and (max-width: 900px) {
            display: none;
        }
    }

   
}


.hero.game {
    @media screen and (max-width: 950px) {
        flex-direction: column-reverse;

        button {
            width: 100% !important;
            height: 87px !important;
        }

    }

   

    .right {
        margin-right: 80px;
        &::after {
           display: none;
        }


        @media screen and (max-width: 1500px) {
            margin-right: 40px;
        }

        @media screen and (max-width: 950px) {
            display: block !important;
        }
    }

}

.hero {
    margin-top:30px;

    padding: 0px 20px 54px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;

    .left {
        max-width: 922px;
    }

    .summary {
        font-size: 46px;
        font-weight: 500;
        color: #161616;
    }

    .features {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        flex-direction: row;
        gap:100px;
        margin-bottom: 35px;
        margin-top:30px;
    }

    .description {
        margin-top:15px;
        font-size: 30px;
        font-weight: 500;
        color: #161616;
        margin-bottom: 35px;
    }


    .right {
        position: relative;
        &::after {
            content: " ";
            position: absolute;
            transform: translate3d(-14px, -14px, 0);
            border: 5px solid #FFB800;
            box-sizing: border-box;
            width: 500px;
            height: 624px;
            left:0px;
            border-radius: 40px;
            z-index: -1;
            top:0;

            

        }

        @media screen and (max-width: 950px) {
            display: none;
            
        }
      
    }


    button {
        width:100%;
        height: 87px;

        @media screen and (max-width: 1500px) {
            width: 360px;
            
        }


        @media screen and (max-width: 950px) {
            height: 55px;
            
        }
    }

 
}

.slideshow {
    position: relative;
    width: 500px;
    height: 624px;
    overflow: hidden;
    border-radius: 40px;
}

.slideshow img {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: none;
}

.slideshow img.current {
    display: block;
    transform: translateX(0%);
    transition: transform 1s ease-in-out;
    z-index: 2;
}

.slideshow img.next {
    display: block;
    transform: translateX(-100%);
    z-index: 1;
}

.slideshow img.exit {
    display: block;
    transform: translateX(100%);
    transition: transform 1s ease-in-out;
    z-index: 1;
}


.quests {
    background: #F0F0F0;
    padding-bottom: 140px;
    padding: 56px 20px 142px 20px;


    .list {
        display: flex;
        justify-content: space-around;
        align-items: center;
        flex-direction: row;
        margin-top:70px;

        @media screen and (max-width: 1500px) {
            flex-direction: column;
            gap:42px;
        }
    }

   


    .item {
        background-repeat: no-repeat;
        background-clip: content-box;
        background-size: cover;
        height: 371px;
        display: grid;
        width:260px;

        &:nth-child(1) {
            background-image: url('imgs/indexph/vamp.png');
        }

        &:nth-child(2) {
            background-image: url('imgs/indexph/zonaz.png');

        }

        &:nth-child(3) {
            background-image: url('imgs/indexph/minecraft1.jpeg');

        }

        &:nth-child(4) {
            background-image: url('imgs/indexph/hall1.jpeg');

        }
    }


    .title {
        font-size: 33px;
        font-weight: 700;
        color: #FFFFFF;
        text-shadow: 
        1px 1px 0 #00000026,
        -1px 1px 0 #00000026,
        1px -1px 0 #00000026,
        -1px -1px 0 #00000026; 
        align-self: center;
        padding: 0px 20px;
    }


    button {
        margin-bottom: 26px;
        justify-self: center;
        align-self: flex-end;
        width:212px;
        height: 50px;
    }
}

.about {
    padding: 68px 20px 94px 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-direction: row;
    gap:100px;

    @media screen and (max-width: 950px) {
        justify-content: center;
        align-items: center;
        flex-direction: column;
        gap:85px;
        
    }

    .right {
        width: 100%;
        display: flex;
        justify-content: flex-start;
        align-items: flex-start;
        flex-direction: column;
        gap:46px;


        @media screen and (max-width: 950px) {
            justify-content: center;
            align-items: center;
            flex-direction: column;
        }
       
    }

    .description {
        margin-bottom: 85px;
    }


    .left {
        position: relative;
        width: fit-content;
        &::after {
            content: " ";
            position: absolute;
            transform: translate3d(14px, -14px, 0);
            border: 5px solid #FFB800;
            box-sizing: border-box;
            width: 318px;
            height: 353px;
            left:0px;
            border-radius: 40px;
            z-index: -1;

        }

        @media screen and (max-width: 1500px) {
            margin-left: 80px;
            
        }

        @media screen and (max-width: 950px) {
            margin-left: 0px;
            
        }
    }

    /* img {
        width: 318px;
        height: 353px;
    } */

    @media screen and (max-width: 950px) {
        flex-direction: column-reverse;
    }

}


.testimonials {
    padding: 24px 20px 146px 20px;
    background: #f0f0f0;
    text-align: center;
  
    h1 {
      margin-bottom: 140px;
      text-align: left;
    }

    img {
        width: 159px;
        height: 159px;
        border-radius: 50%;
        object-fit: cover;
        margin-top:-80px;
    }

    h3 {
        font-size: 18px;
        margin: 10px 0;
    }

    p {
        font-size: 14px;
        color: #555;
        margin-bottom: 100px;
    }

    .testimonial {
        background: #e0e0e0;
        border-radius: 8px;
        padding: 20px;
        width: 300px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        text-align: center;
    }
  
    .testimonials-container {
      display: flex;
      justify-content: center;
      gap: 20px;
      flex-wrap: wrap;

      @media screen and (max-width: 1000px) {
        flex-direction: column;
        gap: 150px;
        align-items: center;
        
      }
  
      
    }
}


.prices {
    padding: 37px 20px 0px 20px;

    h1 {
        margin-bottom: 40px;
        text-align: center;
    }

    button {
        height: 59px;
        border-radius: 18px;
        margin-bottom: 27px;
        width: 244px;
        justify-self: center;
        align-self: flex-end;
    }

    .choice {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: row;
        gap:240px;
        margin-bottom:180px;

        @media screen and (max-width: 950px) {
            flex-direction: column;
            gap:74px;
        }
    }

    img {
        justify-self: center;
    }

    .game {
        background: #D9D9D9;
        display: grid;
        justify-content: flex-start;
        align-items: center;
        height: 457px;
    }

    h3 {
        font-size: 35px;
        font-weight: 600;
        color: #000000;
        margin-top: 44px;
        margin-bottom: 8px;
        text-align: center;
    }


    .options {
        font-size: 22px;
        font-weight: 600;
        margin-top:10px;
        align-items: center;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        padding: 0px 56px;
    }

    .description {
        font-size: 15px;
        font-weight: 600;
        color: #000000;
        max-width: 240px;
        text-wrap: wrap;
        justify-self: center;
        text-align: center;

    }

    .add {
        font-size: 22px;
        font-weight: 600;
        color: #000000;
        margin-top:32px;
        max-width: 240px;
        justify-self: center;
        text-align: center;
    }
}


footer {
    button {
        width: 100%;
        height: 145px;
        background: #DBDBDB;
        border: none;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        font-size: 46px;
        font-weight: 700;
        color: #000000;
        box-shadow: none;
        border-radius: 0;
    }

    button:hover {
        background: #DBDBDB;
        box-shadow: none;

    }
}


button {
    background: linear-gradient(85.84deg, #B40000 -1.25%, #4E0000 102.51%);
    box-shadow: 0px 4px 8.4px 0px #93000087;
    border: none;
    color: #FFFFFF;
    font-size: 17px;
    font-weight: 700;
    border-radius: 18px;
    transition: background 3s ease-in-out;
}


button:hover {
    background: linear-gradient(85.84deg, #7D0000 -1.25%, #1C0000 102.51%);
    box-shadow: 0px 4px 8.4px 0px #93000087;

}

#popup {
    display: none;
    position: fixed;
    z-index: 1000;
    background-color: white;
    padding: 3px;
    border: 1px solid black;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    overflow: hidden; /* Prevent content overflow */

    /* @media screen and (max-width: 950px) {
        width: 318px;
        height: 353px;
    } */

}

#popup img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Ensure image fits without stretching */
}

.close-button {
    cursor: pointer;
}

ul {
    /* Убираем стандартный отступ слева */
    padding-left: 0;
    /* Добавляем минимальное пространство для маркеров */
    margin-left: 20px;
}

li {
    /* Важно: сохраняем маркеры снаружи */
    list-style-position: outside;
    /* Добавляем отступ слева для текста */
    padding-left: 20px;
}

/* === inline info button + tooltip === */
.prices .game { position: relative; }       /* parent for absolute positioning */

.info-badge {
  position: absolute; top: 1px; right: 1px;
  width: 28px; height: 28px; border-radius: 9999px;
  display: grid; place-items: center;
  font: 700 18px/1 Montserrat, system-ui, sans-serif;
  background: #111; color: #fff; border: 0; cursor: pointer;
}

.info-wrap { position: absolute; top: 44px; right: -25px; z-index: 30; }
.info-tip {
  /* max-width: min(320px, 80vw); */
  background: #111; color: #fff;
  border-radius: 12px; padding: 12px 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .15s ease, transform .15s ease, visibility 0s linear .15s;
}
.info-tip::before{
  content:""; position:absolute; top:-6px; right:18px;
  border:6px solid transparent; border-bottom-color:#111;
}

/* show on hover/focus */
.info:hover .info-tip,
.info:focus-within .info-tip,
.info-tip.show { opacity:1; visibility:visible; transform:translateY(0); transition:opacity .15s ease, transform .15s ease; }

/* nice focus ring */
.info-badge:focus-visible { outline: 2px solid #ef4444; outline-offset: 2px; }


/* ===== Mobile fix pack (valid CSS; put at the very end) ===== */

/* generic responsive safety */
img, video { max-width: 100%; height: auto; }

/* scale big headings down on small screens */
@media (max-width: 1024px) {
  h1 { font-size: clamp(32px, 6vw, 48px); line-height: 1.15; }
}
@media (max-width: 640px) {
  h1 { font-size: clamp(26px, 8vw, 36px); }
}

/* hero section: stack columns on mobile */
@media (max-width: 900px) {
  .hero { display: flex; flex-direction: column; gap: 24px; }
  .hero .left, .hero .right { width: 100%; }
  .summary { font-size: 18px; line-height: 1.5; }
  .features { display: flex; flex-wrap: wrap; gap: 16px; }
}

/* slideshow/photo block responsive */
@media (max-width: 900px) {
  .slideshow { 
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;           /* keeps nice portrait shape */
    border-radius: 24px;
    position: relative;
    overflow: hidden;
  }
  .slideshow img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;             /* no stretching */
    display: none;                  /* your JS will show the active one */
  }
}

/* price cards: stack vertically on mobile */
@media (max-width: 950px) {
  .prices .choice { 
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }
  .prices .game { width: min(520px, 100%); }
}

/* language pills / header bits often need centering on small screens */
@media (max-width: 900px) {
  .languages { margin: 0; display: flex; justify-content: center; gap: 12px; }
}

/* if your top CTA scrolls to prices, make sure it doesn't hide under sticky headers */
#prices { scroll-margin-top: 80px; }

/* --- MOBILE ONLY (desktop unchanged) --- */

/* A) Center the slideshow/photo block on phones */
@media (max-width: 900px){
  /* stack hero and center both columns */
  .hero{ display:flex; flex-direction:column-reverse; align-items:center; gap:16px; }

  /* limit content width and center */
  .hero > .left,
  .hero > .right{ width:100%; max-width:560px; margin-inline:auto; }

  /* whatever is inside the right column: slideshow/photo */
  .hero > .right,
  .hero .slideshow,
  .hero .room-photo{ width:100%; border-radius:24px; overflow:hidden; }

  .hero .slideshow img,
  .hero .room-photo img,
  .hero > .right img{
    display:block; width:100%; height:auto; object-fit:cover;
  }
}

/* B) Smaller quest text on phones (targets your paragraph block: .summary) */
@media (max-width: 600px){
  /* easy knobs – change these numbers if you want smaller/larger text */
  :root{
    --mobile-p-min: 21px;     /* smallest allowed paragraph size */
    --mobile-p-max: 16.5px;   /* largest allowed paragraph size */
    --mobile-p-vw:  3.8vw;    /* responsiveness (lower = smaller) */
  }
  
  /* apply to all quest pages (your big text lives in .summary) */
  .game .summary{
    font-size: clamp(var(--mobile-p-min), var(--mobile-p-vw), var(--mobile-p-max));
    line-height: 1.55;
    max-width: 58ch;          /* keeps lines readable on phones */
    margin-inline: auto;      /* centers the block */
  }
}


/* === iPhone 12 Pro / small phones only === */
@media (max-width: 430px){

  /* Align the features row into a clean 3-column grid and center it */
  .features{
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 10px 16px;
    justify-items: center;
    align-items: center;
    text-align: center;
    max-width: 360px;
    margin: 12px auto 14px;   /* centers the whole row above the button */
  }

  /* Each feature item = icon above label, centered */
  .features > *{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 0;
  }

  /* Icon size (tweak if needed) */
  .features img,
  .features svg{
    width: 44px;
    height: auto;
    display: block;
  }

  /* Numbers/labels under icons (same sizing => no wobble) */
  .features .value,
  .features span,
  .features p{
    margin: 0;
    font-size: 14px;
    line-height: 1.1;
    font-weight: 600; /* optional: comment out if too bold */
  }

  /* CTA: perfectly centered, sensible width */
  .btn-red{
    display: block;
    width: min(360px, 100%);
    margin: 8px auto 0;
  }

  /* Nice spacing from the description above */
  .summary{ margin-bottom: 12px; }
}

/* Mobile back arrow (shows only on phones) */
.back-mobile{
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  left: max(12px, env(safe-area-inset-left));
  width: 44px; height: 44px; border-radius: 9999px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.7); color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  backdrop-filter: blur(4px);
  z-index: 9999;
}
.back-mobile svg{ width: 22px; height: 22px; }
@media (min-width: 951px){ .back-mobile{ display:none; } }  /* desktop: hidden */
