/* Reviews Section Styles */
.reviews-section {
    margin: 120px 0;
}

.reviews-container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    width: 100%;
}

.reviews-row {
    display: flex;
    flex-wrap: wrap;
}

.reviews-col-left {
    width: calc(25% - 20px);
    margin-left: 20px;
}

.reviews-col-right {
    width: calc(75% - 20px);
    margin-left: 20px;
}

.reviews-carousel-controls {
    display: flex;
    align-items: center;
}

.reviews-carousel-controls + .reviews-header {
    margin-top: 20px;
}

.reviews-prev-btn {
    margin-right: 15px;
}

.reviews-prev-btn,
.reviews-next-btn {
    border: 3px solid #000;
    border-radius: 20px;
    width: 56px;
    height: 56px;
    font-size: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.reviews-prev-btn:not(.swiper-button-disabled):hover,
.reviews-next-btn:not(.swiper-button-disabled):hover {
    background: var(--color-primary-dark);
    color: #fff;
    border-color: var(--color-primary-dark);
}

.reviews-title {
    text-transform: uppercase;
    margin: 0 0 20px 0;
    font-size: 45px;
    line-height: 1.2;
    font-weight: 600;
    color: #252525;
}

.reviews-subtitle {
    position: relative;
    padding-left: 15px;
    font-size: 14px;
    margin-top: 10px;
}

.reviews-subtitle:before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    background: var(--color-primary);
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.reviews-pagination {
    position: relative;
    margin-left: -4px;
    margin-right: -4px;
    margin-top: 30px;
    text-align: left;
}

.reviews-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #fff;
    opacity: 1;
    transition: all 0.3s ease;
}

.reviews-pagination .swiper-pagination-bullet:hover {
    background: #0b22ef;
}

.reviews-pagination .swiper-pagination-bullet-active {
    background: #000;
}

.reviews-pagination .swiper-pagination-bullets-dynamic {
    overflow: hidden;
    font-size: 0;
}

.reviews-pagination .swiper-pagination-bullets-dynamic .swiper-pagination-bullet {
    transform: scale(0.33);
    position: relative;
}

.reviews-pagination .swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active {
    transform: scale(1);
}

.reviews-pagination .swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main {
    transform: scale(1);
}

.reviews-pagination .swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next {
    transform: scale(0.66);
}

.reviews-pagination .swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next {
    transform: scale(0.33);
}

.reviews-pagination .swiper-pagination-clickable .swiper-pagination-bullet {
    cursor: pointer;
}

.reviews-pagination .swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet {
    margin: 0 4px;
}

