@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Roboto:wght@300;400;500&display=swap');
        
        body {
            margin: 0;
            padding: 0;
            font-family: 'Roboto', sans-serif;
            background-color: #f8f9fa;
            color: #333; 
        }

        .title-font {
            font-family: 'Playfair Display', serif;
        }

        .bg-primary {
            background-color: #150225;
        }

        .bg-accent {
            background-color: #e2c675;
        }

        .text-accent {
            color: #e2c675;
        }

        .border-accent {
            border-color: #e2c675;
        }

        header {
            background-color: #170328;
            padding: 0 30px;
            box-shadow: 0 2px 8px rgba(26, 11, 58, 0.6);
            position: sticky;
            top: 0;
            z-index: 1000;
            border-bottom: 3px solid #e2c675;
        }

        nav {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
        }

        .logo {
            display: flex;
            align-items: center;
            user-select: none;
            text-decoration: none;
            animation: slideIn 0.8s ease-out forwards;
            opacity: 0;
            transform: translateX(-30px);
        }

        .logo img {
            height: 84px;
            width: auto;
            display: block;
        }

        @keyframes slideIn {
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        /* Анімація для номера телефону */
        .phone {
            color: #e2c675;
            font-size: 18px;
            display: flex;
            align-items: center;
            gap: 8px;
            user-select: none;
            text-decoration: none;
            animation: fadeInFromRight 0.8s ease-out 0.4s forwards; /* Затримка 0.4s */
            opacity: 0;
            transform: translateX(30px);
        }

        @keyframes fadeInFromRight {
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        .phone svg {
            width: 22px;
            height: 22px;
            fill: #e2c675;
        }

        ul.menu {
            list-style: none;
            display: flex;
            justify-content: center;
            padding: 0;
            margin: 0;
        }

        ul.menu li {
            margin: 0 8px;
            /* Анімація для кнопок меню */
            opacity: 0;
            transform: translateY(20px);
            animation: fadeInUp 0.6s ease-out forwards;
        }

        ul.menu li:nth-child(1) { animation-delay: 0.6s; } /* Затримка для кожного елемента */
        ul.menu li:nth-child(2) { animation-delay: 0.7s; }
        ul.menu li:nth-child(3) { animation-delay: 0.8s; }
        ul.menu li:nth-child(4) { animation-delay: 0.9s; }
        ul.menu li:nth-child(5) { animation-delay: 1.0s; }

        @keyframes fadeInUp {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* КОНКРЕТИЗАЦІЯ СТИЛІВ ДЛЯ МЕНЮ ХЕДЕРА */
        header ul.menu li a { /* Додав 'header' для більшої специфічності */
            position: relative;
            text-decoration: none;
            color: #e2c675; /* Акцентний колір для посилань хедера */
            font-size: 18px;
            padding: 8px 0;
            display: inline-block;
        }

        header ul.menu li a::after {
            content: '';
            position: absolute;
            width: 0;
            height: 2px;
            bottom: -2px;
            left: 0;
            background-color: #e2c675;
            transition: width 0.3s ease;
        }

        header ul.menu li a:hover::after {
            width: 100%;
        }

        header ul.menu li a:hover {
            color: #fff4b3; /* Колір при наведенні для посилань хедера */
        }

        .burger {
            display: none;
            flex-direction: column;
            cursor: pointer;
            width: 28px;
            height: 22px;
            justify-content: space-between;
        }

        .burger span {
            display: block;
            height: 4px;
            background: #e2c675;
            border-radius: 2px;
            transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            transform-origin: center;
        }

        .burger.active span:nth-child(1) {
            transform: translateY(9px) rotate(45deg);
        }

        .burger.active span:nth-child(2) {
            opacity: 0;
            transform: scaleX(0);
        }

        .burger.active span:nth-child(3) {
            transform: translateY(-9px) rotate(-45deg);
        }

        @media (max-width: 920px) {
            nav {
                justify-content: flex-start;
                gap: 10px;
                position: relative;
            }

            .logo img {
                height: 76px;
            }

            .phone {
                order: 2;
                width: 100%;
                justify-content: flex-start;
                font-size: 16px;
                margin-top: 8px;
                /* Анімація для мобільного номера телефону */
                animation: fadeInFromLeftMobile 0.8s ease-out 0.4s forwards;
                transform: translateX(-30px);
            }

            @keyframes fadeInFromLeftMobile {
                to {
                    opacity: 1;
                    transform: translateX(0);
                }
            }

            ul.menu {
                order: 3;
                width: 100%;
                flex-direction: column;
                background-color: #170328;
                border-radius: 8px;
                overflow: hidden;
                max-height: 0;
                transition: max-height 0.3s ease;
                margin-top: 8px;
                /* Вимикаємо початкову анімацію для мобільного меню, вона активується при "open" */
                animation: none;
            }

            ul.menu.open {
                max-height: 500px;
            }

            ul.menu li {
                margin: 0;
                border-bottom: 1px solid #46356e;
                /* **ВАЖЛИВО:** Вимикаємо початкову анімацію для пунктів мобільного меню */
                animation: none !important; /* !important для гарантії, що перекриє інші правила */
                opacity: 1; /* Забезпечуємо видимість без анімації */
                transform: translateY(0); /* Скидаємо трансформацію */
            }

            ul.menu li:last-child {
                border-bottom: none;
            }

            ul.menu li a {
                display: block;
                padding: 12px 20px;
                font-size: 18px;
            }

            .burger {
                display: flex;
                order: 4;
                position: absolute;
                top: 35px;
                right: 0;
                /* Анімація для бургер-іконки */
                opacity: 0;
                transform: scale(0.8);
                animation: fadeInScale 0.6s ease-out 1.2s forwards; /* Затримка після появи пунктів меню */
            }

            @keyframes fadeInScale {
                to {
                    opacity: 1;
                    transform: scale(1);
                }
            }
        }

        @media (max-width: 600px) {
            nav {
                justify-content: flex-start;
                padding: 0 5px;
            }

            .logo img {
                height: 78px;
            }

            .phone {
                display: none; /* Залишаємо display: none для мобільних */
                justify-content: center;
            }
        }
 /* ----- геро ----- */

      .hero-section {
      background: linear-gradient(135deg, #1a0b3a 0%, #6f42c1 100%);
      color: #fff;
      height: 100vh;
      display: flex;
      align-items: center;
      justify-content: space-between;
      position: relative;
      overflow: hidden;
      padding: 4rem 3rem;
    }

    .hero-section::before {
      content: "";
      background: url('../img/bg.webp') no-repeat center center/cover;
      opacity: 0.25;
      position: absolute;
      top: 0;
      left: 0;
      bottom: 0;
      right: 0;
      z-index: 1;
      filter: brightness(0.6);
    }

    .hero-content {
      max-width: 600px;
      margin-left: 2rem;
      z-index: 2;
      opacity: 0;
      transform: translateY(20px);
      animation: slideFadeIn 1s ease forwards;
      animation-delay: 0.2s;
      text-align: left;
    }

    .hero-title {
      text-transform: uppercase;
      font-weight: 700;
      margin-bottom: 1rem;
      font-size: 26px;
      letter-spacing: 0.05em;
    }

    .hero-name {
      font-weight: 700;
      margin-bottom: 1rem;
      line-height: 1.4;
      
    }

    .hero-name span {
      display: block;
      font-size: 2.8rem;
    }

    .hero-subtitle {
      font-style: italic;
      font-size: 1.6rem;
      margin-bottom: 2rem;
    }

    .btn-custom {
      background-color: #e2c675;
      color: #1a0b3a;
      border: 3px solid #1a0b3a;
      border-radius: 50px;
      padding: 1rem 2.75rem;
      font-weight: 700;
      cursor: pointer;
      opacity: 0;
      transform: translateY(20px);
      animation: slideFadeIn 1s ease forwards;
      animation-delay: 1s;
      box-shadow: 0 6px 20px rgba(226,198,117,0.4);
      transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
      display: inline-block;
      text-transform: uppercase;
      font-size: 1rem;
      letter-spacing: 0.05em;
      text-decoration: none;
    }

    .btn-custom:hover,
    .btn-custom:focus {
      background-color: #cbb15a;
      color: #1a0b3a;
      transform: translateY(0) scale(1.05);
      box-shadow: 0 8px 25px rgba(203,177,90,0.7);
    }

    .hero-image {
      z-index: 2;
      max-width: 30%;
      height: auto;
      opacity: 0;
      animation: slideFadeIn 1s ease forwards;
      animation-delay: 1.2s;
    }

    .hero-image img {
      width: 100%;
      border-radius: 20px;
      box-shadow: 0 0 50px rgba(255, 255, 255, 0.05);
      object-fit: cover;
      mask-image: radial-gradient(circle at center, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%);
      -webkit-mask-image: radial-gradient(circle at center, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%);
    }

    @keyframes slideFadeIn {
      0% {
        opacity: 0;
        transform: translateY(20px);
      }
      100% {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @media (max-width: 1024px) {
      .hero-section {
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        text-align: left;
        padding: 2rem 1.5rem;
      }

      .hero-content {
        max-width: 100%;
      }

      .hero-image {
        display: none;
      }

      .hero-name span {
        font-size: 2.8rem;
      }

      .hero-subtitle {
        font-size: 1.4rem;
      }

      .btn-custom {
        font-size: 1rem;
        padding: 0.85rem 2.2rem;
      }
    }

    @media (max-width: 600px) {
        
        .hero-section {
            height: 85vh; /* або наприклад 70vh */
            padding-top: 2rem;
            padding-bottom: 2rem;
        }


    .hero-content {
         margin-top: -90px;
         margin-left: 1rem;
         }

      .hero-name span {
        font-size: 2.4rem;
      }

      .hero-title {
        font-size: 1.2rem;
      }

      .hero-subtitle {
        font-size: 1.3rem;
      }

      .btn-custom {
        font-size: 1rem;
        padding: 0.75rem 2rem;
      }
    }


/* ----- про мене ----- */
  .about-section {
    background-color:  #f9f9f9;;
    border-radius: 16px;
    padding: 80px 30px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}


@media (min-width: 768px) {
  .about-section {
    padding: 80px 40px;
  }
}

@media (min-width: 1024px) {
  .about-section {
    padding: 100px 60px;
  }
}


    .about-title {
      text-align: center;
      font-size: 36px;
      font-weight: bold;
      color: #2E1A47;
      position: relative;
      margin-bottom: 60px;
    }

    .about-title::after {
      content: '';
      display: block;
      width: 60px;
      height: 4px;
      background: #C6A235;
      margin: 12px auto 0;
      border-radius: 2px;
    }

    .about-content {
      display: flex;
      flex-wrap: wrap;
      gap: 50px;
      justify-content: center;
      align-items: flex-start;
    }

    .about-content img {
      width: 100%;
      max-width: 400px;
      border-radius: 12px;
    }

    .about-text {
      max-width: 800px;
    }

    .about-advokat {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.07);
    }

    

    .about-text h3 {
      font-size: 26px;
      color: #0F2B5B;
      margin-top: 30px;
      font-weight: 700; /* Додано */
    }


    .about-text p {
      font-size: 16px;
      color: #2E2E2E;
      margin-bottom: 18px;
    }

    .grid-container {
      margin-top: 30px;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      gap: 16px;
    }

    .value-block {
      background: #fff;
      border-radius: 8px;
      padding: 14px 16px;
      display: flex;
      align-items: flex-start;
      gap: 12px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
      border-left: 4px solid #C6A235;
    }

    .icon {
      font-size: 26px;
      color: #C6A235;
      margin-top: 2px;
      flex-shrink: 0;
    }

    .text-content h3 {
      margin: 0;
      font-size: 15px;
      font-weight: 600;
      color: #2E1A47;
    }

    .text-content p {
      font-size: 13px;
      color: #2E2E2E;
      margin-top: 2px;
      margin-bottom: 3px;
    }

    @media (max-width: 768px) {
      .about-content {
        flex-direction: column;
        align-items: center;
      }
    }

    .quote {
    font-style: italic;
    font-size: 1rem;
    color: #cbb15a;
    text-align: left;
    border-left: 4px solid #c6a235;
    padding-left: 20px;
    margin: 20px 0;
}





/* ----- послуги----- */
    .services {
      margin-top: 50px;
      padding: 20px 0;
      background-color: #f5f5f5;
      color: #333333;
    }

    .service-container {
      display: flex;
      justify-content: center;
    }

    .service {
      text-align: center;
      font-size: 36px;
      font-weight: 600;
      color: #2E1A47;
      margin-bottom: 24px;
      display: inline-block;
      position: relative;
    }

    .service::after {
      content: '';
      display: block;
      width: 60px;
      height: 4px;
      background: #C6A235;
      margin: 12px auto 0;
      border-radius: 2px;
    }


    .service-info {
      text-align: center;
      font-size: 20px;
      line-height: 1.5;
      color: #666666;
      margin-bottom: 52px;
    }

    .grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
      gap: 24px;
      margin: 0 auto;
      max-width: 1200px;
      padding: 0 20px;
    }

    .card {
      position: relative;
      overflow: hidden;
      background-color: #ffffff;
      border: 1px solid #e0e0e0;
      border-radius: 16px;
      padding: 24px;
      transition: all 0.3s ease;
      z-index: 1;
      display: flex;
      flex-direction: column;
    }

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

    .card-body {
      flex-grow: 1;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
    }




    .card::before {
      content: '';
      position: absolute;
      top: 0; left: 0;
      width: 100%; height: 100%;
      background-size: cover;
      background-position: center;
      opacity: 0;
      transition: opacity 0.5s ease;
      z-index: 0;
    }

    .card:hover {
      border: 1px solid #b8860b;
      box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
      transform: translateY(-6px);
    }

    .card:hover::before {
      opacity: 0.2;
    }

    .card * {
      position: relative;
      z-index: 1;
    }

    .card .icon {
      color: #e2c675;
      font-size: 32px;
      margin-bottom: 16px;
      text-shadow: 0 0 5px rgba(226, 198, 117, 0.8);
    }

    h3 {
      color: #333333;
      font-size: 18px;
      font-weight: 600;
      margin: 0;
    }

    .desc {
      color: #666666;
      font-size: 15px;
      line-height: 1.5;
      margin: 8px 0 0;
    }

    .price {
      color: #888888;
      font-size: 15px;
      display: flex;
      justify-content: space-between;
      margin-top: 24px;
    }

    .price span {
      color: #b8860b;
      font-weight: bold;
      white-space: nowrap;
    }

    .card:hover .icon {
      color: #fff;
      text-shadow: 0 0 8px rgba(255, 255, 255, 0.7);
    }

    .button {
      background-color: transparent;
      border: 1px solid #b8860b;
      border-radius: 8px;
      color: #b8860b;
      font-size: 14px;
      padding: 10px 16px;
      text-align: center;
      text-decoration: none;
      display: block;
      transition: all 0.2s ease;
      margin-top: 32px;
    }


    .card:hover .button {
      background-color: #e2c675;
      color: #fff;
      border-color: #b8860b;
    }



    @media (min-width: 1024px) {
  .value-block {
    perspective: 1000px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    transform-style: preserve-3d;
    position: relative;
  }

  .value-block:hover {
    transform: rotateY(8deg) rotateX(5deg);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
  }

  .value-block::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(120deg, rgba(255,255,255,0.0) 30%, rgba(255,255,255,0.2) 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
  }

  .value-block:hover::after {
    opacity: 1;
  }
}


@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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


    /* Фонові зображення — заглушки */
    .bg-1::before {
      background-image: url('../img/vijskove.webp');
    }

    .bg-2::before {
      background-image: url('../img/civil.webp');
    }

    .bg-3::before {
      background-image: url('../img/administativ.webp');
    }

    .bg-4::before {
      background-image: url('../img/hospodarske.webp');
    }

    .bg-5::before {
      background-image: url('../img/kriminal.webp');
    }

    .bg-6::before {
      background-image: url('../img/other service.webp');
    }

    /* Адаптивні стилі */
    @media (max-width: 768px) {
      .service {
        font-size: 31px;
      }

      .service-info {
        font-size: 17px;
      }

      .button {
        font-size: 12px;
      }

      .grid {
        padding: 0 10px;
      }
    }

    @media (max-width: 480px) {
      .service {
        font-size: 28px;
      }

      .service-info {
        font-size: 17px;
        padding: 5px;
      }

      .button {
        padding: 8px 12px;
      }
    }

    
/* ----- кейси----- */
    main {
      position: relative;
      width: calc(min(90rem, 90%));
      margin: 0 auto;
      min-height: 100vh;
      column-gap: 3rem;
      padding-block: min(20vh, 3rem);
    }

    .bg {
      position: fixed;
      top: -4rem;
      left: -12rem;
      z-index: -1;
      opacity: 0.1; /* Завжди видимий */
    }

    .bg2 {
      position: fixed;
      bottom: -2rem;
      right: -3rem;
      z-index: -1;
      width: 9.375rem;
      opacity: 0.1; /* Завжди видимий */
    }

    main > div span {
      text-transform: uppercase;
      letter-spacing: 1.5px;
      font-size: 1rem;
      color: #717171;
    }


    

    main > div h1 {
      text-transform: capitalize;
      letter-spacing: 0.8px;
      font-family: "Roboto", sans-serif;
      font-weight: 900;
      font-size: clamp(3.4375rem, 3.25rem + 0.75vw, 4rem);
      background-color: #005baa;
      background-image: linear-gradient(45deg, #005baa, #000000);
      background-size: 100%;
      background-repeat: repeat;
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      -moz-background-clip: text;
      -moz-text-fill-color: transparent;
    }

    main > div hr {
      display: block;
      background: #005baa;
      height: 0.25rem;
      width: 6.25rem;
      border: none;
      margin: 1.125rem 0 1.875rem 0;
    }

    main > div p {
      line-height: 1.6;
    }

    main a {
      display: inline-block;
      text-decoration: none;
      text-transform: uppercase;
      color: #717171;
      font-weight: 500;
      background: #fff;
      border-radius: 3.125rem;
      transition: 0.3s ease-in-out;
    }

    main > div > a {
      border: 2px solid #c2c2c2;
      margin-top: 2.188rem;
      padding: 0.625rem 1.875rem;
    }

    main > div > a:hover {
      border: 0.125rem solid #1a0b3a;
      color: #1a0b3a;
    }

    .swiper {
      width: 100%;
      padding-top: 3.125rem;
    }

    .swiper-pagination-bullet,
    .swiper-pagination-bullet-active {
      background: #fff;
    }

    .swiper-pagination {
      bottom: 1.25rem !important;
    }

    .swiper-slide {
      border-radius: 15px;
      width: 18.75rem;
      height: 28.125rem;
      display: flex;
      flex-direction: column;
      justify-content: end;
      align-items: self-start;
    }

    .swiper-slide h2 {
      background: #976f08;
      color: #fff;
      font-family: "Roboto", sans-serif;
      font-weight: 400;
      font-size: 1.1rem;
      line-height: 1.4;
      margin-bottom: 0.625rem;
      padding: 0 0 0 1.563rem;
      text-transform: uppercase;
    }

    .swiper-slide p {
      background: #07345f;
      color: #dadada;
      font-family: "Roboto", sans-serif;
      font-weight: 300;
      padding: 0 1.563rem;
      line-height: 1.6;
      font-size: 0.95rem;
      display: -webkit-box;
      -webkit-line-clamp: 4;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .swiper-slide a {
      margin: 1.25rem 1.563rem 3.438rem 1.563rem;
      padding: 0.438em 1.875rem;
      font-size: 0.9rem;
    }

    .swiper-slide a:hover {
      color: #1a0b3a;
    }

    .swiper-slide div {
      display: none;
      padding-bottom: 0.625rem;
    }

    .swiper-slide-active div {
      display: block;
      opacity: 1;
    }

    .swiper-slide--one {
      background: linear-gradient(to top, #0f2027, #203a4300, #2c536400),
        url("../img/1.webp") no-repeat 50% 50% / cover;
    }

    .swiper-slide--two {
      background: linear-gradient(to top, #0f2027, #203a4300, #2c536400),
        url("../img/2.webp") no-repeat 50% 50% / cover;
    }

    .swiper-slide--three {
      background: linear-gradient(to top, #0f2027, #203a4300, #2c536400),
        url("../img/3.webp") no-repeat 50% 50% / cover;
    }

    .swiper-slide--four {
      background: linear-gradient(to top, #0f2027, #203a4300, #2c536400),
        url("../img/4.webp") no-repeat 50% 50% / cover;
    }

    .swiper-slide--five {
      background: linear-gradient(to top, #0f2027, #203a4300, #2c536400),
        url("../img/5.webp") no-repeat 50% 50% / cover;
    }

    .swiper-3d .swiper-slide-shadow-left,
    .swiper-3d .swiper-slide-shadow-right {
      background-image: none;
    }

    @media screen and (min-width: 48rem) {
      main {
        display: flex;
        align-items: center;
      }
    }

    @media screen and (min-width: 93.75rem) {
      .swiper {
        width: 85%;
      }
    }

    /* --- Animation CSS --- */
    
    /* --- End Animation CSS --- */

    /* --- Popup Overlay --- */
    .popup-overlay {
      display: none; /* Приховано за замовчуванням */
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.7); /* Напівпрозорий фон */
      z-index: 1000; /* Перекриває весь контент */
      justify-content: center;
      align-items: center;
      opacity: 0;
      transition: opacity 0.3s ease-in-out;
    }

    .popup-overlay.active {
      display: flex;
      opacity: 1;
    }

    /* Popup Content */
    .popup-content {
      background-color: #fff;
      padding: 30px;
      border-radius: 10px;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
      max-width: 600px;
      width: 90%;
      position: relative;
      transform: translateY(-50px); /* Початкове зміщення для анімації */
      transition: transform 0.3s ease-out, opacity 0.3s ease-out;
      opacity: 0;
      animation: slideInFromTop 0.4s forwards ease-out; /* Анімація появи */
    }

    .popup-overlay.active .popup-content {
        transform: translateY(0);
        opacity: 1;
    }


    .popup-content h3 {
      font-family: "Playfair Display", serif;
      font-size: 1.8rem;
      color: #005baa;
      margin-bottom: 15px;
    }

    .popup-content p {
      font-size: 1rem;
      line-height: 1.6;
      color: #333;
      margin-bottom: 10px;
    }

    .popup-content p strong {
      color: #b8860b;
    }

    /* Close button */
    .close-popup-btn {
      position: absolute;
      top: 15px;
      right: 15px;
      background: none;
      border: none;
      font-size: 2rem;
      color: #999;
      cursor: pointer;
      transition: color 0.3s ease;
    }

    .close-popup-btn:hover {
      color: #333;
    }

    /* Keyframe for popup animation */
    @keyframes slideInFromTop {
      from {
        transform: translateY(-50px);
        opacity: 0;
      }
      to {
        transform: translateY(0);
        opacity: 1;
      }
    }
    
/* --- End Popup Overlay --- */


/* -----контактна форма ----- */

     .gradient-bg {
      background-color: #1a0b3a;
    }

    .gold-text { color: #d4af37; }
    .contact-card {
      box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
      transition: all 0.3s ease;
    }
    .contact-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    }
    .input-field {
      border: none;
      border-bottom: 2px solid #d1d5db;
      background-color: transparent;
      padding: 0.75rem 0;
      transition: all 0.3s ease;
    }
    .input-field:focus {
      border-bottom-color: #6366f1;
      outline: none;
    }
    .icon-circle {
      width: 50px; height: 50px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      background: rgba(255,255,255,0.1);
      transition: all 0.3s ease;
    }
    .icon-circle:hover {
      background: rgba(255,255,255,0.2);
      transform: scale(1.1);
    }

        /* ----- НОВІ СТИЛІ ДЛЯ ПОСИЛАНЬ ФУТЕРА ----- */
        footer a {
            color: inherit; /* Наслідує колір батьківського елемента (text-gray-400 або text-gray-500) */
            transition: color 0.3s ease; /* Додаємо плавний перехід */
        }

        footer a:hover {
            color: #e2c675 !important; /* Встановлюємо акцентний колір при наведенні і використовуємо !important */
        }

        /* Виняток для іконок соцмереж, якщо вони мають міняти background */
        footer .flex.space-x-3 a:hover {
            background-color: #e2c675 !important; /* Фон акцентний */
            color: #150225 !important; /* Текст первинний */
        }

        /* Для посилань в copy-блоці, які мають underline */
        footer .border-t a:hover {
            text-decoration: underline; /* Підкреслення зберігається */
        }

/* --- СКРОЛ ДЛЯ СПИСКУ ПОСЛУГ В ПОПАПІ --- */


#modal {
  align-items: center !important;
  justify-content: center !important;
  padding: 1rem !important;
}

#modal .popup-content {
  max-height: 80vh;
  overflow-y: auto;
  width: 100%;
  max-width: 600px;
  border-radius: 12px;
  padding: 1.5rem;
}

@media (max-width: 640px) {
  #modal .popup-content {
    padding: 1.25rem;
  }
}

/* Стилізація скролбару */
#modalList::-webkit-scrollbar {
  width: 8px;
}
#modalList::-webkit-scrollbar-thumb {
  background-color: #c6a235;
  border-radius: 4px;
}
#modalList::-webkit-scrollbar-track {
  background: #f0f0f0;
}


/* кнопка внизу для замовлення дзвінка */

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(203, 177, 90, 0.4);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(203, 177, 90, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(203, 177, 90, 0);
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-6px);
  }
  60% {
    transform: translateY(-3px);
  }
}

@keyframes fade-toggle {
  0%, 100% {
    opacity: 0;
    transform: translateY(-5px);
  }
  50% {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-pulse-ring {
  animation: pulse-ring 2s infinite;
}

.animate-pulse-bounce {
  animation: bounce 2s infinite;
}

.animate-fade-toggle {
  animation: fade-toggle 4s infinite;
}


/* Стилізація скролбару для Webkit-браузерів (Chrome, Edge, Safari) */
::-webkit-scrollbar {
  width: 10px; /* Ширина смуги прокрутки */
}

::-webkit-scrollbar-track {
  background: #b2adbd; /* Колір фону доріжки смуги прокрутки */
}

::-webkit-scrollbar-thumb {
  background: #1a0b3a; /* Колір повзунка смуги прокрутки - обрано один з ваших акцентних кольорів */
  border-radius: 5px; /* Заокруглені кути повзунка */
}

::-webkit-scrollbar-thumb:hover {
  background: #26154d; /* Колір повзунка при наведенні - трохи темніший акцентний колір */
}

/* Додатково для Firefox (більш обмежена підтримка) */
/* Ця частина може не дати такого ж детального контролю, як Webkit */
body {
  scrollbar-width: thin; /* 'auto' або 'thin' */
  scrollbar-color: #1a0b3a #f1f1f1; /* Колір повзунка і колір доріжки */
}