* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

ul {
  padding-left: 10px;
}

body {
  font-family: Arial, sans-serif;
}

/* ========================================= */
/* ОБЩИЕ СТИЛИ (Контейнер) */
/* ========================================= */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

/* ========================================= */
/* КАРУСЕЛЬ */
/* ========================================= */

.carousel-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: visible; /* Исправлено: убираем скрытие, чтобы стрелки с -40px были видны */
  background-color: #e5e5e5;
}

.carousel-slide {
  display: none;
  width: 100%;
  animation: fadeEffect 1s ease;
  position: relative;
}

.carousel-slide.active {
  display: block;
}

@keyframes fadeEffect {
  from {
    opacity: 0.6;
  }
  to {
    opacity: 1;
  }
}

.slide-image-placeholder {
  width: 100%;
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #e0e0e0;
  color: #999;
  font-size: 28px;
}

.carousel-slide img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  display: block;
}

.nav-btn {
  position: absolute;
  top: 35%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  padding: 15px 18px;
  font-size: 20px;
  cursor: pointer;
  border-radius: 4px;
  z-index: 10;
  transition: background-color 0.3s;
}

.nav-btn:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.prev-btn {
  left: -40px;
}
.next-btn {
  right: -40px;
}

.prev-btn-carousel {
  left: 40px;
}
.next-btn-carousel {
  right: 40px;
}

.dots-container {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition:
    background-color 0.3s ease,
    transform 0.2s;
}

.dot:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

.dot.active {
  background-color: #ffffff;
  transform: scale(1.15);
}

.banner-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #4abdf4;
  padding: 15px 30px;
  color: #ffffff;
}

.banner-title {
  font-weight: 700;
  font-size: 16px;
  margin-right: 20px;
}

.banner-btn {
  display: inline-block;
  background-color: #194c86;
  color: #ffffff;
  text-decoration: none;
  padding: 8px 20px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 14px;
  transition: background-color 0.3s;
  white-space: nowrap;
}

.banner-btn:hover {
  background-color: #12345e;
}

/* ========================================= */
/* О ЦЕНТРЕ */
/* ========================================= */

.about-section {
  padding: 50px 0;
  background-color: #ffffff;
}

.about-row {
  display: flex;
  gap: 40px;
  align-items: stretch;
}

.about-text-col {
  flex: 0 0 55%;
}

.about-title {
  color: #194c86;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 25px;
  text-transform: uppercase;
}

.about-text-col p {
  margin-bottom: 20px;
  font-size: 15px;
  line-height: 1.6;
  color: #2c2c2c;
}

.director-info {
  margin-top: 25px;
  color: #2c2c2c;
  line-height: 1.5;
  font-size: 15px;
}

.about-image-col {
  flex: 1;
  display: flex;
}

.about-image-wrapper {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 0 20px 20px 0;
}

.about-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ========================================= */
/* НАШИ СПЕЦИАЛИСТЫ */
/* ========================================= */

.specialists-section {
  padding: 50px 0;
  background-color: #ffffff;
}

.specialists-slider-wrapper {
  position: relative;
}

.section-title {
  color: #194c86;
  font-size: 26px;
  font-weight: 700;
  text-transform: uppercase;
}

.specialists-slider-viewport {
  overflow: hidden;
  width: 100%;
}

.specialists-track {
  display: flex;
  gap: 20px;
  transition: transform 0.4s ease-in-out;
}

