/* Основной стиль */
html[dir="rtl"] body {
  direction: rtl;
}

html[dir="rtl"] header,
html[dir="rtl"] section,
html[dir="rtl"] footer,
html[dir="rtl"] .feature,
html[dir="rtl"] .cta,
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] p,
html[dir="rtl"] ul,
html[dir="rtl"] li {
  text-align: right;
}


header {
  background-color: #0f2d4d;
  color: white;
  padding: 40px 20px;
  text-align: center;
}

header img {
  max-width: 100px;
  margin-bottom: 15px;
}

h1, h2, h3 {
  margin: 0 0 15px;
}

h2 {
  font-size: 1.8em;
}

section {
  padding: 40px 20px;
  max-width: 900px;
  margin: auto;
}

/* Блок преимуществ */
.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

.feature {
  background-color: white;
  border-radius: 8px;
  padding: 20px;
  flex: 1 1 280px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  text-align: center;
}

.icon {
  width: 64px;
  height: auto;
  margin-bottom: 10px;
}

/* CTA блок */
.cta {
  background-color: #e3eefb;
  text-align: center;
  padding: 40px 20px;
  border-top: 1px solid #ccc;
}

.cta a {
  display: inline-block;
  margin-top: 20px;
  background-color: #0f2d4d;
  color: white;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 5px;
}

/* Футер */
footer {
  background-color: #0f2d4d;
  color: white;
  text-align: center;
  padding: 20px;
}

/* FAQ */
.faq h3 {
  cursor: pointer;
  transition: color 0.3s ease;
}

.faq p {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
  margin: 0;
}

.faq h3:hover + p {
  max-height: 200px;
  margin: 10px 0 20px;
}

/* Языковое переключение */
.language-switch {
  position: absolute;
  top: 20px;
  right: 20px;
}

.language-switch a {
  color: white;
  margin-left: 15px;
  text-decoration: underline;
  font-size: 0.9em;
}

/* WhatsApp кнопка */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  text-align: center;
  line-height: 56px;
  font-size: 28px;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  text-decoration: none;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
  .features {
    flex-direction: column;
  }

  .language-switch {
    position: static;
    text-align: center;
    margin-top: 10px;
  }
}
.carousel-container {
  position: relative;
  overflow: hidden;
  margin-top: 30px;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
  will-change: transform;
}

.testimonial {
  min-width: 100%;
  background-color: #fff;
  margin: 0 10px;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  border-radius: 8px;
  text-align: center;
  font-size: 1.1em;
}

.carousel-wrapper {
  position: relative;
  overflow: hidden;
}

.carousel-window {
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.testimonial {
  min-width: 100%;
  box-sizing: border-box;
  background-color: white;
  padding: 20px;
  margin: 0 10px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  font-size: 1.1em;
}

.carousel-window {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.carousel-track {
  display: flex;
  scroll-snap-align: start;
}

.testimonial {
  min-width: 100%;
  scroll-snap-align: center;
  padding: 20px;
  margin: 0 10px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  text-align: center;
  font-size: 1.1em;
  box-sizing: border-box;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #0f2d4d;
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 2;
  font-size: 24px;
}
.carousel-btn.prev { left: 0; }
.carousel-btn.next { right: 0; }
