body {
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  padding: 0;
  background: #e6eefb;
  color: #333;
  line-height: 1.6;
}

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

/* --- NAVBAR --- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 7%; /* Увеличиваем отступы по бокам */
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #eee;
}
.logo {
  font-size: 1.6em;
  font-weight: bold;
  color: #2f3640;
}
nav {
  display: flex;
  gap: 25px;
  align-items: center;
}
nav a {
  text-decoration: none;
  color: #333;
  font-weight: 700;
  transition: 0.3s;
}
nav a:hover {
  color: #6a89cc;
}

.right-menu {
  display: flex;
  align-items: center;
  gap: 15px;
}

.auth-btn {
  /* Базовый стиль */
  padding: 7px 16px;
  border: 2px solid #6a89cc; /* Синяя рамка */
  border-radius: 25px; /* Закругление углов */
  text-decoration: none;
  color: #6a89cc; /* Цвет текста */
  font-weight: 500;
  transition: all 0.3s ease; /* Плавный переход для эффектов */
}

.auth-btn:hover {
  background-color: #6a89cc; /* Цвет фона при наведении */
  color: #fff; /* Цвет текста при наведении */
  box-shadow: 0 4px 12px rgba(106, 137, 204, 0.3); /* Легкая тень */
}

/* --- BURGER --- */
.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  padding: 5px;
  transition: all 0.3s ease;
}
.burger div {
  width: 25px;
  height: 3px;
  background: #333;
  transition: all 0.3s ease;
}
.burger.active .line1 { transform: rotate(-45deg) translate(-5px, 6px); }
.burger.active .line2 { opacity: 0; }
.burger.active .line3 { transform: rotate(45deg) translate(-5px, -6px); }

/* --- MOBILE MENU --- */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: white;
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 80%;
  max-width: 300px;
  box-shadow: -2px 0 10px rgba(0,0,0,0.2);
  padding-top: 70px;
  z-index: 1500;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
}
.mobile-nav.show {
  display: flex;
  transform: translateX(0);
}
.mobile-nav a, .mobile-nav .dropbtn {
  padding: 15px;
  border-bottom: 1px solid #eee;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  display: block;
  width: 100%;
  text-align: left;
}
.mobile-nav a:hover {
  background: #f0f0f0;
}

/* Затемнение фона */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1400;
}
.overlay.show {
  display: block;
}

/* --- DROPDOWN (LANG SELECT) --- */
.dropdown {
  position: relative;
  display: inline-block;
}
.dropbtn {
  background: #eee;
  border: none;
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.3s ease;
}
.dropbtn:hover {
  background: #e0e0e0;
}
.dropdown-content {
  display: none;
  position: absolute;
  top: 45px;
  right: 0;
  background: white;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  border-radius: 8px;
  min-width: 140px;
  z-index: 2000;
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
  from {opacity: 0; transform: translateY(-10px);}
  to {opacity: 1; transform: translateY(0);}
}
.dropdown-content a {
  padding: 10px;
  display: block;
  text-decoration: none;
  color: #333;
  transition: background 0.3s ease;
}
.dropdown-content a:hover {
  background: #f0f0f0;
}
.dropdown.show .dropdown-content {
  display: block;
}

/* --- MOBILE DROPDOWN LANGUAGE --- */
#langDropdownMobile .dropdown-content {
  position: static;
  box-shadow: none;
  border-radius: 0;
  border-top: 1px solid #eee;
  min-width: unset;
  width: 100%;
}
#langDropdownMobile .dropbtn {
  background: none;
  padding-left: 15px;
  padding-right: 15px;
  border-radius: 0;
  text-align: left;
}

/* --- HERO --- */
.hero { 
  position: relative; 
  overflow: hidden; 
  background: linear-gradient(135deg, #6a89cc, #82ccdd);
  color: white;
  padding: 100px 20px;
  text-align: center;
}

/* Добавляем оверлей */
.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.12); /* легкий темный слой */
  pointer-events: none;
  z-index: 0;
}

.hero > * {
  position: relative; /* чтобы контент был поверх оверлея */
  z-index: 1;
}

.hero h1 {
  font-family: 'Montserrat', sans-serif;
  margin-top: -10px; /* сдвигаем вверх */
  font-size: 20px;
  margin-bottom: 25px;
  font-weight: 800;
  line-height: 1.1;
  color: #f0f4f8;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.25); /* усилил тень */
}

