@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

body {
  background-color: #f5f7fa;
   font-family: 'Poppins', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
}

.company-rating-wrapper-card {

  color: #ccc;
  user-select: none;

  margin: 0 auto;
}

.lazy-img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  background: linear-gradient(90deg, #f0f0f0 25%, #e4e4e4 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  filter: blur(10px);
  transition: filter 0.5s ease, opacity 0.5s ease, background 0.5s ease;
  opacity: 0.5;
  overflow: hidden;
}

/* Контейнер для точек (обязательно обернуть img в .lazy-wrapper с position:relative) */
.loading-dots {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 12px;
  pointer-events: none;
  z-index: 10;
}

/* Точки */
.loading-dots span {
  width: 12px;
  height: 12px;
  background-color: #999;
  border-radius: 50%;
  animation: blink 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) {
  animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
  animation-delay: -0.16s;
}

.loading-dots span:nth-child(3) {
  animation-delay: 0;
}

/* Шимер-анимация фона */
@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Анимация мигания точек */
@keyframes blink {
  0%, 80%, 100% {
    opacity: 0.3;
  }
  40% {
    opacity: 1;
  }
}

/* Класс при загрузке картинки */
.lazy-img.loaded {
  filter: blur(0);
  opacity: 1;
  background: none;
}

.logo-otzv {
    color: #0d6efd !important;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}


.size-otz{
    font-size:24px!important;
   
}

@media(max-width:720px){
    .size-otz{
         padding-top:15px;
        font-size:20px!important;
    }
}

.mbb-3{
    margin-bottom:30px!important;
}

.company-address {
  display: flex;
  align-items: center;
  flex-wrap: wrap; 
}

.company-address .reviews-count {
  margin-left: 8px;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .company-address .reviews-count {
    flex-basis: 100%; 
    margin-left: 0;
    margin-top: 4px;
  }
}

.highlight {
  animation: highlightAnim 2.5s ease forwards;
  box-shadow: 0 0 8px 3px rgba(255, 165, 0, 0.7);
  background-color: #fff7e6; 
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

@keyframes highlightAnim {
  0% {
    background-color: #fff7e6;
    box-shadow: 0 0 8px 3px rgba(255, 165, 0, 0.7);
  }
  100% {
    background-color: transparent;
    box-shadow: none;
  }
}


.form-success{
    margin-right: 20px;
    margin-left: 20px;
}

main {
    flex: 1;
}

.navbar-brand {
  font-weight: 700;
  color: #007bff;
  font-size: 1.5rem;
}

.company-card {
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  background: #fff;
  border-radius: 0.75rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

#captchaContainer {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.4s ease, max-height 0.4s ease;
}

#captchaContainer.visible {
  opacity: 1;
  max-height: 200px; 
}

.company-img {
  height: 180px;
  object-fit: cover;
  border-top-left-radius: 0.75rem;
  border-top-right-radius: 0.75rem;
  transition: transform 0.3s ease;
}

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

.card-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.3rem 1.5rem;
}

.card-title {
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
  color: #212529;
}

.card-text {
  color: #6c757d;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  min-height: 40px;
}

.badge {
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.4em 0.75em;
  border-radius: 1rem;
}

.bg-success {
  background-color: #198754 !important;
  color: white !important;
}

.bg-warning {
  background-color: #ffc107 !important;
  color: #212529 !important;
}

.btn-view-review {
  background: transparent;
  border: none;
  color: #0d6efd;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  transition: color 0.3s;
  padding: 0;
}

.btn-view-review i {
  transition: transform 0.3s;
  font-size: 1rem;
}

.btn-view-review:hover {
  color: #084cd6;
}

.btn-view-review:hover i {
  transform: translateX(6px);
}

/* Поиск */
.search-wrapper {
  margin: 25px auto 0;
  width: 75%;
  max-width: 650px;
  display: flex;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgb(13 110 253 / 0.2);
  border-radius: 0.5rem;
  background-color: white;
  padding: 0.3rem 0.5rem;
}

.search-wrapper input {
  flex: 1;
  border: none;
  font-size: 1rem;
  padding: 0.55rem 1rem;
  border-radius: 0.5rem;
  outline-offset: 2px;
  outline: none;
}

.search-wrapper input::placeholder {
  color: #6c757d;
}

