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

html {
    scroll-behavior: smooth;
}

@font-face {
    font-family: 'RoundsBlack';
    src: local('RoundsBlack'), url(/assets/fonts/RoundsBlack.otf) format('opentype');
}

@font-face {
    font-family: 'Balpaq';
    src: local('Balpaq'), url(/assets/fonts/BALPAQ.TTF) format('truetype');
}

header {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 50px;
    display: flex;
    background: rgba(255, 255, 255, 0.2); /* прозрачность */
    backdrop-filter: blur(10px);          /* размытие */
    -webkit-backdrop-filter: blur(10px);  /* для Safari */
    
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.header-active {
    background-color: #3abfe5;
}

.burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
}
  
.burger span {
    display: block;
    height: 4px;
    background: #4a3827;
    border-radius: 2px;
}

.burger.open span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.burger.open span:nth-child(2) {
    opacity: 0;
}

.burger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}
  
.burger span {
    transition: all 0.3s ease;
}

.nav-menu {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
}

.nav-menu ul {
    display: flex;
    list-style: none;
}

.nav-menu ul li {
    margin: 0 20px;
    font-size: 20px;
}

.nav-menu ul li a {
    /* font-family: 'RoundsBlack'; */
    font-family: 'Balpaq';
    font-size: 24px;
    color: #4a3827;
    text-decoration: none;
}

.main-container {
    display: flex;
    flex-direction: column;
    max-width: 1920px;
    width: 100%;
    margin: 0 auto;
}

main {
    margin-top: -50px;
}

#main-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    min-height: 100vh;
    background-image: url(/assets/img/mainbg.webp);
    background-size: cover;
    background-position: center;
}

.main-screen-p {
    font-family: 'Balpaq';
    text-transform: uppercase;
    font-size: 22px;
    font-weight: bold;
    margin: 20px 0 40px 0;
    text-align: center;
    color: #4a3827;
}

.main-screen-p:nth-child(1) {
    font-size: 26px;
}

.in-game-btn {
    font-family: 'Balpaq';
    background-color: #3abfe5;
    font-size: 40px;
    padding: 10px 40px;
    border: none;
    border-radius: 35px;
    margin-bottom: 100px;
    box-shadow: 2px 4px 0 #4a3827;
    color: #4a3827;
    text-decoration: none;
}

.description {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f7f7f7;
    padding: 0 60px 60px;
}

h2 {
    font-family: 'RoundsBlack';
    font-size: 34px;
    color: #4a3827;
    margin: 100px auto 80px;
    text-align: center;
}

.description-wrap {
    display: flex;
    gap: 25px;
    margin-top: 20px;
}

.description-wrap-left,
.description-wrap-right {
    max-width: 50%;
}

.description-wrap-left p {
    font-family: 'Balpaq';
    font-size: 22px;
    font-weight: bold;
    color: #4a3827;
    margin-top: 35px;
    letter-spacing: 1px;
    line-height: 1.3;
}

.description-wrap-right {
    background-color: #c0e9f5;
    padding: 30px 40px;
    border-radius: 25px;
    display: flex;
    align-items: center;
}

.description-wrap-right img {
    display: flex;
    width: 100%;
}

.video {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 10px;
    background-color: #c0e9f5;
}

.gallery_center {
  max-width: 80%;
}

.event-video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  object-fit: contain;
}

.event-video {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-video:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  cursor: pointer;
}

.about {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f7f7f7;
}

.bubble-about,
.bubble-expect {
    max-width: 255px;
}

.about-cards {
    display: flex;
    gap: 30px;
    margin: 70px 0 80px;
}

.about-cards-element {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    height: 200px;
}

.about-svg {
    display: flex;
    height: 100px;
    max-width: 140px;
    width: 100%;
}

.about-cards-element p {
    font-family: 'Balpaq';
    font-size: 22px;
    color: #4a3827;
    text-align: center;
}

.yellow-btn {
    background-color: #fbb900;
}

.expect {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f7f7f7;
}

.expect-cards {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    max-width: 1280px;
    gap: 25px;
    margin: 40px 0 80px;
}

.expect-cards-item {
    display: flex;
    max-width: 588px;
    min-height: 200px;
    border-radius: 25px;
}

.white-card {
    border: 3px solid black;
}

.blue-card {
    background-color: #c0e9f5;
    border: 3px solid black;
}

.expect-cards-item-descr {
    padding: 20px 20px 20px 0;
}

.expect-cards-item-descr h3 {
    font-family: 'Balpaq';
    font-size: 26px;
    font-weight: normal;
    color: #4a3827;
    margin-bottom: 20px;
}