.hero p strong {
  font-family: 'Montserrat', sans-serif;
  color: #ffffff;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.385); /* чуть сильнее тень для акцента */
}




/* Сделаем ключевые слова выделенными */
.hero p strong {
  color: #ffffff;
  font-weight: 700;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}


.circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  width: var(--size);
  height: var(--size);
  top: var(--top);
  left: var(--left);
  animation: float var(--duration) ease-in-out infinite alternate;
  pointer-events: none; /* добавляем, чтобы не блокировать клики */
}

@keyframes float {
  from { transform: translateY(0) translateX(0) rotate(0deg); }
  to { transform: translateY(-30px) translateX(20px) rotate(360deg); }
}

.hero h1 {
  font-size: clamp(2em, 5vw, 3.5em);
  margin-bottom: 15px;
  font-weight: 700;
}
.hero p {
  font-size: clamp(1em, 2vw, 1.2em);
  margin-bottom: 30px;
}

.hero a {
  background: white;
  color: #6a89cc;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  z-index: 25;
}
.hero a:hover {
  background: #f1f2f6;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.hero .auth-btn {
  display: inline-block;
  padding: 8px 25px;
  min-width: 150px;
  text-align: center;
  font-weight: 600;
  font-size: 16px;
  margin: 10px 15px 0 0;
  border-radius: 50px;
  background-color: #ffffff;      /* белый фон */
  color: #6a89cc;                 /* голубой текст */
  border: 0px solid #6a89cc;     /* рамка того же цвета */
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.hero .auth-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2); /* блеск */
  transform: skewX(-20deg);
  transition: all 0.5s ease;
}

.hero .auth-btn:hover::after {
  left: 200%;
}

.hero .auth-btn:hover {
  background-color: #6a89cc;     /* голубой фон */
  color: #ffffff;                /* белый текст */
  box-shadow: 0 8px 20px rgba(0,0,0,0.2); /* мягкая тень при наведении */
  transform: translateY(-3px);
}

.fade-in-text {
  opacity: 0;
  transform: translateX(-50px);
  animation: slideIn 2s forwards;
  animation-delay: 0.5s; /* задержка перед появлением */
  font-size: 1.2em;
  color: #ffffff;
}

.animated-text {
  opacity: 0;
  transform: translateX(-50px);
  animation: slideIn 2s forwards;
  animation-delay: 0.2s; /* задержка перед появлением */
  font-size: 1.2em;
  color: #ffffff;
}

/* Анимация плавного появления слева направо */
@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* --- Как это работает --- */
.card-img {
  width: 120px;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
  border-radius: 30px;
}

.card:hover .card-img {
  transform: translateY(-5px) rotate(5deg);
}

/* --- почему выбирают нас --- */
#advantages {
  padding: 80px 20px;
  background: #f0f4f8;
}

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

.advantage-card {
  background: white;
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.advantage-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.advantage-icon {
  font-size: 2.5em;
  color: #6a89cc;
  margin-bottom: 15px;
}

.advantage-card h4 {
  margin: 0 0 10px;
  font-size: 1.2em;
  color: #2f3640;
}

.advantage-card p {
  font-size: 0.95em;
  color: #666;
  line-height: 1.5;
}

/* --- SECTIONS --- */
section {
  padding: 60px 20px;
}
#advantages {
  padding: 60px 20px;
}
.section-title {
  text-align: center;
  font-size: 2.2em;
  margin-bottom: 50px;
  font-weight: 600;
  color: #2f3640;
}
.card {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.card-icon {
  font-size: 3em;
  color: #6a89cc;
  margin-bottom: 15px;
}
.card h3 {
  font-size: 1.2em;
  margin-bottom: 10px;
}
.card p {
  font-size: 0.95em;
  color: #666;
}
.grid-3-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

/* --- НОВЫЕ СТИЛИ ДЛЯ КАРТОЧЕК ПСИХОЛОГОВ --- */
.swiper-container.psychologists-slider {
  padding-bottom: 40px;
}

.psychologist-card.modern-card {
  position: relative;
  background-color: rgb(255, 255, 255);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease-in-out;
}

.psychologist-card.modern-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.card-image-container {
  position: relative;
  width: 100%;
  height: 350px; /* Фиксированная высота для всех фото */
  overflow: hidden;
  border-radius: 20px 20px 0 0; /* Закругленные углы сверху */
}

.card-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
  
}