.search-wrapper button {
  border: none;
  background-color: #0d6efd;
  color: white;
  border-radius: 0.5rem;
  padding: 0 1rem;
  font-size: 1.3rem;
  cursor: pointer;
  transition: background-color 0.3s, box-shadow 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.search-wrapper button:hover {
  background-color: #084cd6;
  box-shadow: 0 0 12px rgba(8, 76, 214, 0.8);
}

/* Модалки */
.modal-content {
  border-radius: 1rem;
  box-shadow: 0 15px 40px rgba(0,0,0,0.2);
  padding: 1.2rem 1.8rem;
  font-size: 1rem;
  background: #fff;
/*  max-width: 480px;*/
  margin: 1.5rem auto;
  box-sizing: border-box;
}

.modal-header {
  border-bottom: none;
  padding-bottom: 0.5rem;
}

.modal-title {
  font-weight: 700;
  font-size: 1.4rem;
  color: #212529;
}

.btn-close {
  filter: brightness(0.7);
  transition: filter 0.3s ease;
}

.btn-close:hover {
  filter: brightness(1);
}
.font-weight-bold{
    font-weight:bold!important;
}

#ratingStars i {
  transition: color 0.2s ease, transform 0.2s ease;
}

#ratingStars i.hovered {
  transform: scale(1.2);
}



.form-control:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 6px rgba(13, 110, 253, 0.5);
  outline: none;
}


.input-icon {
  position: absolute;
    bottom: 0;
    left: 15px;
  color: #adb5bd;
  font-size: 1.1rem;
  pointer-events: none;
  transform: translateY(-50%);
  transition: color 0.3s;
}

.form-control:focus + .input-icon {
  color: #0d6efd;
}

.modal-footer {
  border-top: none;
  padding-top: 0.5rem;
}

.modal-footer button {
  border-radius: 0.5rem;
  font-weight: 600;
  padding: 0.55rem 0;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgb(13 110 253 / 0.3);
  width: 100%;
}

.text-center a {
  color: #0d6efd;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s;
  cursor: pointer;
}

.text-center a:hover {
  color: #084cd6;
  text-decoration: underline;
}

/* Адаптив */
@media (max-width: 768px) {
  .search-wrapper {
    width: 100%;
    padding: 0 1rem;
  }
  .btn-view-review {
    font-size: 0.9rem;
  }
}

/* Мобильные стили для модалок и форм */
@media (max-width: 576px) {
  .modal-content {
    padding: 1rem 1.2rem;
    margin: 1rem;
  }



  .modal-title {
    font-size: 1.2rem;
  }

  .modal-footer button {
    font-size: 1rem;
    padding: 0.45rem 0;
  }
}

/* Поиск - современный и анимированный */
.search-wrapper {
  margin: 25px auto 0;
  width: 100%;
  max-width: 650px;
  display: flex;
  align-items: center;
  background-color: #fff;
  border-radius: 2rem;
  padding: 0.3rem 0.6rem;
  box-shadow: 0 6px 20px rgba(13, 110, 253, 0.15);
  transition: box-shadow 0.3s ease;
  overflow: hidden;
}

.search-wrapper:focus-within {
  box-shadow: 0 8px 30px rgba(13, 110, 253, 0.4);
}

.search-wrapper input {
  flex-grow: 1;
  border: none;
  font-size: 1.1rem;
  padding: 0.6rem 1.2rem;
  border-radius: 2rem;
  outline: none;
  transition: width 0.4s ease;
  width: 100%;
  color: #212529;
}

.search-wrapper input::placeholder {
  color: #6c757d;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.search-wrapper input:focus::placeholder {
  opacity: 0.5;
}

.search-wrapper button {
  background-color: #0d6efd;
  border: none;
  color: white;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  box-shadow: 0 4px 12px rgb(13 110 253 / 0.3);
  transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
  flex-shrink: 0;
}

.search-wrapper button:hover {
  background-color: #084cd6;
  box-shadow: 0 6px 16px rgba(8, 76, 214, 0.8);
  transform: scale(1.1);
}

@media (max-width: 480px) {
  .search-wrapper {
    padding: 0.25rem 0.4rem;
    max-width: 98%;
  }

  .search-wrapper input {
    font-size: 1rem;
    padding: 0.5rem 1rem;
  }

  .search-wrapper button {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    margin-left: 6px;
  }
}
footer {
  background-color: #ffffff;
  color: #343a40;
  padding: 1rem 1rem; /* меньше отступов */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  border-top: 3px solid #0d6efd;
  box-shadow: 0 -1px 8px rgba(0,0,0,0.05);
  flex-shrink: 0;
  font-size: 0.95rem;
}

footer .container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  padding: 0 0.75rem;
}

