.review-cards-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.review-card {
  background: #ffffff;
  border: 1px solid #f0f0f0;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  position: relative;
  min-height: 240px;
}

.review-card:not(:has(.review-photos)) {
  min-height: auto;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  border-color: #e0e0e0;
}

/* Шапка карточки */
.review-header {
  margin-bottom: 16px;
}

.review-name {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 8px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.3;
}

.verified-badge {
  color: #10b981;
  font-size: 14px;
  font-weight: bold;
  background: #ecfdf5;
  padding: 2px 6px;
  border-radius: 12px;
  font-size: 12px;
}

.review-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #666666;
}

.review-location {
  font-weight: 500;
  color: #4b5563;
}

.review-date {
  font-size: 13px;
  color: #9ca3af;
}

/* Контент отзыва */
.review-content {
  flex: 1;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
}

.review-card:not(:has(.review-photos)) .review-content {
  margin-bottom: 0;
}

.review-text {
  font-size: 15px;
  line-height: 1.5;
  color: #4b5563;
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Разное количество строк для карточек с фото и без */
.review-card:not(:has(.review-photos)) .review-text {
  -webkit-line-clamp: 6;
}

.review-card:has(.review-photos) .review-text {
  -webkit-line-clamp: 3;
}

/* Секция с фотографиями */
.review-photos {
  margin: 12px 0;
  display: flex;
  gap: 8px;
  align-items: center;
}

.photos-preview {
  display: flex;
  gap: 6px;
  flex: 1;
}

.photo-preview {
  width: 80px;
  height: 80px;
  border-radius: 6px;
  overflow: hidden;
  background: #f9fafb;
  position: relative;
  flex-shrink: 0;
}

.photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Компактный блок "Еще фото" */
.more-photos {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  flex-shrink: 0;
  text-decoration: none;
  padding: 4px 8px;
  transition: background-color 0.3s ease;
}

.more-photos-text {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  margin: 0;
}

.more-photos .arrow-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.review-footer {
  margin-top: 5px;
}

.review-card:not(:has(.review-photos)) .review-footer {
  padding-top: 8px;
}

/* "Читать полностью" */
.read-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  padding: 8px 0;
}

.read-more:hover {
  color: #e53e3e;
  gap: 12px;
}