.psychologist-card.modern-card:hover img {
  transform: scale(1.05);
}

/* Цена в правом верхнем углу */
.price-tag {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  font-size: 0.85em;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  z-index: 10;
}

/* Имя и опыт на фото внизу слева */
.image-info-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
  color: white;
  padding: 30px 20px 15px;
  box-sizing: border-box;
}

.image-info-overlay .name {
  font-size: 1.4em;
  font-weight: 700;
  margin: 0;
}

.image-info-overlay .experience {
  font-size: 0.9em;
  font-weight: 500;
  margin: 5px 0 0;
}

/* Нижняя информационная панель */
.card-bottom-info {
  background-color: #ffffff;
  padding: 20px;
  text-align: center;
}

.card-bottom-info .specialization {
  font-size: 0.95em;
  color: #666;
  margin-bottom: 15px;
}

.card-details {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.card-details .rating {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.9em;
  color: #6a89cc;
  font-weight: 600;
}

.card-details .rating i {
  color: #f7b731;
}

/* Кнопка "Записаться" */
.btn.secondary-btn {
  display: inline-block;
  background-color: #f0f4f8;
  color: #6a89cc;
  font-weight: 600;
  padding: 12px 30px;
  border-radius: 25px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
   /* Эта строка поднимет кнопку вверх */
    margin-top: -5px; 
}

.btn.secondary-btn:hover {
  background-color: #6a89cc;
  color: white;
  border: 2px solid #6a89cc;
}


.reviews-link {
    /* Базовый стиль */
    color: #6a89cc; /* Фирменный синий цвет */
    text-decoration: none; /* Убираем стандартное подчеркивание */
    font-weight: 700;
    margin-left: 10px; /* Небольшой отступ слева от рейтинга */
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

.reviews-link:hover {
    /* Стиль при наведении */
    text-decoration: underline; /* Появляется подчеркивание при наведении */
    color: #4a69bd; /* Чуть более темный оттенок синего */
}




/* --- REVIEWS SECTION --- */
.review-card {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.review-card p {
  font-style: italic;
  color: #555;
}
.reviewer-info {
  margin-top: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
}
.reviewer-info img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}
.reviewer-name {
  font-weight: bold;
  color: #2f3640;
}

/* Swiper styles */
/* ---- НОВІ СТИЛІ ---- */
.review-header {
    display: flex;
    justify-content: space-between; /* Розміщує рейтинг ліворуч, а інформацію про клієнта праворуч */
    align-items: center; /* Вирівнює елементи по вертикалі */
    margin-bottom: 20px; /* Відступ між заголовком і текстом відгуку */
}

/* Секція відгуків */
#reviews {
  padding: 60px 20px;
}

/* ---- ОНОВЛЕНІ ТА БАЗОВІ СТИЛІ КАРТКИ ВІДГУКУ ---- */

.review-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eef1f6;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

/* Стилизация блока с рейтингом */
.review-rating {
    display: flex;
    color: #f7b731;
    gap: 2px;
}

/* Стилизация текста отзыва */
.review-card p {
    font-size: 1.1em;
    line-height: 1.8;
    color: #555;
    font-style: italic;
    position: relative;
    padding-left: 0;
    border-left: none;
}

/* Стилизация информации о клиенте */
.reviewer-info {
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Стилизация фото клиента */
.reviewer-info img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #6a89cc;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Стилизация имени и даты */
.reviewer-name {
    font-weight: bold;
    color: #2f3640;
    font-size: 1.1em;
}

.reviewer-info small {
    color: #888;
}

/* Стили Swiper */
.swiper.reviews-slider {
    padding-bottom: 50px;
}

.swiper-button-prev,
.swiper-button-next {
    color: #6a89cc;
    font-size: 20px;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    transform: scale(1.2);
}

.swiper-pagination-bullet-active {
    background: #6a89cc !important;
}

/* --- FOOTER --- */
/* Базовые стили для футера */
footer {
    background-color: #393939;
    color: #ffffff;
    padding: 40px 0; /* Увеличиваем отступы */
    text-align: center;
    font-size: 0.9em;
    border-top: 1px solid #eef1f6;
}

/* Flexbox для содержимого футера */
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Стилизация блока с контактами и соцсетями */
.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap; /* Перенос на новую строку на маленьких экранах */
}

/* Стилизация информации о контактах */
.contact-info a {
    color: #6a89cc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #4a69bd;
}

/* Стилизация блока социальных сетей */
.social-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-links p {
    margin: 0;
}

.social-links a {
    color: #6a89cc;
    font-size: 24px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-links a:hover {
    color: #4a69bd;
    transform: scale(1.2);
}

/* Стилизация копирайта */
.copyright {
    margin: 0;
}

/* Контейнер остается таким же */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}





/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  nav {
    display: none;
  }
  .right-menu {
    display: none;
  }
  .burger {
    display: flex;
  }
  header {
    padding: 15px 20px;
  }
  .section-title {
    font-size: 1.8em;
  }
  .grid-3-col {
    grid-template-columns: 1fr;
  }
}