.specialist-card {
  background-color: #4abdf4;
  border-radius: 20px;
  padding: 30px 15px 25px;
  min-width: 230px;
  flex: 0 0 calc(33.333% - 13.33px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #ffffff;
  box-sizing: border-box;
}

.card-image-wrapper {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 15px;
  background-color: #ffffff;
}

.card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-name {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 5px;
}

.card-post {
  font-size: 14px;
  line-height: 1.4;
}

.slider-btn {
  position: absolute;
  top: 60%;
  transform: translateY(-50%);
  z-index: 10;
  border-radius: 50%;
  background-color: #194c86;
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition:
    background-color 0.3s,
    transform 0.2s;
  cursor: pointer;
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  font-size: 20px;
  line-height: 1;
}

.slider-btn:hover {
  background-color: #12345e;
  transform: translateY(-50%) scale(1.05);
}

/* ========================================= */
/* НОВОСТИ */
/* ========================================= */

.news-card {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.news-section {
  padding: 50px 0;
  background-color: #ffffff;
}

.news-title {
  color: #194c86;
  font-size: 26px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 30px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.news-card {
  background-color: #194c86;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.news-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.news-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  color: #ffffff;
}

.news-heading {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
}

.news-text {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
  flex: 1;
}

.news-footer {
  margin-top: auto;
}

.news-divider {
  width: 100%;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.6);
  margin-bottom: 10px;
}

.news-date {
  font-size: 14px;
  display: block;
}

/* ========================================= */
/* ЭФФЕКТ НАВЕДЕНИЯ ДЛЯ СПЕЦИАЛИСТОВ */
/* ========================================= */

/* Делаем карточку точкой отсчета для абсолютного позиционирования */
.specialist-card {
  position: relative;
}

/* Скрытый блок с контактами (позиционируем поверх карточки) */
.card-hover-info {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 20px;
  background-color: rgba(
    25,
    76,
    134,
    0.88
  ); /* Темно-синий полупрозрачный фон */
  color: #ffffff;
  padding: 15px;
  text-align: center;
  opacity: 0; /* По умолчанию скрыт */
  pointer-events: none;
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
  transform: scale(0.95); /* Небольшой зум при появлении */
}

/* При наведении на карточку показываем скрытый блок */
.specialist-card:hover .card-hover-info {
  opacity: 1;
  pointer-events: all;
  transform: scale(1);
}

/* Стили текста внутри всплывающего блока */
.hover-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 2px;
}

.hover-job {
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 12px;
  opacity: 0.9;
}

.hover-contact {
  font-size: 13px;
  line-height: 1.6;
  opacity: 0.9;
}

.hover-contact span {
  font-weight: 700;
  opacity: 1;
}

/* ========================================= */
/* УСЛУГИ ЦЕНТРА */
/* ========================================= */

.services-section {
  padding: 50px 0;
  background-color: #ffffff;
}

.services-title {
  color: #194c86;
  font-size: 26px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 30px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.service-item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background-color: #e0e0e0;
  cursor: pointer;
}

.service-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.service-item:hover img {
  transform: scale(1.08);
}

/* ========================================= */
/* НАШИ ПАРТНЁРЫ */
/* ========================================= */

.partners-section {
  padding: 50px 0 80px 0;
  background-color: #ffffff;
  overflow-x: hidden;
}

.partners-header-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.partners-title {
  color: #194c86;
  font-size: 26px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 30px;
}

.partners-scroll-wrapper {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  overflow: hidden;
  padding: 20px 0;
  mask-image: linear-gradient(
    to right,
    transparent,
    black 5%,
    black 95%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 5%,
    black 95%,
    transparent
  );
}

.partners-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: scrollLeft var(--scroll-speed, 40s) linear infinite;
}