.footer-info {
  flex: 1 1 100%;
  font-weight: 600;
  color: #0d6efd;
  font-size: 1rem;
  text-align: center;
  margin-bottom: 0.75rem;
  white-space: normal;
}

.footer-links {
  flex: 1 1 65%;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  justify-content: center;
  min-width: 0;
}

.footer-links a {
  color: #495057;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.3s ease;
  padding: 2px 4px;
  border-radius: 3px;
}

.footer-links a:hover,
.footer-links a:focus {
  color: #0d6efd;
  outline: none;
   text-decoration: none;
  background-color: #e7f1ff; /* лёгкий подсвет */
}

.footer-social {
  flex: 1 1 30%;
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  align-items: center;
  min-width: 0;
}

.footer-social a {
  color: #6c757d;
  font-size: 1.4rem;
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  border-radius: 50%;
}

.footer-social a:hover,
.footer-social a:focus {
  color: #0d6efd;
  background-color: #e7f1ff;
  outline: none;
}

.footer-copy {
  flex: 1 1 100%;
  text-align: center;
  font-weight: 500;
  font-size: 0.85rem;
  color: #adb5bd;
  margin-top: 0.8rem;
  user-select: none;
}

/* Адаптив */

@media (max-width: 768px) {
  footer .container {
    flex-direction: column;
    align-items: center;
  }
  .footer-links {
    flex: 1 1 100%;
    margin-bottom: 0.75rem;
    justify-content: center;
  }
  .footer-social {
    flex: 1 1 100%;
    margin-bottom: 0.75rem;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .footer-links a {
    font-size: 0.85rem;
    padding: 1.5px 3px;
  }
  .footer-social a {
    font-size: 1.2rem;
  }
  .footer-info {
    font-size: 0.95rem;
  }
}


/* Блок компании */
.company-info {
  display: flex;
  gap: 3rem;
  background: #f9fafd;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  align-items: center;
  flex-wrap: wrap; /* для адаптивности */
}

.company-photo-wrapper {
  position: relative;
  width: 400px;
  flex-shrink: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
  margin-bottom: 1rem; /* отступ на мобильных */
}

.company-photo-wrapper:hover {
  transform: scale(1.05);
}

.company-photo {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  border-radius: 16px;
}

.company-rating-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: #198754;
  color: #fff;
  font-weight: 700;
  font-size: 1.5rem;
  padding: 6px 14px;
  border-radius: 40px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}

.company-rating-badge i {
  color: #ffd93b;
  font-size: 1.7rem;
}

.company-name {
  font-size: 3rem;
  font-weight: 900;
  color: #0d6efd;
  margin-bottom: 0.3rem;
  max-width: 600px;
}

.company-description {
  font-size: 1.15rem;
  color: #444;
  line-height: 1.5;
  max-width: 600px;
}

.company-address {
  font-size: 1rem;
  color: #666;
  display: flex;
  align-items: center;
/*  gap: 8px;*/
  margin-bottom: 0.25rem;
}

.company-details > div {
  /* Контейнер с рейтингом, внутри company-details */
  align-self: flex-start; /* по умолчанию слева */
}

@media (max-width: 767px) {
  .company-details > div {
    align-self: center; /* на мобиле по центру */
  }
}

.company-address i {
  color: #0d6efd;
  font-size: 1.2rem;
}

.reviews-count {
  font-size: 1rem;
  color: #888;
  font-style: italic;
}

.btn-add-review {
    display: flex;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: background-color 0.3s ease;
    cursor: pointer !important;
    justify-content: center;
    align-items: center;
}

@media(max-width:720px){
    .jf{
        display: flex;
        justify-content: center;
    }
}

.btn-add-review i {
  font-size: 1.25rem;
}

.btn-add-review:hover {
  background-color: #0b5ed7;
}

/* Контролы */
.reviews-controls {
  font-size: 1rem;
  color: #555;
}

.reviews-sort select {
  max-width: 180px;
}

/* Отзывы */
.review-card {
  background-color: #fff;
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
  border-radius: 16px;
  border: 1px solid #e0e0e0;
  transition: box-shadow 0.3s ease;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.review-card:hover {
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.user-photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #0d6efd;
}

.user-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: #0d6efd;
}

.review-date {
  font-size: 0.85rem;
  color: #888;
}