/* --- с какими запросами мы работаем --- */
#specializations {
  background-color: #f7f9fc;
  padding: 80px 0;
}

.specializations-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.specializations-text {
  flex: 1;
  min-width: 300px;
}

.specializations-image {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.specializations-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.specializations-text ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.specializations-text li {
  font-size: 1.1em;
  line-height: 1.6;
  padding: 5px 0;
  position: relative;
  padding-left: 30px; /* Увеличил отступ, чтобы галочка не наезжала на текст */
}

/* Стиль для голубой галочки */
.specializations-text li::before {
  content: '✓'; /* Используем более современный символ галочки */
  color: #6a89cc; /* Ваш фирменный синий цвет */
  font-weight: bold;
  font-size: 1.9em; /* Увеличим размер */
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.specializations-text details ul {
  list-style: none;
  padding-left: 20px;
  margin-top: 10px;
  max-height: 0;
  opacity: 0;
  transform: translateY(-10px);
  overflow: hidden;
  transition: max-height 1.2s ease, opacity 1.2s ease, transform 1.2s ease, padding 1.2s ease;
  padding-top: 0;
  padding-bottom: 0;
}

.specializations-text details[open] ul {
  max-height: 1000px; /* достаточно для всех элементов */
  opacity: 1;
  transform: translateY(0);
  padding-top: 10px;
  padding-bottom: 10px;
}




/* АДАПТИВНОСТЬ ДЛЯ МАЛЕНЬКИХ ЭКРАНОВ */
/* --- RESPONSIVE --- */
@media (max-width: 992px) {
  /* Скрываем основное меню навигации */
  nav {
    display: none;
  }
  
  /* Скрываем кнопки входа/языка на основном уровне */
  .right-menu {
    display: none; 
  }
  
  /* Показываем бургер-иконку */
  .burger {
    display: flex;
  }
  
  header {
    padding: 15px 20px;
  }
  .section-title {
    font-size: 1.8em;
  }
  .grid-3-col {
    grid-template-columns: 1fr;
  }
}
/* --- Аккордеоны --- */
.specializations-text details {
  margin-bottom: 10px;
  background-color: #ffffff;
  border-radius: 8px;
  padding: 10px 15px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  cursor: pointer;
  overflow: hidden;
}

.specializations-text summary {
  font-weight: bold;
  font-size: 1.1em;
  list-style: none;
  outline: none;
  position: relative;
  padding-left: 25px; /* чтобы галочка не наезжала */
}

.specializations-text summary::before {
  content: '▸'; /* стрелка */
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s ease;
  color: #6a89cc;
  font-size: 1.2em;
}

.specializations-text details[open] summary::before {
  transform: translateY(-50%) rotate(90deg);
}

.specializations-text ul {
  list-style: none;
  padding-left: 20px;
  margin-top: 10px;
  max-height: 0;
  opacity: 0;
  transition: all 0.5s ease;
}

.specializations-text details[open] ul {
  max-height: 1000px; /* достаточно для всех элементов */
  opacity: 1;
}

.specializations-text li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 5px;
}

.specializations-text li::before {
  content: '✓';
  color: #6a89cc;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-weight: bold;
}






/* В вашем файле style.css */

.dropdown-content button.lang-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px; /* Расстояние между флагом и текстом */
    width: 100%;
    border: none;
    background: none;
    padding: 10px 15px;
    text-align: left;
    cursor: pointer;
    font-size: 1em;
    color: #333;
    transition: background-color 0.2s ease;
}