@keyframes scrollLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.partner-logo-box {
  width: 140px;
  height: 100px;
  flex-shrink: 0;
  background-color: #f5f5f5;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.partner-logo-box img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

.partner-logo-box div {
  pointer-events: none;
}

.partner-logo-box:hover {
  background-color: #e8f0fe;
}

/* ========================================= */
/* НАМ ДОВЕРЯЮТ */
/* ========================================= */

/* ========================================= */
/* СЛАЙДЕР ОТЗЫВОВ НА ГЛАВНОЙ (Исправленный) */
/* ========================================= */

.reviews-slider-wrapper-home {
  display: flex;
  align-items: center;
  padding: 0;
  position: relative;
}

.reviews-slider-viewport-home {
  overflow: hidden;
  width: 100%;
}

.reviews-track-home {
  display: flex;
  gap: 20px;
  align-items: stretch; /* ВАЖНО: Растягивает колонки, чтобы они были ровными снизу */
  transition: transform 0.4s ease-in-out;
}

.review-card-home {
  background-color: #4abdf4;
  border-radius: 20px;
  padding: 25px;
  display: flex;
  flex-direction: column; /* Позволяет контенту правильно заполнять карточку */
  flex: 0 0 calc(33.333% - 13.333px);
  height: auto !important;
  box-sizing: border-box;
  min-width: 250px;
  color: #ffffff;
}

.review-avatar-home {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: #ffffff;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.review-avatar-img-home {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.review-content-home {
  display: flex;
  flex-direction: column;
  flex: 1; /* Растягивает контент на всю высоту карточки */
  gap: 5px;
  height: auto !important;
}

.review-name-home {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 10px;
}

.review-stars-home {
  display: flex;
  gap: 2px;
}

.review-stars-home span {
  color: #ffd700;
  font-size: 18px;
}

.review-text-home {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  flex: 1; /* ВАЖНО: Заставляет текст растягиваться и заполнять пустоту */
  overflow-wrap: break-word; /* ВАЖНО: Заставляет длинные строки переноситься */
  word-break: break-word; /* ВАЖНО: Заставляет длинные строки переноситься */
}

.review-date-home {
  width: 100%;
  text-align: right;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 6px;
  margin-top: auto; /* ВАЖНО: Прижимает дату к самому низу карточки */
}

/* Адаптация для телефонов */
@media (max-width: 768px) {
  .review-card-home {
    flex: 0 0 100%; /* На телефонах 1 карточка */
    min-width: auto;
  }
}

/* ========================================= */
/* КОНТАКТЫ */
/* ========================================= */

.contacts-section {
  padding: 50px 0;
  background-color: #ffffff;
}

.contacts-title {
  color: #194c86;
  font-size: 26px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 30px;
}

.contacts-wrapper {
  display: flex;
  gap: 20px;
  background-color: #194c86;
  padding: 20px;
  border-radius: 20px;
  min-height: 450px;
}

.contacts-list {
  flex: 0 0 35%;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-item {
  background-color: #ffffff;
  border: none;
  border-radius: 15px;
  padding: 20px 25px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  flex: 1;
  transition: all 0.3s ease;
  min-height: 80px;
  justify-content: center;
}

.contact-item-title {
  font-weight: 700;
  font-size: 16px;
  color: #194c86;
  margin-bottom: 4px;
}

.contact-item-address {
  font-size: 14px;
  color: #333333;
}

.contact-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.contact-item.active {
  background-color: #e8f0fe;
  box-shadow: inset 0 0 0 2px #194c86;
}

.map-area {
  flex: 1;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  background-color: #e5e5e5;
}

.map-frame {
  width: 100%;
  height: 100%;
  min-height: 400px;
  display: none;
  position: absolute;
  top: 0;
  left: 0;
}

.map-frame.active {
  display: block;
  position: relative;
}

/* ========================================= */
/* ПОДВАЛ САЙТА (Идеальная ширина) */
/* ========================================= */

.site-footer {
  background-color: #194c86;
  color: #ffffff;
  padding: 40px 20px 0 20px; /* Отступы 20px как и у всех блоков */
  border-radius: 20px 20px 0 0;
  margin: 20px auto 0 auto; /* Центрирование как у секций */
  max-width: 1200px;
  width: 100%; /* Занимает всю ширину до 1200px */
  flex-shrink: 0;
  box-sizing: border-box;
}

/* Обертка контента футера */
.footer-container {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 40px;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-col-social {
  flex: 0 0 auto;
  justify-content: flex-start;
}

.footer-col-center {
  flex: 1;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.footer-copyright {
  font-size: 14px;
  line-height: 1.4;
}

.footer-col-contacts {
  flex: 0 0 auto;
  text-align: right;
  justify-content: flex-start;
}

.footer-contacts-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 5px;
}

.footer-contacts-item {
  font-size: 13px;
  margin-bottom: 3px;
}

.footer-contacts-item .footer-link {
  color: #ffffff;
  text-decoration: none;
}

.footer-contacts-item .footer-link:hover {
  text-decoration: underline;
}

/* ---------- НИЖНЯЯ ПОЛОСА ---------- */
.footer-bottom-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 15px 0 25px 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-link-muted {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link-muted:hover {
  color: rgba(255, 255, 255, 1);
  text-decoration: underline;
}

.footer-separator {
  color: rgba(255, 255, 255, 0.3);
}

/* ========================================= */
/* ПРИЖАТИЕ ФУТЕРА К НИЗУ (Для news.php) */
/* ========================================= */
html {
  height: 100%;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
}
main {
  flex: 1 0 auto; /* Растягивает main на всё свободное место */
}
/* ========================================= */
/* ХЛЕБНЫЕ КРОШКИ И ПАГИНАЦИЯ */
/* ========================================= */

/* Хлебные крошки */
.breadcrumbs {
  margin-bottom: 25px;
  font-size: 14px;
  color: #666;
}
.breadcrumbs a {
  color: #194c86;
  text-decoration: none;
  transition: color 0.3s;
}
.breadcrumbs a:hover {
  text-decoration: underline;
  color: #12345e;
}

/* Пагинация */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 40px 0 20px 0;
}
.pagination a,
.pagination span {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  text-decoration: none;
  color: #194c86;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  background-color: #ffffff;
}
.pagination a:hover {
  background-color: #f0f4fa;
  border-color: #194c86;
}
.pagination .active {
  background-color: #194c86;
  color: #ffffff;
  border-color: #194c86;
}

/* ========================================= */
/* УНИВЕРСАЛЬНЫЙ ЗАГОЛОВОК (для Новостей и Отзывов) */
/* ========================================= */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-header .reviews-title,
.section-header .news-title {
  margin-bottom: 0; /* Убираем отступ у самого заголовка, он задан в обертке */
}
.section-header .section-link {
  color: #194c86;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition:
    color 0.3s ease,
    transform 0.2s ease;
}
.section-header .section-link:hover {
  color: #12345e;
  text-decoration: underline;
  transform: translateX(3px);
}

/* ========================================= */
/* ГЛАВНЫЕ СТИЛИ */
/* ========================================= */
.block-indent {
  padding-top: 25px;
}

/* =========================================================================================================================== */
/* ГЛОБАЛЬНЫЕ МЕДИА-ЗАПРОСЫ (320, 768, 900, 1280) */
/* =========================================================================================================================== */

/* 1. 1280px (Ноутбуки и небольшие десктопы) */
@media (max-width: 1280px) {
  /* НАШИ СПЕЦИАЛИСТЫ */
  .slider-btn {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }

  /* УСЛУГИ ЦЕНТРА */
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* НАШИ ПАРТНЁРЫ */
  .partner-logo-box {
    width: 130px;
    height: 95px;
  }

  /* НАМ ДОВЕРЯЮТ */
  .review-card {
    flex: 0 0 calc(33.333% - 13.333px);
  }

  /* КОНТАКТЫ */
  .contacts-list {
    flex: 0 0 35%;
  }
  .contact-item-title {
    font-size: 15px;
  }
}

/* 2. 900px (Вертикальные планшеты) */
@media (max-width: 900px) {
  /* О ЦЕНТРЕ */
  .about-row {
    flex-direction: column;
  }
  .about-text-col {
    flex: 1;
  }
  .about-image-col {
    width: 100%;
  }
  .about-image-wrapper {
    border-radius: 20px;
  }
  .about-title {
    font-size: 22px;
  }

  /* НАШИ СПЕЦИАЛИСТЫ */
  .specialist-card {
    flex: 0 0 calc(50% - 10px);
  }
  .card-image-wrapper {
    width: 140px;
    height: 140px;
  }
  .slider-btn {
    width: 46px;
    height: 46px;
    font-size: 18px;
  }

  /* НОВОСТИ */
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .news-image {
    height: 180px;
  }

  /* УСЛУГИ ЦЕНТРА */
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* НАШИ ПАРТНЁРЫ */
  .partners-title {
    font-size: 24px;
    margin-bottom: 25px;
  }
  .partner-logo-box {
    width: 120px;
    height: 85px;
  }
  .partners-track {
    gap: 15px;
  }

  /* НАМ ДОВЕРЯЮТ */
  .review-card {
    flex: 0 0 calc(50% - 10px);
  }
  .review-avatar {
    width: 90px;
    height: 90px;
  }

  /* КОНТАКТЫ */
  .contacts-wrapper {
    flex-direction: column;
    min-height: auto;
  }
  .contacts-list {
    flex: 1;
    flex-direction: row;
  }
  .contact-item {
    flex: 1;
    padding: 15px 20px;
  }
  .map-area {
    min-height: 350px;
  }
  .map-frame {
    min-height: 350px;
    position: relative;
  }

  /* ПОДВАЛ САЙТА */
  .footer-container {
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
  }
  .footer-col-social {
    flex: 1 1 100%;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
  }
  .footer-col-center {
    flex: 1 1 100%;
  }
  .footer-col-contacts {
    flex: 1 1 100%;
    text-align: center;
    align-items: center;
    margin-top: 10px;
  }
}

/* 3. 768px (Смартфоны и большие телефоны) */
@media (max-width: 768px) {
  /* КАРУСЕЛЬ */
  .slide-image-placeholder,
  .carousel-slide img {
    height: 220px;
    font-size: 18px;
  }
  .banner-caption {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px;
    gap: 10px;
  }
  .banner-title {
    font-size: 14px;
    margin-right: 0;
  }
  .nav-btn {
    padding: 8px 12px;
    font-size: 16px;
  }

  /* НАШИ СПЕЦИАЛИСТЫ */
  .section-title {
    font-size: 22px;
  }
  .specialist-card {
    flex: 0 0 calc(50% - 10px);
  }
  .card-image-wrapper {
    width: 120px;
    height: 120px;
  }
  .slider-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .slider-btn.prev-btn {
    left: 10px;
  }
  .slider-btn.next-btn {
    right: 10px;
  }

  /* НОВОСТИ */
  .news-title {
    font-size: 22px;
  }
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .news-image {
    height: 140px;
  }
  .news-heading {
    font-size: 15px;
  }
  .news-text {
    font-size: 13px;
  }

  /* УСЛУГИ ЦЕНТРА */
  .services-title {
    font-size: 22px;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* НАШИ ПАРТНЁРЫ */
  .partners-section {
    padding: 40px 0 60px 0;
  }
  .partners-title {
    font-size: 22px;
    margin-bottom: 20px;
  }
  .partner-logo-box {
    width: 100px;
    height: 75px;
    border-radius: 10px;
  }
  .partners-track {
    gap: 12px;
  }

  /* НАМ ДОВЕРЯЮТ */
  .reviews-section {
    padding: 40px 0;
  }
  .reviews-title {
    font-size: 22px;
  }
  .review-card {
    flex: 0 0 calc(100% - 0px);
  }
  .review-avatar {
    width: 80px;
    height: 80px;
  }

  /* КОНТАКТЫ */
  .contacts-section {
    padding: 40px 0;
  }
  .contacts-title {
    font-size: 22px;
    margin-bottom: 20px;
  }
  .contacts-wrapper {
    flex-direction: column;
    padding: 15px;
    min-height: auto;
    gap: 15px;
  }
  .contacts-list {
    flex: 1;
    flex-direction: column;
    gap: 10px;
  }
  .contact-item {
    flex: 1;
    padding: 15px;
    min-height: 60px;
  }
  .contact-item-title {
    font-size: 14px;
  }
  .contact-item-address {
    font-size: 13px;
  }
  .map-area {
    min-height: 300px;
  }
  .map-frame {
    min-height: 300px;
    position: relative;
  }

  /* ПОДВАЛ САЙТА */
  .site-footer {
    padding: 30px 0 0 0;
    border-radius: 15px 15px 0 0;
  }
  .footer-container {
    flex-direction: column;
    align-items: center;
    gap: 25px;
    padding-bottom: 25px;
  }
  .footer-col-social {
    align-items: center;
    width: 100%;
  }
  .footer-col-center {
    width: 100%;
    align-items: center;
  }
  .footer-col-contacts {
    width: 100%;
    text-align: center;
    align-items: center;
  }
  .footer-copyright {
    font-size: 13px;
    padding: 0 10px;
  }
  .footer-bottom-bar {
    flex-direction: column;
    gap: 5px;
    font-size: 11px;
    padding: 12px 0 20px 0;
  }
  .footer-separator {
    display: none;
  }
}

/* 4. 320px (Очень маленькие экраны) */
@media (max-width: 320px) {
  /* НАШИ СПЕЦИАЛИСТЫ */
  .specialist-card {
    flex: 0 0 100%;
  }
  .specialists-track {
    gap: 10px;
  }
  .slider-btn {
    width: 34px;
    height: 34px;
    font-size: 14px;
  }

  .slider-btn.prev-btn {
    left: 5px;
  }
  .slider-btn.next-btn {
    right: 5px;
  }

  /* УСЛУГИ ЦЕНТРА */
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* НОВОСТИ */
  .news-grid {
    grid-template-columns: 1fr;
  }
  .news-image {
    height: 180px;
  }

  /* НАШИ ПАРТНЁРЫ */
  .partners-section {
    padding: 30px 0 40px 0;
  }
  .partners-title {
    font-size: 18px;
  }
  .partner-logo-box {
    width: 80px;
    height: 60px;
    border-radius: 8px;
  }
  .partners-track {
    gap: 8px;
  }

  /* НАМ ДОВЕРЯЮТ */
  .reviews-section {
    padding: 30px 0;
  }
  .reviews-title {
    font-size: 18px;
  }
  .review-card {
    flex: 0 0 100%;
    padding: 20px;
    gap: 15px;
  }
  .review-avatar {
    width: 60px;
    height: 60px;
  }
  .slider-btn {
    width: 34px;
    height: 34px;
    font-size: 14px;
  }

  /* КОНТАКТЫ */
  .contacts-section {
    padding: 30px 0;
  }
  .contacts-title {
    font-size: 18px;
  }
  .map-area {
    min-height: 200px;
  }
  .map-frame {
    min-height: 200px;
  }
  .contact-item {
    padding: 12px;
  }

  /* ПОДВАЛ САЙТА */
  .site-footer {
    padding: 20px 0 0 0;
  }
  .footer-copyright {
    font-size: 12px;
  }
  .footer-col-social .social-links a {
    width: 26px;
    height: 26px;
  }
  .footer-bottom-bar {
    font-size: 10px;
  }
}
