.reviews-title {
  color: #194c86;
  font-size: 26px;
  font-weight: 700;
  text-transform: uppercase;
}

/* ========================================= */
/* СОТРУДНИКИ (Страница employees.php) */
/* ========================================= */

.employees-section {
  padding: 50px 0;
  background-color: #ffffff;
}

.section-subtitle {
  color: #194c86;
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  margin: 40px 0 20px 0;
  border-bottom: 2px solid #4abdf4;
  padding-bottom: 10px;
}

.section-subtitle2 {
  color: #194c86;
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  margin: 5px 0 20px 0;
  border-bottom: 2px solid #4abdf4;
  padding-bottom: 10px;
}

.employees-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.employee-card {
  background-color: #4abdf4;
  border-radius: 20px;
  padding: 30px 15px 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #ffffff;
  box-sizing: border-box;
  height: 100%;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.employee-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.employee-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 15px;
  background-color: #ffffff;
  flex-shrink: 0;
}

.employee-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.employee-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
}

.employee-name {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 5px;
}

.employee-post {
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 15px;
  flex: 1;
}

.employee-contact {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.employee-contact span {
  font-weight: 700;
  opacity: 1;
}

/* Адаптивность для сотрудников */
@media (max-width: 900px) {
  .employees-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .employees-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .employee-avatar {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 320px) {
  .employees-grid {
    grid-template-columns: 1fr;
  }
}










/* ========================================= */
/* СТРАНИЦА КОНТАКТОВ (contacts.php) */
/* ========================================= */

.contacts-page-section {
  padding: 50px 0;
  background-color: #ffffff;
}

/* Заголовок страницы */
.contacts-page-section .page-title {
  color: #194c86;
  font-size: 26px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 30px;
}

/* Сетка филиалов */
.filials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

.filial-card {
  background-color: #4abdf4;
  border-radius: 20px;
  padding: 25px 30px;
  color: #ffffff;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.filial-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.filial-address {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 15px;
}

.filial-schedule {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 15px;
}

.filial-contacts {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 15px;
  flex: 1;
}

.filial-contacts .contact-row {
  display: block;
  margin-bottom: 2px;
}

.filial-contacts .contact-row a {
  color: #ffffff;
  text-decoration: none;
}

.filial-contacts .contact-row a:hover {
  text-decoration: underline;
}

.filial-map-btn {
  display: inline-block;
  background-color: #ffffff;
  color: #194c86;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  align-self: flex-start;
  transition: background-color 0.3s, transform 0.3s;
}

.filial-map-btn:hover {
  background-color: #f0f4fa;
  transform: scale(1.02);
}

/* Реквизиты */
.requisites-block {
  background-color: #f5f9fc;
  border: 1px solid #e0e8f0;
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 30px;
}

.requisites-title {
  color: #194c86;
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.requisites-block .requisites-row {
  display: grid;
  grid-template-columns: 0.4fr 1fr;
  gap: 10px 30px;
  font-size: 14px;
  color: #2c2c2c;
  line-height: 1.6;
}

.requisites-block .requisites-row .label {
  font-weight: 700;
  color: #194c86;
}

.requisites-block .requisites-row .value {
  color: #333333;
}

/* Адаптивность контактов */
@media (max-width: 992px) {
  .filials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .filials-grid {
    grid-template-columns: 1fr;
  }
  .requisites-block .requisites-row {
    grid-template-columns: 1fr;
  }
}








/* ========================================= */
/* ОТЗЫВЫ (КИРПИЧНАЯ КЛАДКА - reviews.php) */
/* ========================================= */

/* Обертка для сетки в 2 колонки */
.reviews-masonry {
    column-count: 2; /* Разбиваем контент на 2 колонки */
    column-gap: 20px; /* Расстояние по горизонтали между колонками */
}

/* Карточка внутри кладки */
.reviews-masonry .masonry-item {
    break-inside: avoid; /* Запрещает разрывать карточку пополам */
    -webkit-column-break-inside: avoid;
    margin-bottom: 20px; /* Расстояние по вертикали между карточками */
    display: inline-block; /* Сохраняет блочную структуру внутри колонки */
    width: 100%;
    background-color: #4abdf4;
    border-radius: 20px;
    padding: 25px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    box-sizing: border-box;
    color: #ffffff;
}

/* Аватар */
.reviews-masonry .review-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #ffffff;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reviews-masonry .review-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

/* Контент */
.reviews-masonry .review-content {
    display: flex;
    flex-direction: column;
}

.reviews-masonry .review-name {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 2px;
}

.reviews-masonry .review-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 8px;
}

.reviews-masonry .review-stars span {
    color: #ffd700;
    font-size: 18px;
}

.reviews-masonry .review-text {
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
}

.reviews-masonry .review-date {
    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: 8px;
    letter-spacing: 1px;
    margin-top: 8px;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .reviews-masonry {
        column-count: 1; /* На телефонах переключаем в 1 колонку */
    }
}







/* ========================================= */
/* ХЛЕБНЫЕ КРОШКИ (Плашка с границей) */
/* ========================================= */

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background-color: #f0f4f8;
    border: 1px solid #dce4ec;
    margin-bottom: 25px;
    font-size: 14px;
    border-radius: 3px;
    color: #9aa0a6; 
}

/* Ссылки внутри крошек */
.breadcrumbs a {
    color: #194c86;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.breadcrumbs a:hover {
    color: #12345e;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Текущая (активная) страница */
.breadcrumbs span {
    color: #194c86;
    font-weight: 700;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .breadcrumbs {
        font-size: 12px;
        padding: 6px 12px;
        border-radius: 20px;
        gap: 4px;
    }
}





/* ========================================= */
/* ГАЛЕРЕЯ АЛЬБОМОВ
/* ========================================= */


/* Сетка галереи */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.gallery-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid #e0e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.gallery-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.gallery-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-card-info {
    padding: 15px;
}

.gallery-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #194c86;
    margin: 0 0 5px 0;
}

.gallery-card-date,
.gallery-card-photographer,
.gallery-card-count {
    font-size: 14px;
    color: #666;
    margin-top: 3px;
}

.gallery-card-count {
    font-weight: 600;
    color: #194c86;
}

/* Адаптивность */
@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .gallery-card-image {
        height: 180px;
    }
}

/* Пагинация (стили уже есть в общем CSS, но продублируем) */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    padding: 20px 0;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #194c86;
    background: #fff;
    transition: 0.2s;
}

.pagination a:hover {
    background: #f0f4fa;
    border-color: #194c86;
}

.pagination .active {
    background: #194c86;
    color: #fff;
    border-color: #194c86;
}