.expect-cards-item-descr p {
    font-family: 'Balpaq';
    font-size: 20px;
    color: #4a3827;
}

.expect-svg {
    width: 90px;
    height: 90px;
    margin: auto 40px;
}

.contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #c0e9f5; 
    padding-bottom: 60px;
}

.contact h2 {
    margin-bottom: 15px;
    text-align: center;
}

.contact p {
    font-family: 'Balpaq';
    font-size: 22px;
    color: #4a3827;
}

.contact-bubble-container {
    margin: 40px 20px;
}

.small-bubble {
    width: 170px;
}

.big-bubble {
    width: 250px;
    margin: 0 70px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f7f7f7;
    padding: 80px 10px 30px;
    border-radius: 20px;
}

.form-input-block {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    flex-wrap: wrap;
    max-width: 740px;
    gap: 20px;
}

input {
    max-width: 330px;
    width: 100%;
    height: 50px;
    border: none;
    padding-left: 20px;
    border-radius: 10px;
    background-color: #c0e9f5;
    font-family: 'Balpaq';
    font-size: 20px;
    letter-spacing: 1px;
}

.submit-btn {
    width: 230px;
    padding: 10px 30px;
    border: none;
    background-color: #fbb900;
    border-radius: 20px;
    margin-top: 40px;
    font-family: 'RoundsBlack';
    font-size: 18px;
    color: #4a3827;
    box-shadow: 0 0 4px 1px #d4d3d3;
}

.submit-btn:hover {
    cursor: pointer;
}

.popup {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #05889D;
    color: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 1000;
  }
  
  .popup.show {
    opacity: 1;
    pointer-events: auto;
  }

@media (max-width: 1600px) {
    .main-screen-p {
        margin: 15px 0 20px 0;
    }

    .in-game-btn {
        margin-bottom: 70px;
    }
}

@media (max-width: 1200px) {
    .description-wrap {
        flex-direction: column;
        align-items: center;
    }

    .main-screen-p {
        margin: 10px 0 20px 0;
    }
}

@media (max-width: 1024px) {
  .burger {
    display: flex;
  }

  .header {
    align-items: center;
    justify-content: end;
    padding: 0 30px;
  }

  .nav-menu {
    flex-direction: column;
    align-items: center;
    background: #3abfe5;
    position: absolute;
    top: 49px;
    left: 0;
    right: 0;
    z-index: 999;
    overflow: hidden;
    max-height: 0;
    padding: 0;
    transition: max-height 0.4s ease, padding 0.3s ease;
  }

  .nav-menu.active {
    max-height: 300px;
    padding: 20px 0;
  }

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

  .nav-menu ul li a {
    color: #4a3827;
    font-size: 20px;
  }

  .about-cards {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .description-wrap-left, .description-wrap-right {
    max-width: 90%;
  }

  #main-screen {
    background-image: url(/assets/img/mainbgvertical.webp);
    background-size: cover;
    background-position: center;
  }

  .in-game-btn {
    font-size: 34px;
  }

  .about, .contact, .expect {
    padding: 0 20px 60px;
  }
}

@media (max-width: 840px) {
    .description {
        padding: 0 20px 60px;
    }

    .big-bubble {
        width: 200px;
        margin: 0 40px;
    }

    .small-bubble {
        width: 130px;
    }

    .gallery_center {
        max-width: 90%;
    }

    .contact p {
        text-align: center;
    }

    #main-screen {
        padding-bottom: 100px;
    }

    .main-screen-p {
        margin: 10px 0 40px 0;
    }
}

@media (max-width: 640px) {
    #main-screen {
        background-image: url(/assets/img/mainbgmobile.webp);
    }

    .description-wrap-right {
        padding: 15px 20px;
    }

    .expect-cards-item {
        flex-direction: column;
        align-items: center;
        padding: 20px 15px;
    }

    .expect-cards-item-descr {
        padding: 20px 0 20px 0;
    }

    .expect-cards-item-descr h3,
    .expect-cards-item-descr p {
        text-align: center;
    }

    .small-bubble {
        display: none;
    }

    .description-wrap-left p {
        font-size: 18px;
    }

    .expect-cards-item-descr h3 {
        font-size: 24px;
    }

    .expect-cards-item-descr p {
        font-size: 18px;
    }

    #main-screen {
        padding-bottom: 40px;
    }

    .main-screen-p {
        margin: 10px 0 20px 0;
    }

    .in-game-btn {
        font-size: 28px;
        margin-bottom: 40px;
    }
}