.reviews-pagination .swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic {
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

.reviews-pagination .swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet {
    transition: 0.2s transform, 0.2s left;
}

/* Review Card Styles */
.review-card {
    height: auto;
    background: #ffffff;
    border-radius: 30px;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.review-header {
    margin-bottom: 16px;
    min-height: 49px;
}

.review-author {
    font-weight: 600;
    font-size: 25px;
    text-transform: uppercase;
}

.review-city {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.review-image-container {
    min-height: 170px;
}

.review-image {
    width: 100%;
    border-radius: 20px;
    height: auto;
}

.review-car-info {
    margin-top: 10px;
    font-weight: 500;
    font-size: 12px;
}

.review-excerpt {
    margin: 15px 0 20px;
    flex-grow: 1;
    font-size: 14px;
}

.review-excerpt p {
    margin: 0;
}

.review-excerpt p + p {
    margin-top: 15px;
}

.review-action {
    margin-top: auto;
}
/* Общая обёртка карточки */
.review-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Заголовок отзыва — автор и город */
.review-header {
  margin-bottom: 12px;
}

.review-author {
  font-weight: 600;
  font-size: 1.1em;
  color: #222;
}

.review-city {
  color: #666;
  font-size: 0.9em;
}

/* Контейнер с фото */
.review-image-container {
  position: relative;
  margin: 12px 0;
  display: flex;
  align-items: flex-start;
}

.review-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: top;
  border-radius: 8px;
  align-self: flex-start;
}

.review-car-info {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.85em;
}

/* Текст отзыва — ограничение высоты */
.review-excerpt {
  flex-grow: 1;
  margin: 12px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  line-height: 1.5;
  color: #333;
}

/* Блок с кнопкой — всегда внизу */
.review-action {
    display: none;
  margin-top: auto;
  padding-top: 8px;
}

.review-read-more {
  display: inline-block;
  color: #0066cc;
  text-decoration: none;
  font-size: 0.95em;
  font-weight: 500;
}

.review-read-more:hover {
  text-decoration: underline;
  color: #004a99;
}

.review-read-more {
    font-size: 14px;
    min-height: 50px;
    padding: 2px 10px;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: var(--color-primary);
    border: 1px solid var(--color-primary);
    color: #fff;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

.review-read-more:hover {
    background: #fff;
    color: #0b22ef;
    text-decoration: none;
}

.review-read-more:disabled {
    opacity: 0.6;
}

.review-read-more:disabled:hover {
    color: #fff;
    background: #0b22ef;
    border: 1px solid #0b22ef;
}

.review-modal {
    border-radius: 30px;
    padding: 40px;
    width: 1024px;
    display: none;
}

.review-modal p {
    margin: 0;
}

.review-modal p + p {
    margin-top: 15px;
}

/* Swiper Styles for Reviews */
.reviews-swiper {
    margin-left: auto;
    margin-right: auto;
    position: relative;
    overflow: hidden;
    list-style: none;
    padding: 0;
    z-index: 1;
}

.reviews-swiper-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    transition-property: transform;
    box-sizing: content-box;
}

.reviews-swiper-slide {
    flex-shrink: 0;
    width: 285px;
    height: 100%;
    position: relative;
    transition-property: transform;
    margin-right: 20px;
}

.reviews-swiper-horizontal {
    touch-action: pan-y;
}

.reviews-swiper-notification {
    position: absolute;
    left: 0;
    top: 0;
    pointer-events: none;
    opacity: 0;
    z-index: -1000;
}

/* Icomoon Icons */
.reviews-icomoon {
    font-family: "icomoon" !important;
    speak: never;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.reviews-icomoon-prev:before {
    content: "\e901";
}

.reviews-icomoon-next:before {
    content: "\e902";
}

/* Responsive Design */
@media screen and (max-width: 1200px) {
    .reviews-title {
        font-size: 38px;
    }
    
    .reviews-prev-btn,
    .reviews-next-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
        border-radius: 10px;
        border-width: 2px;
    }
    
    .reviews-swiper-slide {
        width: 260px;
    }
}

@media screen and (max-width: 1023px) {
    .reviews-header {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 30px;
    }
    
    .reviews-col-left,
    .reviews-col-right {
        width: calc(100% - 20px);
    }
    
    .reviews-col-left {
        display: flex;
        align-items: center;
        flex-direction: column-reverse;
        margin-bottom: 20px;
    }
    
    .reviews-col-left .reviews-header {
        margin-top: 0;
        margin-bottom: 0;
    }
    
    .reviews-col-left .reviews-carousel-controls > div {
        margin-top: 15px;
    }
    
    .reviews-row {
        position: relative;
        padding-bottom: 35px;
    }
    
    .reviews-col-left .reviews-pagination {
        position: absolute;
        bottom: 0;
        left: 20px;
        right: 0;
        text-align: center;
        width: auto;
        margin-left: 0;
        margin-right: 0;
    }
    
    .reviews-swiper-slide {
        width: 300px;
        margin-right: 15px;
    }
}

@media screen and (max-width: 767px) {
    .reviews-title {
        font-size: 34px;
    }
    
    .review-read-more {
        font-size: 16px;
        border-radius: 15px;
        min-height: 50px;
    }
    
    .reviews-section {
        margin: 60px 0;
    }
    
    .review-card {
        border-radius: 15px;
        padding: 15px;
    }
    
    .review-image {
        border-radius: 10px;
    }
    
    .review-modal {
        border-radius: 20px;
        padding: 30px 20px;
        width: 90%;
        max-width: 400px;
    }
    
    .review-author {
        font-size: 20px;
    }
    
    .reviews-swiper-slide {
        width: 280px;
        margin-right: 10px;
    }
}

@media screen and (max-width: 479px) {
    .reviews-title {
        font-size: 30px;
    }
    
    .review-modal {
        padding: 25px 15px;
    }
    
    .reviews-container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .reviews-row {
        margin-left: -15px;
    }
    
    .reviews-col-left,
    .reviews-col-right {
        width: calc(100% - 15px);
        margin-left: 15px;
    }
    
    .reviews-swiper-slide {
        width: 260px;
    }
}

/* Utility Classes */
.reviews-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.reviews-text-center {
    text-align: center;
}

.reviews-mb-20 {
    margin-bottom: 20px;
}

.reviews-mt-20 {
    margin-top: 20px;
}

/* Focus Styles for Accessibility */
.reviews-prev-btn:focus,
.reviews-next-btn:focus,
.review-read-more:focus {
    outline: 2px solid #0b22ef;
    outline-offset: 2px;
}

.reviews-pagination .swiper-pagination-bullet:focus {
    outline: 2px solid #0b22ef;
    outline-offset: 2px;
}

/* Selection Styles */
.reviews-section ::selection {
    background: #39f;
    color: #fff;
    text-shadow: none;
}

.reviews-carousel-controls {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
  }
  
  .reviews-prev-btn,
  .reviews-next-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
  }
  
  .reviews-prev-btn:hover,
  .reviews-next-btn:hover {
    border-color: #0066cc;
    background-color: #f0f8ff;
  }
  
  .reviews-prev-btn:active,
  .reviews-next-btn:active {
    transform: scale(0.95);
  }
  
  .reviews-prev-btn:focus,
  .reviews-next-btn:focus {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
  }
  
  /* Стиль для SVG-иконок */
  .reviews-icomoon {
    width: 24px;
    height: 24px;
    color: #333;
    transition: color 0.3s ease;
  }
  
  .reviews-prev-btn:hover .reviews-icomoon-prev,
  .reviews-next-btn:hover .reviews-icomoon-next {
    color: #ffffff;
  }

  /* Отключаем выделение текста на кнопках */
.reviews-prev-btn,
.reviews-next-btn {
  -webkit-user-select: none; /* Для Safari */
  -moz-user-select: none;    /* Для Firefox */
  -ms-user-select: none;     /* Для IE/Edge */
  user-select: none;         /* Современные браузеры */

  /* Также можно добавить, чтобы курсор был "кликабельным" */
  cursor: pointer;
}

/* Опционально: отключить выделение для всей карусели */
.reviews-swiper,
.reviews-carousel-controls {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Print Styles */
@media print {
    .reviews-carousel-controls,
    .reviews-pagination,
    .review-read-more {
        display: none !important;
    }
    
    .reviews-section {
        margin: 50px 0;
    }
    
    .review-card {
        break-inside: avoid;
        border: 1px solid #ccc;
    }
}