html, body {
    max-width: 100%;
    overflow-x: hidden;
    padding: 0;
    margin: 0;
}

html {
  scroll-padding-top: 80px;
}

body {
    font-family: "Montserrat", serif;
}

.navbar {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    font-weight: 500;
    font-size: 18px;
    padding: 8px;
    flex-wrap: wrap;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.navbar a {
    text-decoration: none;
    color: #000;
}

.navbar a:hover {
    color: #9F025D;
}

.phone {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

span {
    font-size: 14px;
    text-decoration: none;
}

.tel {
    color: #000;
    text-decoration: none;
    font-size: 16px;
    background-color: rgba(208, 208, 208, 0.4);
    padding: 8px 12px;
    border-radius: 16px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    margin-bottom: 10px;
}

.yellow {
    background-image: url(img/background.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    padding: 20px 0;
}

/* HEADER */
.navbar-burger {
position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  margin-top: 0;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000 !important;
}

.burger {
  position: absolute;
  right: 16px;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
}

.social {
    margin-top: 40px;
}


/* MOBILE FULLSCREEN MENU */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100%;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateY(-100%);
  transition: transform 0.3s ease, opacity 0.4s ease;
  z-index: 10;
}

.mobile-menu.show {
  transform: translateY(0);
}

.mobile-menu a {
  text-decoration: none;
  color: #000;
  font-size: 24px;
  padding: 16px;
}

.close {
  position: absolute;
  top: 100px;
  right: 20px;
  font-size: 32px;
  background: none;
  border: none;
  cursor: pointer;
  color: #000;
  z-index: 1100;
}


.wrapper-form, #photos, #contact-line, #services, #characters, #reviews {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.content {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 16px;
}

header {
    text-align: center;
    font-size: 20px;
    margin: 20px auto;
}

h1 {
    margin: 15px;
    text-align: center;
}

.container {
    display: flex;
    justify-content: center;
    padding: 10px 100px;
}

#myVideo {
    height: 450px;
}

.contact-form {
    background-color: rgba(255, 255, 255, 0.6);
    width: 400px;
    padding: 20px;
    border-radius: 8px;
    margin-left: 112px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

input {
    border: 2px solid #FC8500;
    border-radius: 8px;
    padding: 10px;
    font-family: "Montserrat", serif;
    width: 90%;
}

.input-name {
    margin: 16px 8px;
}

input {
    margin-top: 8px;
}

.btn {
    width: 180px;
    margin-top: 30px;
    align-self: center;
    padding: 10px;
    border-radius: 8px;
    background-color: #FC8500;
    border: #FC8500;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    font-family: "Montserrat", serif;
    transition: transform 0.3s, box-shadow 0.3s; 
    color: #000;
}

.btn:hover {
    transform: scale(1.1);
}

#photos {
    padding: 20px;
    text-align: center;
    align-items: center;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); /* Адаптивна сітка */
    gap: 20px; /* Відступи між фото */
    margin: 10px 100px;
}

.gallery img {
    width: 100%; /* Фото займає весь контейнер */
    height: auto; /* Пропорції зберігаються */
    border-radius: 8px; /* Закруглення країв */
    object-fit: cover; /* Забезпечення правильного обрізання */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Тінь */
    transition: transform 0.3s, box-shadow 0.3s; /* Анімація */
}

.gallery img:hover {
    transform: scale(1.3); 
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2); 
}

#contact-line {
    width: 100%;
}

.contact-section {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    width: 100%;
}

.contact-section p {
    font-size: 20px;
    font-weight: bolder;
}

.services-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
}

#services {
    padding: 30px 0 50px 0;
}

.service-block {
    background-color: #FFB700;
    display: flex;
    width: 500px;
    min-height: 300px;
    margin: 20px;
    border-radius: 8px;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-block:hover {
    transform: scale(1.05) translateY(-4px); /* Збільшення при наведенні */
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2); /* Посилена тінь */
}

.service-block img {
    width: 200px;
    object-fit: cover;
}

.package-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.package-block {
    background-color: #8FC9E7;
    flex: 1 1 300px; /* базова ширина 300px, але адаптивно */
    max-width: 380px;
    margin: 10px;
    padding-left: 20px;
    border-radius: 8px;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    align-items: stretch;
}

.package-block p {
    font-size: 15px;
}

.other-service-block {
    background-color: #8FC9E7;
    display: flex;
    width: 420px;
    height: 240px;
    margin: 20px;
    border-radius: 8px;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    align-items: stretch;
}

