.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  padding: 20px;
  box-sizing: border-box;
}

.modal-content {
  background: #f7f7f9;
  color: #222;
  font-size: 1rem;
  width: 100%;
  max-width: 880px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  position: relative;
  border-radius: 24px;
  box-shadow: inset 0 0 0 1px #eaeaea, 0 10px 50px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.modal-header {
  position: sticky;
  top: 0;
  background: #f7f7f9;
  padding: 10px 20px;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
}

.close-modal {
  background: transparent;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #bbb;

}

.close-modal:hover {

  color: white;
}

.modal-body {
  overflow-y: auto;
  padding: 30px;
  flex-grow: 1;
}
  
  
  .modal-content p {
    line-height: 1.8;
    font-family: 'JosefinSans', sans-serif;
    font-weight: normal;
    margin-bottom: 1.2rem;
    color: #333;
    text-align: justify;
    word-break: break-word;
    text-decoration: none;
  }
  
  .modal-content strong {
    font-size: 1.8rem;
    color: #111;
    display: block;
    margin-bottom: 12px;
  }
  
  .modal-content ul {
    padding-left: 1.2rem;
    list-style: disc;
    margin-bottom: 1.2rem;
  }
  
  .modal-content img {
    max-height: 240px;
    width: 100%;
    object-fit: contain;
    background: #fff;
    border-radius: 20px;
    margin-bottom: 20px;
    padding: 10px;
    border: 1px solid #eaeaea;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
  }
  
  .modal-content::-webkit-scrollbar {
    width: 10px;
  }
  
  .modal-content::-webkit-scrollbar-track {
    background: #f7f7f9;
    border-radius: 10px;
  }
  
  .modal-content::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
    border: 2px solid #f7f7f9;
  }
  
  .modal-content::-webkit-scrollbar-thumb:hover {
    background: #999;
  }
  
  .modal-btn {
    margin-top: 20px;
    padding: 14px 32px;
    background: #111;
    color: white;
    border: none;
    border-radius: 14px;
    font-family: 'JosefinSans', sans-serif;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    align-self: center;
  }
  
  .modal-btn:hover {
    background: #333;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  }
  
 
  
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* ADAPTIVE */
  
  @media (max-width: 1024px) {
    .modal-content {
      padding: 25px 20px;
      font-size: 0.95rem;
    }
  }
  
  @media (max-width: 768px) {
    .modal {
      padding: 10px;
    }
  
    .modal-content {
      max-width: 95%;
      padding: 20px 15px;
      border-radius: 20px;
    }
  
    .modal-btn {
      font-size: 1rem;
      padding: 12px 24px;
    }
  
    .modal-content img {
      max-height: 200px;
      border-radius: 16px;
    }
  
    .close-modal {
      top: 10px;
      right: 15px;
      font-size: 1.6rem;
    }
  }
  
  @media (max-width: 480px) {
    .modal-content {
      font-size: 0.9rem;
      padding: 18px 12px;
      border-radius: 16px;
    }
  
    .modal-content img {
      max-height: 160px;
      padding: 6px;
    }
  
    .modal-btn {
      font-size: 0.95rem;
      padding: 10px 18px;
      border-radius: 10px;
    }
  
    .close-modal {
      font-size: 1.4rem;
      right: 12px;
    }
  }
  
.modal-content h1,
.modal-content h2,
.modal-content h3,
.modal-content p, 
.service-card p {
  text-shadow: none !important;
}

/* ——— override крестика в модальном окне ——— */
.modal-content .close-modal {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  width: auto !important;
  height: auto !important;
  line-height: 1 !important;
  font-size: 1.6rem !important;    /* подберите ваш размер */
  color: #333 !important;         /* или другой цвет */
  top: 16px !important;
  right: 16px !important;
}


/* стиль кнопки “×” */
.close-mobile {
  width: 36px;
  height: 36px;
  font-size: 24px;
  line-height: 36px;
  text-align: center;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  color: #ffffff;
  position: absolute;
  top: 16px;
  right: 16px;
  cursor: pointer;
  transition: background 0.2s;
}
.close-mobile:hover {
  background: rgba(0, 0, 0, 0.2);
}

.mobile-menu .close-mobile {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

  