.dropdown-content button.lang-btn:hover:not(:disabled) {
    background-color: #f1f1f1;
}

.dropdown-content button.lang-btn:disabled {
    background-color: #e9e9e9;
    cursor: not-allowed;
    color: #999;
}

.dropdown-content .flag-icon {
    width: 24px; /* Размер иконки флага */
    height: 18px;
    border-radius: 3px;
    box-shadow: 0 0 3px rgba(0,0,0,0.2);
}



.read-more-link {
  color: #0f90bf;
  font-weight: 600;
  text-decoration: none;
  margin-left: 5px;
}

.read-more-link:hover {
  text-decoration: underline;
}









/* Отзывы новое */

#reviews {
    background-color: #f7f9fc; /* Легкий фон для секції */
    padding: 60px 0;
}

.reviews-slider {
    padding: 0 40px; /* Простір для стрілок */
}

.review-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    height: 250px; /* Фіксована висота картки для слайдера */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    border-top: 5px solid var(--main-blue); /* Використовуємо змінну, якщо вона визначена */
}

.review-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reviewer-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ddd;
}

.reviewer-name {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.reviewer-info small {
    color: var(--text-secondary);
    font-size: 0.85em;
}

.review-rating i {
    color: var(--star-color); /* Золотий колір зірок */
    font-size: 1.1em;
}

/* Обмеження висоти для вмісту відгуку */
.review-text-content {
    /* Робимо цю область прокручуваною, якщо текст занадто довгий, 
       але завдяки обрізанню Django це знадобиться рідко */
    flex-grow: 1; /* Дозволяє зайняти весь доступний простір */
    max-height: 140px; /* Обмеження висоти для тексту, якщо його не обрізано (наприклад, у модальному вікні) */
    overflow: hidden; /* Обрізає зайвий текст, якщо він не поміщається у фіксовану висоту картки */
    margin-bottom: 10px;
}

.review-text-content p {
    margin: 0;
    font-size: 0.95em;
    color: #444;
    line-height: 1.4;
}

.read-more-link {
    color: #13afc3; /* Бірюзовий колір */
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.read-more-link:hover {
    color: #008294; /* Бірюзовий колір */
    text-decoration: underline;
}

/* Стилі для Swiper навігації */
.swiper-button-next, .swiper-button-prev {
    color: var(--main-blue) !important;
}

.swiper-pagination-bullet-active {
    background: var(--main-blue) !important;
}



.review-text {
    /* Дозволяє браузеру переносити слова, 
       навіть якщо вони не містять пробілів, 
       коли слово не поміщається в контейнер. */
    word-break: break-word; 
    /* Додатково, для ширшої сумісності та старіших браузерів */
    overflow-wrap: break-word; 
}


/* --- FAQ SECTION --- */
.faq-section {
  margin-top: -80px; /* подними вверх */
}

#faq {
  background-color: #f7f9fc;
  padding: 80px 20px;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: #ffffff;
  border-radius: 12px;
  margin-bottom: 15px;
  padding: 15px 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: box-shadow 0.3s ease;
  cursor: pointer;
}

.faq-item:hover {
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.faq-item summary {
  font-weight: 700;
  font-size: 1.1em;
  list-style: none;
  outline: none;
  position: relative;
  padding-right: 30px;
}

/* Стрелка */
.faq-item summary::after {
  content: "▶";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4em;
  color: #6a89cc;
  transition: transform 0.3s ease;
}

/* Поворот стрелки */
.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(90deg);
}


/* Текст ответа */
/* --- ПЛАВНОЕ ВЫЕЗЖАНИЕ ОТВЕТА --- */
.faq-item p {
  margin-top: 15px;
  font-size: 1em;
  line-height: 1.7;
  color: #3c3a3a;

  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-5px);

  transition:
    max-height 1.2s ease,
    opacity 1.1s ease,
    transform 1.1s ease;
}

/* Когда открыт */
.faq-item[open] p {
  max-height: 500px; /* достаточно для текста */
  opacity: 1;
  transform: translateY(0);
}

/* Анимация появления */
@keyframes faqFade {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