.other-service-block:hover, .package-block:hover {
    transform: scale(1.05); /* Збільшення при наведенні */
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2); /* Посилена тінь */
}

.other-service-block img {
    width: 230px;
    object-fit: cover;
}

.service-text {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
}

.margin-reduce {
    margin: 10px;
}

.price {
    font-weight: bolder;
}

.price-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.price-block {
    display: flex;
    justify-content: space-around;
}

.price-block p {
    margin: 6px;
    font-size: 14px;
}

#characters {
    padding: 30px 0;
}

.characters {
    display: flex;
    justify-content: space-around;
}

.column {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 50%;
    margin: 0 36px;
}

h3 {
    font-size: 20px;
}

.photos-characters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.photos-characters img {
    width: 130px;
    height: 200px;
    margin: 8px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.photos-characters img:hover {
    transform: scale(1.3); /* Збільшення при наведенні */
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2); /* Посилена тінь */
}

.feedback {
    text-align: center;
    font-size: 22px;
    padding-bottom: 20px;
}

.feedbacks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Адаптивна сітка */
    gap: 20px; /* Відступи між фото */
    margin: 15px 100px;
}

.feedbacks img {
    width: 100%;
    height: auto; /* Пропорції зберігаються */
    border-radius: 8px; /* Закруглення країв */
    object-fit: cover; /* Забезпечення правильного обрізання */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Тінь */
    transition: transform 0.3s, box-shadow 0.3s; /* Анімація */
}

.feedbacks img:hover {
    transform: scale(1.1); /* Збільшення при наведенні */
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2); /* Посилена тінь */
}

.wrapper-footer {
    display: flex;
}

.logo-footer {
    width: 400px;
}

.footer-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex: 1;
}

.search {
    display: flex;
    flex-direction: column;
}

.footer-search {
    text-decoration: none;
    color: #000;
    margin: 10px;
}

.contacts {
    display: flex;
    flex-direction: column;
    align-items: baseline;
    justify-content: center;
}

.contacts p {
    margin: 8px;
}

.location {
    padding-left: 25px;
    font-weight: bolder;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}


@media all and (max-width:1024px) {
  .service-block,
  .other-service-block {
    width: 95vw;
    height: auto;
  }

  .service-block img,
  .other-service-block img {
    width: 170px;
    height: auto;
    object-fit: cover;
  }

  .services-list {
    justify-content: flex-start;
  }

  .service-text {
    width: 60%;
    padding: 10px;
    box-sizing: border-box;
  }

}

@media all and (max-width:650px) {
    main {
        padding-top: 80px;
    }
    .navbar {
        flex-direction: column;
    }

    .navbar a {
        font-size: 24px;
        padding: 5px;
    }

    .phone {
        flex-direction: column;
        align-items: center;
    }

    h1 {
        font-size: 26px;
    }

    h2 {
        font-size: 22px;
    }

    .container {
        flex-direction: column;
        align-items: center;
        padding: 10px 20px;
    }

    #myVideo {
        width: 100%;
        height: auto;
        max-height: 600px;
    }

    .contact-form {
        width: 95%;
        margin: 5px;
    }

    input[type="date"] {
        display: block;
      }

    .content {
        width: 100%;
    }

    .gallery {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-right: 25px;
        width: 100%;
        box-sizing: border-box;
        margin: 0 auto;
      }
    
      .gallery img {
        width: 100%;
        max-width: 400px;
        height: auto;
        border-radius: 8px;
        object-fit: cover;
        display: block;
      }

    .service-text, .package-block p {
        font-size: 12px;
    }

    .price-block p {
        font-size: 10px;
    }

    .service-block, .other-service-block {
        max-width: 90%;
        margin: 10px;
    }

    .other-service-block {
        height: 180px;
    }

    .characters {
        flex-direction: column;
        align-items: center;
    }

    .column {
        width: 90%;
        margin: 20px 0;
    }

    .feedbacks {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 10px;
    }

    .feedbacks img {
        width: 80%;
        object-fit: cover;
    }

    .logo-footer {
        width: 250px;
    }

    .contact-section {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .wrapper-footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .navbar {
        display: none;
    }

    .logo-burger {
        display: block;
        margin: 0 auto;
    }
}

@media (min-width: 650px) {
  .burger {
    display: none;
  }

  .sidebar {
    display: none;
  }

  .overlay {
    display: none;
  }

  .navbar-burger {
    display: none;
  }
}

@media (hover: none) and (pointer: coarse) {
  .gallery img:hover {
    transform: none;
    box-shadow: none;
  }
}