.read-more .arrow-icon {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.read-more:hover .arrow-icon {
  transform: translateX(3px);
}

/* Адаптивность карточек */
@media (max-width: 1200px) {
  .review-cards-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .review-cards-container {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .review-card {
    padding: 20px;
    min-height: 220px;
  }

  .review-card:not(:has(.review-photos)) {
    min-height: auto;
  }

  .review-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .review-date {
    align-self: flex-end;
  }

  .review-photos {
    flex-wrap: wrap;
  }

  .more-photos {
    margin-top: 0;
    width: auto;
  }
}

@media (max-width: 480px) {
  .review-card {
    padding: 16px;
    min-height: 200px;
  }

  .review-card:not(:has(.review-photos)) {
    min-height: auto;
  }

  .review-name {
    font-size: 16px;
  }

  .review-text {
    font-size: 14px;
  }

  .photos-preview {
    gap: 4px;
  }

  .photo-preview {
    width: 45px;
    height: 45px;
  }
}

/* СТИЛИ ДЛЯ ФИЛЬТРОВ И ОСНОВНЫЕ КОНТЕЙНЕРЫ */
.container {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  line-height: 1.25;
  color: #161c2d;
  margin-bottom: 20px;
}

.breadcrumbs a {
  color: #161c2d;
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: #473bf0;
}

.breadcrumbs .current {
  color: #666666;
}

.page-header {
  text-align: left;
  margin: 10px 0 25px 0;
}

.page-title {
  font-size: 60px;
  font-weight: 700;
  line-height: 65px;
  color: #161c2d;
}

.filters-form {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 25px;
  flex-wrap: wrap;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  margin-bottom: 20px;
}

.filter-label {
  font-weight: 600;
  font-size: 16px;
  line-height: 1.35;
  color: #2a2a2a;
  white-space: nowrap;
  margin: 0;
  margin-right: 10px;
}

.filter-group {
  flex: 1;
  min-width: 180px;
  width: 220px;
  max-width: max-content;
}

.filter-group .select2-container {
  width: 100% !important;
}

.filter-group .select2-selection--multiple {
  border: 1px solid #d1d5db !important;
  border-radius: 8px !important;
  min-height: 42px !important;
  background-color: white !important;
  padding: 6px 10px !important;
  transition: all 0.2s ease;
}

.filter-group .select2-selection--multiple:hover {
  border-color: #473bf0 !important;
  background-color: #fafbff !important;
}

.filter-group .select2-selection__choice {
  background-color: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  color: #475569 !important;
  border-radius: 6px !important;
  padding: 4px 10px !important;
  font-size: 13px !important;
  margin: 3px !important;
  font-weight: 500;
}

.filter-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-left: auto;
}

.btn-apply {
  background-color: #473bf0;
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.25;
  cursor: pointer;
  white-space: nowrap;
  height: 42px;
  transition: all 0.2s ease;
}

.btn-apply:hover {
  background-color: #3a2fcc;
  transform: translateY(-1px);
}

.btn-reset {
  background-color: #6c757d;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.25;
  cursor: pointer;
  white-space: nowrap;
  height: 42px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-reset:hover {
  background-color: #5a6268;
  color: white;
  transform: translateY(-1px);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin: 30px 0;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.25;
  color: #2a2a2a;
}

.page-arrow,
.page-number,
.page-dots {
  display: inline-block;
  padding: 5px 10px;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s;
}

.page-arrow {
  font-size: 24px;
  line-height: 1;
  color: #787878;
}

.page-arrow:hover {
  color: #473bf0;
}

.page-arrow.disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: default;
}

.page-number {
  color: #2a2a2a;
  border: 1px solid transparent;
}

.page-number:hover {
  background-color: #f9f9f9;
  border-color: #e6e6e6;
}

.page-number.current {
  color: #f64b4b;
  font-weight: 700;
}

.page-dots {
  color: #666666;
  font-weight: 700;
}

.no-results {
  text-align: center;
  padding: 40px;
  font-size: 18px;
  color: #666;
  grid-column: 1 / -1;
}

/* Form Section */
.form-section {
  margin: 50px 0;
  background: white;
  border-radius: 35px 35px 0 0;
  border-top: 10px solid #473bf0;
  box-shadow: 0px -260px 73px 0px rgba(19, 16, 46, 0),
    0px -166px 66px 0px rgba(19, 16, 46, 0.01),
    0px -93px 56px 0px rgba(19, 16, 46, 0.05),
    0px -42px 42px 0px rgba(19, 16, 46, 0.09),
    0px -10px 23px 0px rgba(19, 16, 46, 0.1);
  backdrop-filter: blur(5px);
}

.form-container {
  padding: 40px 60px 60px;
}

.form-header {
  margin-bottom: 30px;
}

.form-header h2 {
  font-weight: 700;
  font-size: 46px;
  line-height: 65px;
  color: #161c2d;
  margin: 0;
}

.review-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-row {
  display: flex;
  gap: 15px;
}

.input-wrapper {
  flex: 1;
}

.input-wrapper.full {
  flex: 1 1 100%;
}

.form-input {
  width: 100%;
  height: 60px;
  padding: 12px 15px;
  border: 1px solid #f4f7fa;
  border-radius: 5px;
  background: white;
  font-family: "Manrope", sans-serif;
  font-size: 17px;
  line-height: 1.25;
  color: #2a2a2a;
  box-sizing: border-box;
}

.form-input::placeholder {
  color: #666666;
}

.form-textarea {
  width: 100%;
  height: 263px;
  padding: 12px 15px;
  border: 1px solid #f4f7fa;
  border-radius: 5px;
  background: white;
  font-family: "Manrope", sans-serif;
  font-size: 17px;
  line-height: 1.25;
  color: #2a2a2a;
  resize: none;
  box-sizing: border-box;
}

.form-textarea::placeholder {
  color: #666666;
}

.file-input {
  position: relative;
}

.form-file {
  display: none;
}

.file-label {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  height: 60px;
  padding: 12px 15px;
  border: 1px solid #f4f7fa;
  border-radius: 5px;
  background: #f4f7fa;
  font-family: "Manrope", sans-serif;
  font-size: 17px;
  line-height: 1.25;
  color: #666666;
  cursor: pointer;
  box-sizing: border-box;
}

.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
}

.privacy-text {
  font-size: 12px;
  line-height: 1.25;
  color: #666666;
  margin: 0;
}

.privacy-text a {
  color: #473bf0;
  text-decoration: none;
}

.privacy-text a:hover {
  text-decoration: underline;
}

.submit-button {
  background: #f64b4b;
  border: none;
  border-radius: 8px;
  padding: 13px 60px;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.25;
  color: white;
  cursor: pointer;
  transition: background 0.3s;
}

.submit-button:hover {
  background: #e53e3e;
}

/* Стили для превью файлов */
.file-preview-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.file-preview-item {
  position: relative;
  width: 100px;
  height: 120px;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  background: #f9f9f9;
}

.file-preview-item img {
  width: 100%;
  height: 70px;
  object-fit: cover;
}

.file-preview-info {
  padding: 5px;
  font-size: 11px;
}