.rating-badge {
  font-weight: 700;
  font-size: 1.3rem;
  color: #fff;
  padding: 6px 14px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 6px;
  user-select: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.rating-badge.bg-success {
  background-color: #198754;
}

.rating-badge.bg-warning {
  background-color: #ffc107;
  color: #212529;
}

.rating-badge i {
  font-size: 1.5rem;
  color: #ffd93b;
}

.review-body p {
  margin: 0.4rem 0;
  line-height: 1.4;
  font-size: 1rem;
  color: #333;
}

.collapsed-text {
  max-height: 4.5em;
  overflow: hidden;
  transition: max-height 0.4s ease;
  position: relative;
}

.collapsed-text::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1.5em;
  background: linear-gradient(transparent, white);
  pointer-events: none;
}

.collapsed-text.expanded {
  max-height: 999px;
}

.collapsed-text.expanded::after {
  display: none;
}

.btn-read-more {
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0;
  color: #0d6efd;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
}

.btn-read-more:hover,
.btn-read-more:focus {
  text-decoration: underline;
  outline: none;
}

/* Пагинация */
.pagination-nav .pagination {
  margin: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pagination .page-link {
  border-radius: 50% !important;
  width: 40px;
  height: 40px;
  text-align: center;
  padding: 0;
  line-height: 38px;
  font-weight: 700;
  color: #0d6efd;
  background-color: transparent;
  border: 2px solid #0d6efd;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  user-select: none;
}

.pagination .page-link:hover:not(.disabled) {
  background-color: #0d6efd;
  color: #fff;
  border-color: #0d6efd;
}

.pagination .page-item.active .page-link {
  background-color: #0d6efd;
  color: white;
  border-color: #0d6efd;
  cursor: default;
}

.pagination .page-item.disabled .page-link {
  color: #ccc;
  border-color: #ccc;
  pointer-events: none;
  background-color: transparent;
  cursor: default;
}

/* Адаптив для мелких экранов */
@media (max-width: 768px) {
  .company-info {
    flex-direction: column;
    padding: 1rem;
  }

  .company-photo-wrapper {
    width: 100%;
    max-width: 400px;
    margin-bottom: 1rem;
  }

  .company-name {
    font-size: 2.2rem;
    text-align: center;
  }

  .company-description {
    max-width: 100%;
    text-align: center;
  }
  
  .review-card {
    padding: 0.8rem;
  }

  .pagination-nav {
    gap: 0.3rem;
  }

  .pagination .page-link {
    width: 36px;
    height: 36px;
    line-height: 34px;
    font-size: 0.9rem;
  }
}
.company-photo-wrapper {
    
  position: relative; /* добавляем контекст позиционирования для абсолютного блока */
}
a{
    text-decoration:none;
}

label.form-label {
  white-space: nowrap; /* запретить перенос в лейбле */
}


.company-rating-wrapper {
  font-size: 1.5rem;
  color: #ccc;
  user-select: none;
  max-width: 170px;
  margin: 0 auto;
}
@media(max-width:720px){
    .company-rating-wrapper {
        max-width: 100%;
        text-align: center;
    }
}
.stars {
  position: relative;
  display: inline-block;
  font-size: 1.5rem;
  line-height: 1;
  user-select: none;
  width: max-content;
}

.stars-base,
.stars-fill {
  display: flex;
  gap: 3px;
}

.stars-base {
  color: #ddd;
}
.t-center{
    text-align: left;
}

@media(max-width:720px){
    .t-center{
        text-align: center;
    }
}
.stars-fill {
  color: #ffd93b;
  position: absolute;
  top: 0; left: 0;
  overflow: hidden;
  white-space: nowrap;
  width: var(--rating-width);
  transition: width 0.3s ease;
  pointer-events: none;
}


.rating-value {
  font-size: 1.2rem;
  color: #198754;
}

.rating-bar {
  width: 100%;
  height: 8px;
  background-color: #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
}

.rating-bar-fill {
  height: 100%;
  background-color: #198754;
  width: 0;
  border-radius: 12px;
  transition: width 0.5s ease;
}


.invalid-feedback {
    display:block!important;
    text-align: center;
    font-size: 12px;
}

  .company-contact {
    font-size: 15px;
    color: #555;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 12px;
  }
  .company-contact a {
    display: inline-flex;
    align-items: center;
    color: #555;
    text-decoration: none;
  }
  .company-contact a:hover {
    text-decoration: underline;
  }
  .company-contact i {
    margin-right: 6px;
    min-width: 16px;
    text-align: center;
  }

  .extra-toggle {
    cursor: pointer;
    color: #333;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    user-select: none;
    margin-top: 10px;
  }
  .extra-toggle .arrow {
    display: inline-block;
    margin-left: 6px;
    transition: transform 0.3s ease;
    font-size: 0.9em;
  }
  .extra-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    font-size: 15px;
    color: #444;
    margin-top: 0;
    padding-left: 0;
  }
  .extra-content.open {
    max-height: 500px;
    margin-top: 8px;
    padding-left: 15px;
    border-left: 2px solid #ddd;
  }
  .extra-toggle.open .arrow {
    transform: rotate(180deg);
  }
  .extra-content a, .extra-content span {
    display: block;
    margin-bottom: 6px;
  }
  .extra-content i {
    margin-right: 6px;
    color: #888;
  }
  
  #customModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh; /* Надёжная высота для мобилок */
  background: rgba(0, 0, 0, 0.85);
  z-index: 1050;
  display: none; /* Скрыто по умолчанию */
  justify-content: center;
  align-items: center;
}

