body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #f8f9fa;
  color: #333;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
}

header {
  background-color: #fff;
  border-bottom: 2px solid #f1c40f;
  padding: 20px 0;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: #333;
}

.tagline {
  font-size: 14px;
  margin-top: 5px;
  color: #666;
}

.contacts {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.contacts a {
  text-decoration: none;
  color: #007bff;
  font-weight: bold;
}

.btn {
  background-color: #f1c40f;
  color: #000;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
}

.btn:hover {
  background-color: #f39c12;
}

.btn.large {
  font-size: 18px;
  margin-top: 20px;
}

h1, h2, h3 {
  color: #2c3e50;
}

section {
  padding: 40px 0;
  background-color: #fff;
  border-bottom: 1px solid #e0e0e0;
}

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

.profile-pic {
  width: 180px;
  height: auto;
  border-radius: 10px;
}

.service-group ul {
  list-style: none;
  padding: 0;
}

.service-group li {
  padding: 5px 0;
  position: relative;
  padding-left: 20px;
}

.service-group li::before {
  content: "⚡";
  position: absolute;
  left: 0;
  top: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 500px;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.contact-form button {
  padding: 12px;
  font-size: 16px;
  font-weight: bold;
  background-color: #f1c40f;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.contact-form button:hover {
  background-color: #f39c12;
}

.language-switcher {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}

.language-switcher img {
  width: 24px;
  height: auto;
  cursor: pointer;
  border-radius: 3px;
}

.messengers {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.messengers a img {
  width: 32px;
  height: 32px;
}

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

  .profile-pic {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  header .container,
  section .container {
    padding: 10px;
  }

  .contacts {
    flex-direction: column;
    align-items: flex-start;
  }

.btn.large {
  display: block;
  width: 100%;
  max-width: 320px;
  margin: 20px auto 0;
  font-size: 18px;
  padding: 12px;
  box-sizing: border-box;
  text-align: center;
}


  .contact-form input,
  .contact-form textarea,
  .contact-form button {
    width: 100%;
  }
}
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: -2;
  top: 0;
  left: 0;
}
.messengers a img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: white;
  padding: 6px;
  box-sizing: border-box;
  object-fit: contain;
  box-shadow: 0 0 4px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}

.messengers a img:hover {
  transform: scale(1.1);
}
/* 🔹 Удаление горизонтального скролла */
body {
  overflow-x: hidden;
}

/* 🔹 Анимированный фон */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  background-size: 400% 400%;
  animation: gradientShift 20s ease infinite;
  z-index: -2;
}

#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: -1;
  top: 0;
  left: 0;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* 🔹 Галерея */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.gallery-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.gallery-item img:hover {
  transform: scale(1.03);
}

/* 🔹 Модальное окно */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,4);
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(255,255,255,0.2);
}

#modal-caption {
  margin: 20px auto;
  text-align: center;
  color: #fff;
  font-size: 18px;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

/* 🔹 Адаптивность */
@media (max-width: 600px) {
  .modal-content {
    max-width: 95%;
    max-height: 70vh;
  }
  #modal-caption {
    font-size: 16px;
  }
}
html, body {
  max-width: 100%;
  overflow-x: hidden;
}
#callbackModal {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background-color: rgba(0,0,0,0.8);
}

.modal-box {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  max-width: 400px;
  margin: 10% auto;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  position: relative;
}

.modal-box h3 {
  margin-top: 0;
  margin-bottom: 20px;
  color: #2c3e50;
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 20px;
  font-size: 26px;
  font-weight: bold;
  cursor: pointer;
  color: #666;
}
html[dir="rtl"] body {
  direction: rtl;
  text-align: right;
  font-family: 'Assistant', sans-serif; /* или любой другой шрифт для иврита */
}

html[dir="rtl"] .container,
html[dir="rtl"] .service-group,
html[dir="rtl"] .about-content,
html[dir="rtl"] .contact-form,
html[dir="rtl"] .reviews {
  text-align: right;
}

html[dir="rtl"] input,
html[dir="rtl"] textarea {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .logo,
html[dir="rtl"] .tagline,
html[dir="rtl"] .gallery-item p,
html[dir="rtl"] .review {
  text-align: right;
}

html[dir="rtl"] .language-switcher,
html[dir="rtl"] .messengers {
  direction: ltr;
  text-align: left;
}
html[dir="rtl"] ul {
  padding-right: 1.5em;
  padding-left: 0;
  list-style-position: inside;
}

html[dir="rtl"] ul li {
  direction: rtl;
  text-align: right;
}
html[dir="rtl"] .service-group ul {
  text-align: right;
}

html[dir="rtl"] .service-group ul li::marker {
  direction: rtl;
}