.file-name {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

.file-size {
  display: block;
  color: #666;
  font-size: 10px;
}

.file-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  background: rgba(255, 0, 0, 0.8);
  color: white;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.file-remove:hover {
  background: rgba(255, 0, 0, 1);
}

/* Стили для модального окна */
.review-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
}

.review-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.review-modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  width: 400px;
  height: 100px;
  overflow: hidden;
}

.review-modal-close {
  position: absolute;
  top: 7px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
}

.review-modal-close:hover {
  color: #000;
}

.review-modal-body {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.review-modal-body p {
  padding: 0 20px;
}

.review-modal-footer {
  padding: 0 20px 20px;
  text-align: right;
}

.review-modal-btn {
  background: #007cba;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

.review-modal-btn:hover {
  background: #005a87;
}

/* Стили для разных типов модальных окон */
.success-modal .review-modal-header {
  background: #d4edda;
  color: #155724;
}

.error-modal .review-modal-header {
  background: #f8d7da;
  color: #721c24;
}

body.modal-open {
  overflow: hidden;
}

/* Стили для ошибок валидации */
.field-error {
  box-shadow: 0 0 0 1px #d63638 !important;
}

/* FAQ аккордион */
.FAQ {
  margin-top: 50px;
}

.FAQ_content {
  grid-template-columns: auto;
}

.FAQ--caption,
.FAQ--desc {
  text-align-last: left;
}

.FAQ__accordion .ac {
  border: 1px solid #efefef !important;
}

/* Карточка отзыва */
.review-single__container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 100%;
}

.review-single__content {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
}

.review-single__main-image {
  width: 330px;
  height: 313px;
  border-radius: 5px;
  overflow: hidden;
  flex-shrink: 0;
}

.review-single__main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
}

.review-single__meta {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}

.review-single__city {
  font-size: 17px;
  font-weight: 500;
  color: #2a2a2a;
}

.review-single__date {
  font-size: 12px;
  color: #666;
}

.review-single__text {
  font-size: 17px;
  line-height: 1.6;
  color: #2a2a2a;
  opacity: 0.7;
  width: 100%;
}

.review-single__gallery {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  width: 100%;
}

.review-single__gallery-item {
  width: 222.5px;
  height: 170px;
  border-radius: 5px;
  overflow: hidden;
  flex-shrink: 0;
}

.review-single__gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
}

.review-single__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.review-single__author {
  font-size: 24px;
  font-weight: 600;
  color: #2a2a2a;
  margin: 0;
}

.review-single__verified {
  color: #4caf50;
  font-weight: bold;
}

.similar-reviews__title {
  margin-top: 50px;
  font-weight: 700;
  font-size: 48px;
  line-height: 125%;
  color: var(--color-2);
}

.btn-all-review {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 15px;
}

