  html {
    scroll-behavior: smooth;
  }
.social-icon-with-label {
  position: relative;
  display: flex;
  align-items: center;
  margin: 10px 0;
}

.input-error {
  border: 1px solid red !important;
  background-color: rgba(255, 0, 0, 0.1);
  color: white;
}


.contact-messenger-option input[type="radio"] {
  accent-color: red; /* Змінює колір виділення на червоний */
}

.first-p{
    font-weight: 700;
    font-size: 24px;
}
.last-p{
    font-weight: 900;
    font-size: 19px;
}
.p-style{position: absolute; text-align: left; font-size: 17px !important; width: 430px !important;; margin-top: 11px; line-height: 33px;}


.social-icon-with-label .label {
  position: absolute;
  left: -99px;
  opacity: 0;
  background-color: #444;
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  white-space: nowrap;
  font-size: 14px;
  transition: all 0.4s ease;
  pointer-events: none;
}

.social-icon-with-label:hover .label {
  left: -80px;
  opacity: 1;
}


.photo-container {
    width: 100%;
    max-width: 553px;
    height: 523px;
    background-image: url(/media/img/sertifikat.jpg);
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.fragment {
    position: absolute;
    width: 10%;
    height: 10%;
    background-image: url('/media/img/sertifikat.jpg');
    background-repeat: no-repeat;
    background-size: 905% 901%;
    transition: transform 2s ease-in-out;
    animation: wiggle -1s infinite ease-in-out;
    border-radius: 3px;
}

@keyframes wiggle {
  0%, 100% { transform: translate(0px, 0px) rotate(0deg); }
  25% { transform: translate(-1px, 2px) rotate(-1deg); }
  50% { transform: translate(1px, -1px) rotate(1deg); }
  75% { transform: translate(-2px, 1px) rotate(0.5deg); }
}

    /* Сброс */
    * { margin:0; padding:0; box-sizing:border-box; font-family: "Gilroy", Sans-serif;}
    body { font-family: Arial, sans-serif; line-height:1.6; color:white; background:#222222; overflow-x: hidden;}
    a { text-decoration:none; color:inherit; }
    ul { list-style:none; }
    img { max-width:100%; display:block; }

    section { padding: 80px 20px; }
    .fade-in { opacity:0; transform: translateY(20px); transition: all 2s ease; }
    .fade-in.visible { opacity:1; transform: translateY(0); padding-top: 8rem;}
    .h2 { text-align: center; font-size: 2.4rem; margin-bottom: 40px; letter-spacing: 0.05em; text-transform: uppercase; }

    /* Навигация */
    .nav {
      position: fixed; top:0; left:0; width:100%;
      background: rgba(0,0,0,0.7);
      color:#fff; z-index:100;
      display:flex; align-items:center; justify-content:space-between;
      padding: 0px 20px;
    }
    .nav img { height: 100px; }

    .nav-logo { font-size:1.4rem; font-weight:700;}
    .nav-list { display:flex; gap:50px; font-size: 15px;}
    .nav-list-item a { color:#fff; font-weight:500; transition:opacity 1.5s; }
    .nav-list-item a:hover { opacity:0.7; }
    .hamburger { display:none; cursor:pointer; }
    .hamburger-line { width:25px; height:3px; background:#fff; margin:5px 0; }
    .social-icons-nav { text-align: center; display: flex; align-items: center;}
    .social-icons-nav a { display: inline-block; margin: 0 15px; font-size: 32px; color: #fff; transition: color 0.3s ease; }
    .social-icons-nav a.fa-facebookk:hover { color: #3b5998; }
    .social-icons-nav a.fa-instagramm:hover { color: #e1306c; }
    .social-icons-nav a.fa-telegramm:hover { color: #229ED9; }
    .social-icons-nav a img {
        filter: brightness(-1) invert(1); /* белый на тёмном фоне */
        transition: filter 0.3s ease;
        }

        /* WhatsApp: зелёный */
    .social-icons-nav a[href*="wa.me"]:hover img {
        filter: invert(100%);
        }

        /* Viber: фиолетовый */
    .social-icons-nav a[href*="msng.link"]:hover img {
        filter: invert(100%);
        }

    .social-icons a[href*="wa.me"]:hover img {
        filter: invert(100%);
        }

        /* Viber: фиолетовый */
    .social-icons a[href*="msng.link"]:hover img {
        filter: invert(100%);
        }

    /* Hero */
    .hero {
      height:100vh; background: url('/media/img/IMG_3313.PNG') center/cover;
      display:flex; flex-direction:column; justify-content:center; align-items:center;
      text-align:center;  color:#fff;
      position: relative;
    }
    .hero::before {
      content:""; position:absolute; top:0; left:0; width:100%; height:100%;
      background:rgba(0,0,0,0.4);
    }
    .hero-inner { position:relative; z-index:1; }
    .hero-title { font-size:3rem; letter-spacing:0.1em; margin-bottom:20px; }
    .hero-subtitle { font-size:1.3rem; margin-bottom:30px; }

    /* Галерея */
    .gallery { display:grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap:20px; }
    .gallery-item { position: relative; overflow:hidden; cursor:pointer; border-radius: 20px; box-shadow: 0 0 20px 2px #000000;}
    .gallery-item-image { transition: transform 2s ease; }
    .gallery-item:hover .gallery-item-image { transform: scale(1.1); }
    .gallery-item-label {
      position:absolute; bottom:10px; left:10px; background:rgba(0,0,0,0.5); color:#fff;
      padding:6px 12px; font-size:1rem; border-radius:4px;
    }

    /* Сертификат */
    .certificate { background: url('/media/img/dropped-image.png') center/cover;  color:#fff; }
    .certificate-title { text-align:center; font-size:2.4rem; margin-bottom:40px; letter-spacing:0.05em; text-transform:uppercase; }
    .certificate-content { display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:40px; }
    .certificate-half { flex:2 1 360px; position:relative; overflow:hidden; aspect-ratio:4/3; border-radius:12px; box-shadow:0 4px 10px rgba(0,0,0,0.5); }
    .certificate-half img { width: 100%; height: 100%; object-fit: cover; }
    .certificate-info { flex:1 1 400px; display:flex; flex-direction:column; justify-content:center; font-size:1.1rem; line-height:1.6; }
    .certificate-info p { margin-bottom:20px; text-align: left;}
    .cta-button {
      display:inline-block; padding:12px 32px; border:2px solid #fff;
      color:#fff; border-radius:6px; text-transform:uppercase; font-weight:600;
      transition: background .3s, color .3s;
      text-align: center;
    }
    .cta-button:hover { background:#fff; color:#333; }
    
    /* Обо мне */
    .about-section { display:flex; gap: 40px; }
    .about-image-container { flex:1 1 400px; width: 40%; }
    .about-image { border-radius:8px; width: 100%; }
    .about-text { flex:1 1 800px; padding: 0 0 0 20px; }
    .about-title { font-size: 2em; letter-spacing: 0.05em; margin-bottom: 20px; text-align: left; }
    .about-subtitle { font-size: 1.4em; letter-spacing: 0.02em; margin-top: 2em; margin-bottom: 0.5em; font-weight: 600; }
    .about-paragraph { font-size: 1em; line-height: 1.6; margin-bottom: 1.5em; color: #ccc; }
    .about-list { list-style: none; margin-bottom: 1.5em; }
    .about-list-item { margin-bottom: 0.8em; color: #ccc; }
    .about-list-item strong { color: #fff; font-weight: 700; }
    .about-list-item-title { font-size: 1.1em; margin-top: 0; margin-bottom: 0.5em; font-weight: 600; color: #fff; }
    /* Прайс */
    .price { background: url('/media/img/dropped-image.png') center/cover;  padding: 80px 20px; color: #ffffff; }
    .price-title { text-align: center; font-size: 2.4rem; margin-bottom: 60px; letter-spacing: 0.05em; text-transform: uppercase; font-weight: 700; color: #ffffff; }
    .price-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; max-width: 1100px; margin: 0 auto; }
    .price-item {
      background-image: linear-gradient(180deg, #373737 0%, #555555 100%);
      border: 1px solid #333333;
      border-radius: 12px;
      padding: 30px 25px;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }
    .price-img {
      background: url('/media/img/red.png') center/cover no-repeat;
      height: 100px;
      border-radius: 8px;
      margin-bottom: 20px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .price-item:hover { transform: translateY(-5px); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6); }
    .price-item h3 { font-size: 1.4rem; color:rgb(255, 255, 255);; text-align: center;}
    .price-item p { font-size: 1rem; margin-bottom: 12px; line-height: 1.6; color: #cccccc; }
    .price-item strong { color: #ffffff; font-weight: 600; }

    /* Контакты */
    .contact { background: linear-gradient(180deg, #222222 0%, #333333 49.04%, #222222 100%); }
    .contact-block { display: flex; justify-content: space-around; gap: 40px; }
    .contact-form { 
        display: grid;
        gap: 20px;
        max-width: 500px;
        width: 50%;
        padding: 1rem;
        border-radius: 11px;
        background: url('/media/img/dropped-image.png') center / cover;
        border: 1px solid #333333;
        border-radius: 12px;
        padding: 30px 25px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    }
    .modal-form-input, .modal-form-textarea, .modal-form-button,  .contact-form-input, .contact-form-textarea, .contact-form-button { width: 100%;
        padding: 12px;
        font-size: 1rem;
        border: 1px solid #ccc;
        border-radius: 4px;
        background: #303030b3;
        color: white; 
    }
    .form-style{
          display: flex;
          gap: 24px;
          flex-direction: column;
    }

    .contact-form-button { background:#333; color:#fff; border:none; cursor:pointer; transition:opacity .3s; }
    .contact-form-button:hover { opacity:0.8; }
    .contact-info-text {
      background: url('/media/img/dropped-image.png') center/cover; 
      border: 1px solid #333333;
      border-radius: 12px;
      padding: 30px 25px;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      width: 40%;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }
    .contact-info-photo-block { display: flex; align-items: flex-start; justify-content: space-between; }
    .kontakt-photo { width: 150px; text-align: center; }
    .kontakt-photo p { font-size: 20px; font-weight: 900; }
    .kontakt-photo img { border-radius: 6rem; }


    .social-iconss {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        font-size: 1.2rem;
        color: #fff;
        flex-direction: row;
    }

    .social-icons { text-align: center; display: flex; align-items: center; flex-direction: column; }
    .social-icons a { display: inline-block; margin: 0 15px; font-size: 32px; color: #fff; transition: color 0.3s ease; }
    .social-icons a.fa-facebookk:hover { color: #3b5998; }
    .social-icons a.fa-instagramm:hover { color: #e1306c; }
    .social-icons a.fa-telegramm:hover { color: #229ED9; }
    .contact-phone-link { display:inline-block; color:#fff; font-size:1.2em; }
    .contact-messenger-options { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 10px; }
    .contact-messenger-option { text-align: center; font-size: 14px; }
    .contact-form-message { color: lightgreen; }
    .contact-form-error { color: red; }
    .contact-info-phone-link { display:inline-block; color:#fff; font-size:1.2em; }

    /* Footer */
    .footer { background-color: #373737; background-image: none; min-height: 80px; display: flex; align-items: center; justify-content: center; }

    /* Модалка */
    .modal {
      display:none; position:fixed; top:0; left:0; width:100%; height:100%;
      background: rgb(0 0 0 / 82%);; z-index:999; justify-content:center; align-items:center;
    }
    .modal-content {
      background: url('/media/img/dropped-image.png') center/cover; padding:30px 40px; border-radius:10px; position:relative;
      max-width:500px; width:90%; color:white;
    }
    .modal-close-btn { position:absolute; top:10px; right:15px; cursor:pointer; font-size:1.5rem; }
    .modal-form-textarea { padding: 10px; border-radius: 6px; }
    .modal-messenger-options { display:flex; justify-content:space-around; flex-wrap:wrap; gap:10px; margin-bottom:10px; }
    .modal-messenger-option { display: flex; align-items: center; font-size: 15px; }
    .modal-form-button { background:#fff; color:#000; padding:10px 20px; border:none; border-radius:5px; width: 100%; }
.modal-messenger-option input[type="radio"] {
    accent-color: red;
}

.pulsing {
  animation: pulse 1.5s infinite ease-in-out;
}

/* Клик-эффект */
.melody-icon.clicked {
  animation: clickEffect 0.3s ease;
}

.nota-burger {
  display: none;
}

#modal-form-input-pochta{
  font-size: 13px;
}

/* Основні стилі для кнопок */
#yes-photo,
#no-photo {
  padding: 12px 24px;
  font-size: 18px;
  font-weight: bold;
  color: white;
  border: 2px solid transparent; /* Прозора рамка для ефекту свічення */
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  transition: all 0.4s ease;
  background: #333; /* Темний фон кнопки */
}

/* Стилі для кнопки "Так" */
#yes-photo {
  box-shadow: 0 0 10px #4caf50, 0 0 20px #4caf50 inset;
}

/* Стилі для кнопки "Ні" */
#no-photo {
  box-shadow: 0 0 10px #f44336, 0 0 20px #f44336 inset;
}

/* Анімація постійного свічення */
@keyframes glowing-yes {
  0% {
    box-shadow: 0 0 5px #4caf50, 0 0 10px #4caf50 inset;
  }
  50% {
    box-shadow: 0 0 15px #4caf50, 0 0 30px #4caf50 inset;
  }
  100% {
    box-shadow: 0 0 5px #4caf50, 0 0 10px #4caf50 inset;
  }
}

@keyframes glowing-no {
  0% {
    box-shadow: 0 0 5px #f44336, 0 0 10px #f44336 inset;
  }
  50% {
    box-shadow: 0 0 15px #f44336, 0 0 30px #f44336 inset;
  }
  100% {
    box-shadow: 0 0 5px #f44336, 0 0 10px #f44336 inset;
  }
}

#yes-photo {
  animation: glowing-yes 2s infinite alternate; /* Запускаємо анімацію */
  margin-right: 4rem;
}

#no-photo {
  animation: glowing-no 2s infinite alternate;
}

/* Ефект при наведенні курсору */
#yes-photo:hover,
#no-photo:hover {
  transform: scale(1.05); /* Збільшуємо кнопку */
}

#camera-box{
    margin-top: 20px;
    flex-direction: column;
}

#snap{height: 3rem;}

/* Анимация пульсации */
@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.9; }
  100% { transform: scale(1); opacity: 1; }
}

/* Эффект нажатия */
@keyframes clickEffect {
  0% { transform: scale(1); }
  50% { transform: scale(0.8); }
  100% { transform: scale(1); }
}



    @media (max-width: 768px) {
        .nota-burger {
            display: flex;
            align-items: center;
            gap: 10px;
        }
  .gallery {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
    border-radius: 1rem;
  }

  .gallery-item {
    flex: 0 0 auto;
    width: 102%; /* можно изменить на 90% или фиксированную ширину */
    scroll-snap-align: start;
  }
}

    @media(max-width:1500px) {
      .nav-list {gap:60px;}
    }
    @media(max-width:1200px) {
      .nav-list {gap:25px;}
      .p-style{width: 257px!important; ;font-size: 15px !important; line-height: 27px;}
    }
    @media(max-width:1000px) {
      .nav-list {gap:10px;}
    }
    /* Адаптив */
    @media(max-width:700px) {
      .nav-list { display:none; position:absolute; top:100px; left:0; background:rgba(0, 0, 0, 0.7); width:100%; flex-direction:column;padding-left: 2rem; padding-bottom: 1rem;}
      .nav-list.show { display:flex; }
      .hamburger { display:block; }
      section { padding:80px 20px; max-width:1200px; margin:0 auto 40px auto; }
      .social-icons-nav { display: none; }
      .contact-block { flex-direction: column; }
      .contact-form { width: 100%; }
      .contact-info-text { width: 100%; margin-top: 20px; }
      .about-section { flex-direction: column; text-align: center; }
      .about-image-container { width: 100%; }
      .about-text { padding: 0; }
      .about-paragraph,
      .about-subtitle,
      .about-list    {text-align: left;}
      .social-iconss{display: flex; flex-direction:row;}
      .p-style{width: 226px !important;font-size: 13px !important;}
      .contact-form-button {border: 1px dashed white;}
      footer p {text-align: center;}
      .modal-messenger-option{font-size: 10px;}
      .fragment {animation: wiggle 3s infinite ease-in-out; background-size: 1000% 1000%;}
      .certificate {text-align: center;}
      #modal-form-input-pochta{
        font-size: 10px;
      }
      .price-title{font-size: 1.8rem;}
      
      .photo-container {
          height: 329px;
          }
      .contact-info-phone-link {margin-top: 22rem; font-size: 1rem;}
    }
    @media(max-width:450px) {
        .fade-in.visible {padding-top: 5rem;}
        .nav img {height: 78px;}
        .nav-list {top: 78px;}
    }
    