/* Показ модалки */
#customModal.active {
  display: flex;
}

/* Центровка содержимого (изображения) */
.modal-center {
  display: flex;
  justify-content: center;
  align-items: center;
  max-height: 100%;
}

/* Изображение внутри модалки */
#modalImg {
  display: block;
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
}

/* Общий стиль кнопок */
#customModal button {
  position: absolute;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  z-index: 2;
}

/* Иконки Font Awesome в кнопках */
#customModal button i {
  pointer-events: none;
  font-size: inherit;
}

/* Стрелка влево */
#prevBtn {
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
}

/* Стрелка вправо */
#nextBtn {
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}


#closeBtn {
  top: 10px;
  right: 10px;
  font-size: 2.5rem;
}
@media(min-width:720px){
    .scroll-hint{
        display: none;
    }
}
@media(max-width:720px){
    #photoScroller {
      padding-left: 4px;
      padding-right: 4px;
    }

.scroll-hint {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  padding: 6px;
  box-shadow: 0 0 5px rgba(0,0,0,0.2);
  pointer-events: none;
  z-index: 10;
  animation: bounce 1.5s infinite;
}

.scroll-hint i {
  color: #333;
  font-size: 16px;
}
}

/* Простая анимация для привлечения внимания */
@keyframes bounce {
  0%, 100% { transform: translateY(-50%) translateX(0); }
  50% { transform: translateY(-50%) translateX(5px); }
}

.flash {
    animation: flash 2s ease-in-out;
  }

  @keyframes flash {
    0%   { background-color: #fff3cd; }
    50%  { background-color: #ffeeba; }
    100% { background-color: transparent; }
  }

  .comments .card {
    border-radius: 0.5rem;
    border-color: #ddd;
  }

  #replyTo strong {
    font-weight: bold;
  }

  .reply {
    border-left: 3px solid #ddd;
    padding-left: 1rem;
  }

  .reply-btn-wrap {
    margin-top: 0.5rem;
  }

  .reply-btn-wrap .reply-btn {
    width: auto;
    min-width: 100px;
  }

  .comment-list .reply-btn {
    display: inline-block;
    margin-top: 0.25rem;
  }

  .comment-list p {
    margin-bottom: 0.5rem;
  }


.pagination {
    margin: 0;
    padding: 0;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.page-item {
    margin: 0 5px;
}

.page-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    height: 40px;
    width: 40px;
    font-size: 16px;
    background-color: #fff;
    color: #007bff;
    border-radius: 50%;
    transition: background-color 0.3s, color 0.3s, transform 0.3s;
    text-decoration: none;
}

.page-link:hover {
    background-color: #007bff;
    color: #fff;
    transform: scale(1.1);
}

.page-item.active .page-link {
    background-color: #007bff;
    color: #fff;
    border: none;
}

.page-item.disabled .page-link {
    color: #ccc;
    cursor: not-allowed;
}

.page-link i {
    font-size: 18px; 
}

.page-item i {
    font-size: 18px;
    line-height: 40px;
}
 .section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    border-left: 4px solid #0d6efd;
    padding-left: 0.75rem;
    margin-bottom: 1.5rem;
  }

  .company-card {
    border: none;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .company-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  }

  .company-img {
    object-fit: cover;
    height: 160px;
    border-bottom: 1px solid #eee;
  }

.card-body .stars i {
  font-size: 1rem;
  color: #f5c518;
}
  .stars-base i {
    color: #ddd;
  }

  .btn-link {
    font-weight: 500;
    color: #0d6efd;
  }

  .btn-link:hover {
    text-decoration: underline;
  }

  .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
  }

  .card-text {
    font-size: 0.875rem;
  }