.btn-all-review .btn-primary {
  background-color: #473bf0;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  padding: 13px 40px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

@media (max-width: 1250px) {
  .FAQ_content {
    justify-items: left;
    align-items: unset;
  }

  .FAQ_contentWrapper {
    width: 100%;
    align-items: unset;
  }
}

@media (max-width: 800px) {
  .FAQ--caption {
    text-align: left;
    font-size: 36px;
  }

  .FAQ--desc {
    font-size: 20px;
    text-align: left;
  }
}

@media (max-width: 600px) {
  .FAQ__accordion .ac.is-active {
    padding: 12px !important;
  }

  .FAQ__accordion .ac {
    padding: 15px 0;
  }
}

@media (max-width: 450px) {
  .FAQ--caption {
    font-size: 28px;
  }

  .FAQ--desc {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .review-single {
    padding: 20px 15px;
  }

  .review-single__main-image {
    width: 100%;
    height: 250px;
  }

  .review-single__gallery-item {
    width: calc(50% - 10px);
    height: 150px;
  }
}

@media (max-width: 480px) {
  .review-single__gallery-item {
    width: 100%;
    height: 200px;
  }
}

/* Адаптивность формы и фильтров */
@media (max-width: 1440px) {
  .container {
    max-width: 1200px;
  }
}

@media (max-width: 1200px) {
  .page-title {
    font-size: 48px;
    line-height: 52px;
  }

  .filter-group {
    min-width: calc(33.333% - 10px);
    max-width: none;
  }

  .form-header h2 {
    font-size: 36px;
    line-height: 50px;
  }

  .form-container {
    padding: 30px 40px 40px;
  }
}

@media (max-width: 992px) {
  .filter-group {
    min-width: calc(50% - 10px);
  }

  .filters-form {
    gap: 12px;
    padding: 20px;
  }
}

@media (max-width: 800px) {
  .similar-reviews__title,
  .page-title {
    font-size: 36px;
  }
}

@media (max-width: 768px) {
  .page-title {
    font-size: 36px;
    line-height: 40px;
    text-align: center;
  }

  .breadcrumbs {
    flex-wrap: wrap;
    font-size: 16px;
  }

  .filter-group {
    min-width: 100%;
    max-width: 100%;
  }

  .filter-buttons {
    width: 100%;
    flex-direction: column;
    gap: 10px;
    margin-left: 0;
  }

  .btn-apply,
  .btn-reset {
    width: 100%;
  }

  .filters-form {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }

  .filter-label {
    text-align: center;
    margin-right: 0;
    margin-bottom: 5px;
  }

  .form-row {
    flex-direction: column;
  }

  .form-footer {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }

  .submit-button {
    width: 100%;
  }

  .form-header h2 {
    font-size: 28px;
    line-height: 40px;
  }

  .form-container {
    padding: 30px 20px;
  }
}

@media (max-width: 600px) {
  .breadcrumbs {
    padding-top: 12px;
  }
}

/* Стили для состояний загрузки (опционально) */
.review-card.loading {
  opacity: 0.7;
  pointer-events: none;
}

.review-card.loading::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

/* Стили для карусели галереи */
.gallery-carousel {
  width: 100%;
  margin-top: 40px;
  position: relative;
}

.gallery-carousel__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.gallery-carousel__title {
  font-size: 24px;
  font-weight: 600;
  color: #2a2a2a;
  margin: 0;
}

.gallery-carousel__controls {
  display: flex;
  gap: 10px;
}

.gallery-carousel__nav {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #473bf0;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gallery-carousel__nav:hover:not(:disabled) {
  background: #473bf0;
  color: #ffffff;
  border-color: #473bf0;
  transform: scale(1.05);
}

.gallery-carousel__nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.gallery-carousel__container {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.gallery-carousel__track {
  display: flex;
  gap: 15px;
  transition: transform 0.3s ease;
  will-change: transform;
}

.gallery-carousel__slide {
  flex: 0 0 auto;
  width: 200px;
  height: 150px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
}

.gallery-carousel__slide:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.gallery-carousel__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-carousel__slide:hover .gallery-carousel__image {
  transform: scale(1.05);
}

.gallery-carousel__pagination {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.gallery-carousel__counter {
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

.gallery-carousel__current {
  color: #473bf0;
  font-weight: 600;
}

/* Главное изображение */
.review-single__main-image {
  width: 100%;
  max-width: 400px;
  height: 300px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.review-single__main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.review-single__main-image:hover img {
  transform: scale(1.03);
}

/* Мобильная адаптация карусели */
@media (max-width: 768px) {
  .gallery-carousel__header {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }

  .gallery-carousel__title {
    font-size: 20px;
  }

  .gallery-carousel__slide {
    width: 160px;
    height: 120px;
  }

  .review-single__main-image {
    max-width: 100%;
    height: 250px;
  }
}

@media (max-width: 480px) {
  .gallery-carousel__slide {
    width: 140px;
    height: 105px;
  }

  .gallery-carousel__track {
    gap: 10px;
  }

  .review-single__main-image {
    height: 200px;
  }
}

/* Стили для модального окна галереи */
.gallery-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  animation: fadeIn 0.3s ease;
}

.gallery-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(5px);
}

.gallery-modal__content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  box-sizing: border-box;
}

.gallery-modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  z-index: 10001;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.gallery-modal__close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.gallery-modal__image-container {
  max-width: 90%;
  max-height: 80%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-modal__image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.gallery-modal__nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  transform: translateY(-50%);
  pointer-events: none;
}

.gallery-modal__nav-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  transition: all 0.3s ease;
  pointer-events: all;
  backdrop-filter: blur(10px);
}

.gallery-modal__nav-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.gallery-modal__nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}

.gallery-modal__counter {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  text-align: center;
  color: white;
  font-size: 16px;
  font-weight: 500;
  background: rgba(0, 0, 0, 0.5);
  padding: 8px 16px;
  border-radius: 20px;
  display: inline-block;
  margin: 0 auto;
  width: fit-content;
  backdrop-filter: blur(10px);
}

/* Адаптация модального окна для мобильных */
@media (max-width: 768px) {
  .gallery-modal__content {
    padding: 20px 10px;
  }

  .gallery-modal__close {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
  }

  .gallery-modal__nav {
    padding: 0 10px;
  }

  .gallery-modal__nav-btn {
    width: 40px;
    height: 40px;
  }

  .gallery-modal__counter {
    bottom: 10px;
    font-size: 14px;
  }

  .gallery-modal__image-container {
    max-width: 95%;
    max-height: 70%;
  }
}

/* Состояние когда модальное окно открыто */
body.gallery-modal-open {
  overflow: hidden;
}
