/* ===== ОСНОВНЫЕ СТИЛИ ДЕТАЛЬНОЙ СТРАНИЦЫ ===== */
.moto-detail-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  font-family: "Open Sans", sans-serif;
  margin-top: 155px;
  transition: margin-top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.moto-header.scrolled ~ .moto-detail-page {
  margin-top: 80px;
}

@media (max-width: 599px) {
  .moto-detail-page {
    margin-top: 80px;
  }
  
  .moto-header.scrolled ~ .moto-detail-page {
    margin-top: 80px;
  }
}

@media (max-width: 1199px) {
  .moto-detail-page {
    margin-top: 250px;
  }
  
  .moto-header.scrolled ~ .moto-detail-page {
    margin-top: 125px;
  }
}

.moto-detail-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  overflow: hidden;
  border: 1px solid #f0f0f0;
  animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== ХЛЕБНЫЕ КРОШКИ ===== */
.moto-detail-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 15px 20px;
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
  font-size: 13px;
  font-weight: 500;
  flex-wrap: wrap;
}

.moto-detail-breadcrumb {
  color: #6c757d;
  text-decoration: none;
  transition: all 0.3s ease;
  font-family: "Open Sans", sans-serif;
}

.moto-detail-breadcrumb:hover {
  color: #ec1827;
  text-decoration: none;
}

.moto-detail-breadcrumb--current {
  color: #333;
  font-weight: 600;
}

.moto-detail-breadcrumb-separator {
  color: #adb5bd;
  font-weight: 300;
}

/* ===== ОСНОВНАЯ СЕТКА ===== */
.moto-detail-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
  padding: 30px;
  align-items: start;
}

/* ===== ГАЛЕРЕЯ ИЗОБРАЖЕНИЙ ===== */
.moto-detail-gallery {
  display: flex;
  gap: 15px;
  align-items: center;
  min-height: 450px;
  background: #f8f9fa;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #e9ecef;
}

.moto-detail-gallery__main {
  position: relative;
  flex: 1;
  cursor: grab;
  user-select: none;
  height: 100%;
}

.moto-detail-gallery__main:active {
  cursor: grabbing;
}

.moto-detail-gallery__hero {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: #f8f9fa;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: pan-y pinch-zoom;
}

.moto-detail-gallery__hero img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  background: white;
  pointer-events: none;
}

.moto-detail-gallery__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  font-size: 1.1rem;
  font-weight: 500;
  gap: 10px;
}

.moto-detail-gallery__placeholder i {
  font-size: 3rem;
  opacity: 0.5;
}

/* Стрелки навигации */
.moto-detail-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 5;
  opacity: 0;
}

.moto-detail-gallery__hero:hover .moto-detail-gallery__nav {
  opacity: 1;
}

.moto-detail-gallery__nav:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: translateY(-50%) scale(1.1);
}

.moto-detail-gallery__nav--prev {
  left: 10px;
}

.moto-detail-gallery__nav--next {
  right: 10px;
}

.moto-detail-gallery__nav i {
  font-size: 16px;
}

/* Индикатор текущего изображения */
.moto-detail-gallery__indicator {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
  display: none;
}

.moto-detail-gallery__indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.moto-detail-gallery__indicator-dot--active {
  background: white;
  transform: scale(1.2);
}

/* Миниатюры */
.moto-detail-gallery__thumbs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
  height: 100%;
  overflow-y: auto;
  padding-right: 8px;
}

.moto-detail-gallery__thumbs::-webkit-scrollbar {
  width: 6px;
  margin-left: 8px;
}

.moto-detail-gallery__thumbs::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 3px;
}

.moto-detail-gallery__thumbs::-webkit-scrollbar-thumb {
  background: #ec1827;
  border-radius: 3px;
  margin-left: 2px;
}

.moto-detail-gallery__thumbs::-webkit-scrollbar-thumb:hover {
  background: #c1101c;
}

.moto-detail-gallery__thumb {
  border: 2px solid #e9ecef;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  background: white;
  padding: 0;
  aspect-ratio: 1/1;
  position: relative;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  min-height: 80px;
}

.moto-detail-gallery__thumb:hover {
  border-color: #333;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.moto-detail-gallery__thumb--active {
  border-color: #333;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.moto-detail-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.moto-detail-gallery__loading {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
}

.moto-detail-gallery__skeleton {
  width: 80px;
  height: 80px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  border-radius: 8px;
  animation: skeleton-loading 1.5s infinite;
  flex-shrink: 0;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.moto-detail-gallery__empty {
  text-align: center;
  padding: 20px;
  color: #6c757d;
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.moto-detail-gallery__empty i {
  margin-bottom: 10px;
}

.moto-detail-gallery__empty p {
  margin: 0;
  font-size: 0.9rem;
}

.moto-detail-gallery__empty button {
  margin-top: 10px;
  padding: 8px 16px;
  background: #ec1827;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: background 0.3s ease;
}

.moto-detail-gallery__empty button:hover {
  background: #c1101c;
}

/* ===== ИНФОРМАЦИЯ О ТОВАРЕ ===== */
.moto-detail-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: #f8f9fa;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #e9ecef;
  min-height: 450px;
}

.moto-detail-info__header {
  margin-bottom: 10px;
}

.moto-detail-info__title {
  font-size: 2rem;
  font-weight: 700;
  color: #2c3e50;
  margin: 0 0 8px 0;
  line-height: 1.2;
  font-family: "Open Sans", sans-serif;
  word-wrap: break-word;
  hyphens: auto;
}

/* Цены */
.moto-detail-info__pricing {
  background: white;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
}

.moto-detail-info__price-range {
  font-size: 0.9rem;
  color: #6c757d;
  margin-bottom: 8px;
  font-weight: 500;
}

.moto-detail-info__price-details {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.moto-detail-info__current-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ec1827;
  font-family: "Open Sans", sans-serif;
  word-wrap: break-word;
  hyphens: auto;
}

.moto-detail-info__price-label {
  font-size: 0.9rem;
  color: #6c757d;
  font-weight: 500;
}

/* Выбор цвета */
.moto-detail-info__colors {
  margin-top: -20px;
}

.moto-detail-info__colors-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
  font-family: "Open Sans", sans-serif;
}

.moto-detail-info__colors-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

.moto-detail-info__color-item {
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  background: white;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 55px;
}

.moto-detail-info__color-item:hover {
  border-color: #333;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.moto-detail-info__color-item--active {
  border-color: #333;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  background: #f8f9fa;
}

.moto-detail-info__color-item--active::before {
  content: '✓';
  position: absolute;
  top: 8px;
  right: 8px;
  background: #333;
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

/* Стиль для единственного цвета (неактивная кнопка) */
.moto-detail-info__color-item[style*="pointer-events: none"] {
  cursor: default;
  opacity: 0.8;
}

.moto-detail-info__color-item[style*="pointer-events: none"]:hover {
  transform: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border-color: #333;
}

.moto-detail-info__color-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: #333;
  line-height: 1.2;
}

.moto-detail-info__color-price {
  font-size: 0.75rem;
  color: #ec1827;
  font-weight: 700;
  line-height: 1.2;
}

/* Кнопки действий */
.moto-detail-info__actions {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.moto-detail-info__buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.moto-detail-info__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  font-family: "Open Sans", sans-serif;
  position: relative;
  overflow: hidden;
}

.moto-detail-info__btn--primary {
  background: #ec1827;
  color: white;
  box-shadow: 0 2px 8px rgba(236, 24, 39, 0.3);
}

.moto-detail-info__btn--primary:hover {
  background: #c1101c;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(236, 24, 39, 0.4);
}

.moto-detail-info__btn--primary:active {
  transform: translateY(0);
}

.moto-detail-info__btn--secondary {
  background: #f8f9fa;
  color: #495057;
  border: 1px solid #e9ecef;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.moto-detail-info__btn--secondary:hover {
  background: #e9ecef;
  color: #212529;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.moto-detail-info__btn--secondary:active {
  transform: translateY(0);
}

/* Кнопка "В корзине" */
.moto-detail-info__btn--in-cart {
  background: white;
  color: #ec1827;
  border: 2px solid #ec1827;
  box-shadow: 
    0 10px 30px rgba(236, 24, 39, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
  animation: cartAdded 0.6s ease-out;
}

.moto-detail-info__btn--in-cart::before {
  content: '✓';
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  font-weight: bold;
  color: #ec1827;
  opacity: 0;
  display: block;
  /* Отключаем анимацию shine для кнопки "В корзине" */
  height: auto;
  width: auto;
  background: none;
  animation: checkmarkAppear 0.4s ease-out 0.2s forwards;
  z-index: 10;
}

.moto-detail-info__btn--in-cart:hover {
  background: #ec1827;
  color: white;
  transform: translateY(-3px);
  box-shadow: 
    0 15px 40px rgba(236, 24, 39, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.moto-detail-info__btn--in-cart:hover::before {
  color: white;
}

.moto-detail-info__btn--in-cart:active {
  transform: translateY(-1px);
  transition: transform 0.1s ease;
}

/* Анимация добавления в корзину */
@keyframes cartAdded {
  0% {
    transform: scale(1);
    background: linear-gradient(135deg, #ec1827 0%, #c1101c 100%);
    color: white;
  }
  50% {
    transform: scale(1.1);
    background: linear-gradient(135deg, #ec1827 0%, #c1101c 100%);
    color: white;
  }
  100% {
    transform: scale(1);
    background: white;
    color: #ec1827;
  }
}

/* Анимация появления галочки */
@keyframes checkmarkAppear {
  0% {
    opacity: 0;
    transform: translateY(-50%) scale(0.5);
  }
  100% {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
}

.moto-detail-info__btn.loading {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
}

.moto-detail-info__btn.loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  right: 15px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ===== ТАБЫ ===== */
.moto-detail-tabs {
  margin-top: 40px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  overflow: hidden;
  border: 1px solid #e9ecef;
  animation: slideInUp 0.6s ease-out;
}

/* Навигация табов для десктопа */
.moto-detail-tabs__header {
  display: block;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-bottom: 1px solid #e9ecef;
}

.moto-detail-tabs__nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.moto-detail-tabs__tab {
  padding: 20px 15px;
  border: none;
  background: transparent;
  color: #6c757d;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: "Open Sans", sans-serif;
  position: relative;
  border-right: 1px solid #e9ecef;
}

.moto-detail-tabs__tab:last-child {
  border-right: none;
}

.moto-detail-tabs__tab:hover {
  background: linear-gradient(135deg, #f0f0f0 0%, #f8f9fa 100%);
  color: #495057;
  transform: translateY(-2px);
}

.moto-detail-tabs__tab--active {
  background: white;
  color: #ec1827;
  box-shadow: 0 -3px 0 #ec1827 inset;
  transform: translateY(-1px);
}

.moto-detail-tabs__tab--active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ec1827 0%, #d41426 100%);
}

.moto-detail-tabs__tab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #f8f9fa;
  transition: all 0.3s ease;
}


.moto-detail-tabs__tab--active .moto-detail-tabs__tab-icon {
  background: linear-gradient(135deg, #ec1827 0%, #d41426 100%);
  color: white;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(236, 24, 39, 0.3);
}

.moto-detail-tabs__tab-icon i {
  font-size: 18px;
}

.moto-detail-tabs__tab-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.moto-detail-tabs__tab-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 2px;
}

.moto-detail-tabs__tab-subtitle {
  font-size: 11px;
  font-weight: 400;
  opacity: 0.7;
  line-height: 1.2;
}

.moto-detail-tabs__tab--active .moto-detail-tabs__tab-subtitle {
  opacity: 0.8;
}

/* Кнопки для мобильных устройств */
.moto-detail-tabs__mobile-buttons {
  display: none;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.moto-detail-tabs__mobile-btn {
  padding: 16px 12px;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  background: white;
  color: #6c757d;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: "Open Sans", sans-serif;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.moto-detail-tabs__mobile-btn:hover {
  background: #ec1827;
  color: white;
  border-color: #ec1827;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(236, 24, 39, 0.3);
}

.moto-detail-tabs__mobile-btn i {
  font-size: 16px;
}

.moto-detail-tabs__content {
  padding: 30px;
}

.moto-detail-tabs__panel {
  display: none;
}

.moto-detail-tabs__panel--active {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Описание */
.moto-detail-tabs__description {
  color: #495057;
  line-height: 1.7;
  font-size: 1rem;
}

/* Новые стили для составного описания */
.moto-description {
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-family: "Open Sans", sans-serif;
}

.moto-description__seo {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 20px;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.moto-description__seo::before {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 18px;
  opacity: 0.7;
}

.moto-description__seo-text {
  color: #2c3e50;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.6;
  margin: 0;
  text-align: justify;
  hyphens: auto;
}

.moto-description__divider {
  display: flex;
  align-items: center;
  margin: 8px 0;
  opacity: 0.6;
}

.moto-description__divider::before,
.moto-description__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, #e9ecef, transparent);
}

.moto-description__divider-icon {
  margin: 0 20px;
  color: #ec1827;
  font-size: 16px;
  opacity: 0.8;
}

.moto-description__full {
  background: white;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.moto-description__full-content {
  color: #495057;
  font-size: 1rem;
  line-height: 1.7;
  text-align: justify;
  hyphens: auto;
  word-wrap: break-word;
  overflow-wrap: break-word;
  /* Отладочные стили - можно удалить после проверки */
  /* border: 1px dashed #ccc; */
  /* background: rgba(255, 255, 0, 0.05); */
}

/* Стили для HTML контента из CKEditor */
.moto-description__full-content h1,
.moto-description__full-content h2,
.moto-description__full-content h3,
.moto-description__full-content h4,
.moto-description__full-content h5,
.moto-description__full-content h6 {
  color: #2c3e50;
  font-family: "Open Sans", sans-serif;
  font-weight: 600;
  margin: 20px 0 12px 0;
  line-height: 1.3;
}

.moto-description__full-content h1 { font-size: 1.5rem; }
.moto-description__full-content h2 { font-size: 1.3rem; }
.moto-description__full-content h3 { font-size: 1.2rem; }
.moto-description__full-content h4 { font-size: 1.1rem; }
.moto-description__full-content h5 { font-size: 1rem; }
.moto-description__full-content h6 { font-size: 0.9rem; }

.moto-description__full-content h1:first-child,
.moto-description__full-content h2:first-child,
.moto-description__full-content h3:first-child,
.moto-description__full-content h4:first-child,
.moto-description__full-content h5:first-child,
.moto-description__full-content h6:first-child {
  margin-top: 0;
}

.moto-description__full-content p {
  margin: 0 0 16px 0;
  text-align: justify;
  hyphens: auto;
}

.moto-description__full-content p:last-child {
  margin-bottom: 0;
}

.moto-description__full-content ul,
.moto-description__full-content ol {
  margin: 16px 0;
  padding-left: 24px;
}

.moto-description__full-content li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.moto-description__full-content em {
  color: #6c757d;
  font-style: italic;
}

.moto-description__full-content a {
  color: #ec1827;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.moto-description__full-content a:hover {
  color: #d41426;
  text-decoration: underline;
}

.moto-description__full-content blockquote {
  margin: 20px 0;
  padding: 16px 20px;
  background: #f8f9fa;
  border-left: 4px solid #ec1827;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #495057;
}

/* Дополнительные стили для CKEditor контента */
.moto-description__full-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  border: 1px solid #e9ecef;
}

.moto-description__full-content table th,
.moto-description__full-content table td {
  padding: 8px 12px;
  border: 1px solid #e9ecef;
  text-align: left;
}

.moto-description__full-content table th {
  background: #f8f9fa;
  font-weight: 600;
  color: #495057;
}

.moto-description__full-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 16px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.moto-description__full-content code {
  background: #f8f9fa;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  color: #e83e8c;
}

.moto-description__full-content pre {
  background: #f8f9fa;
  padding: 16px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 16px 0;
  border: 1px solid #e9ecef;
}

.moto-description__full-content pre code {
  background: none;
  padding: 0;
  color: #495057;
}

/* Стили для цветного текста из CKEditor */


.moto-description__full-content [style*="background-color"] {
  /* Сохраняем фоновые цвета, установленные в CKEditor */
  padding: 2px 4px;
  border-radius: 3px;
}

/* Стили для выравнивания текста из CKEditor */
.moto-description__full-content [style*="text-align: center"] {
  text-align: center !important;
}

.moto-description__full-content [style*="text-align: right"] {
  text-align: right !important;
}

.moto-description__full-content [style*="text-align: left"] {
  text-align: left !important;
}

.moto-description__full-content [style*="text-align: justify"] {
  text-align: justify !important;
}

/* Стили для размеров шрифтов из CKEditor */


/* Обеспечиваем корректное отображение всех inline стилей */
.moto-description__full-content * {
  max-width: 100%;
}



/* Улучшенные стили для списков */
.moto-description__full-content ul li {
  position: relative;
  padding-left: 4px;
}

.moto-description__full-content ol li {
  padding-left: 4px;
}

/* Стили для вложенных списков */
.moto-description__full-content ul ul,
.moto-description__full-content ol ol,
.moto-description__full-content ul ol,
.moto-description__full-content ol ul {
  margin: 8px 0;
  padding-left: 20px;
}

/* Стили для подчеркивания и зачеркивания */
.moto-description__full-content u {
  text-decoration: underline;
}

.moto-description__full-content s,
.moto-description__full-content strike {
  text-decoration: line-through;
}

/* Стили для верхнего и нижнего индекса */
.moto-description__full-content sup {
  vertical-align: super;
  font-size: smaller;
}

.moto-description__full-content sub {
  vertical-align: sub;
  font-size: smaller;
}

/* Адаптивность для описания */
@media (max-width: 768px) {
  .moto-description {
    gap: 20px;
  }
  
  .moto-description__seo {
    padding: 16px;
  }
  
  .moto-description__seo-text {
    font-size: 1rem;
  }
  
  .moto-description__full {
    padding: 20px;
  }
  
  .moto-description__full-content {
    font-size: 0.95rem;
  }
  
  .moto-description__full-content h1 { font-size: 1.3rem; }
  .moto-description__full-content h2 { font-size: 1.2rem; }
  .moto-description__full-content h3 { font-size: 1.1rem; }
}

@media (max-width: 480px) {
  .moto-description {
    gap: 16px;
  }
  
  .moto-description__seo {
    padding: 14px;
  }
  
  .moto-description__seo-text {
    font-size: 0.95rem;
  }
  
  .moto-description__full {
    padding: 16px;
  }
  
  .moto-description__full-content {
    font-size: 0.9rem;
  }
}

/* Характеристики */
.moto-detail-tabs__specs {
  display: grid;
  gap: 16px;
  max-width: 600px;
}

.moto-detail-tabs__spec-item {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid #e9ecef;
}

.moto-detail-tabs__spec-item:last-child {
  border-bottom: none;
}

.moto-detail-tabs__spec-label {
  font-weight: 600;
  color: #495057;
  font-size: 0.95rem;
}

.moto-detail-tabs__spec-value {
  color: #333;
  font-weight: 500;
  margin: 0;
}

.moto-detail-tabs__spec-available {
  color: #28a745;
  font-weight: 600;
}

.moto-detail-tabs__spec-unavailable {
  color: #dc3545;
  font-weight: 600;
}

/* Доставка */
.moto-detail-tabs__delivery h3 {
  color: #333;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 20px 0 10px 0;
  font-family: "Open Sans", sans-serif;
}

.moto-detail-tabs__delivery h3:first-child {
  margin-top: 0;
}

.moto-detail-tabs__delivery p {
  color: #495057;
  line-height: 1.6;
  margin-bottom: 15px;
}

.moto-detail-tabs__delivery ul {
  color: #495057;
  line-height: 1.6;
  padding-left: 20px;
}

.moto-detail-tabs__delivery li {
  margin-bottom: 8px;
}

/* Расширенные стили для блока "Доставка и оплата" */
.moto-delivery-intro {
  margin-bottom: 16px;
}

.moto-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.moto-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 999px;
  color: #495057;
  font-weight: 600;
  font-size: 12px;
}

/* .moto-badge--accent удалён — используем единый нейтральный стиль бейджей */

.moto-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.moto-delivery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
  grid-auto-rows: 1fr;
}

.moto-delivery-col {
  display: grid;
  gap: 16px;
}
.moto-detail-tabs__delivery-section {
  background: #ffffff;
  border: 1px solid #f0f0f0;
  border-radius: 10px;
  padding: 16px 18px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  margin: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.moto-detail-tabs__delivery-section:last-child {
  margin-bottom: 0;
}

.moto-detail-tabs__delivery-list {
  margin: 8px 0 8px 20px;
  padding-left: 0;
}

.moto-detail-tabs__delivery-note { margin-top: 8px; }

.moto-detail-tabs__delivery-steps {
  margin: 12px 0 0 0;
  padding-left: 20px;
}

.moto-detail-tabs__delivery-steps li {
  margin-bottom: 8px;
}

/* Чеклист с чек-марками */
.moto-checklist {
  list-style: none;
  padding-left: 0;
  margin: 10px 0 0 0;
}

.moto-checklist li {
  position: relative;
  padding-left: 24px;
  margin: 6px 0;
  line-height: 1.6;
}

.moto-checklist li::before {
  content: '\2714';
  position: absolute;
  left: 0;
  top: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #e9ecef;
  color: #495057;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  line-height: 16px;
}

.moto-checklist--neutral li::before {
  background: #e9ecef;
  color: #495057;
}

/* Нота (заметка/предупреждение) */
.moto-note {
  border-radius: 10px;
  padding: 12px 14px;
  border: 1px solid #e9ecef;
  background: #f8f9fa;
  color: #495057;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.moto-note--warning {
  background: #fff5f5;
  border-color: #ffe3e3;
  color: #b71c1c;
}

/* Таймлайн шагов оформления */
.moto-timeline {
  counter-reset: step-counter;
  list-style: none;
  padding-left: 0;
  margin: 8px 0 0 0;
}

.moto-timeline li {
  position: relative;
  padding-left: 36px;
  margin: 10px 0;
  min-height: 24px;
  line-height: 1.6;
}

.moto-timeline li::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f1f3f5;
  color: #495057;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}

/* Минималистичная типографика для блока доставки */
.moto-detail-tabs__delivery p,
.moto-detail-tabs__delivery li,
.moto-detail-tabs__delivery .moto-note {
  font-size: 0.95rem;
  color: #374151;
}

.moto-detail-tabs__delivery p {
  margin: 0 0 10px 0;
  line-height: 1.65;
}

/* Адаптивность для блока доставки */
@media (max-width: 900px) {
  .moto-delivery-grid {
    grid-template-columns: 1fr;
  }
}




/* ===== УВЕДОМЛЕНИЯ ===== */
/* Контейнер для уведомлений */
.moto-notifications-container {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

/* Основные стили уведомления */
.moto-notification {
  position: relative;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 16px 20px;
  max-width: 380px;
  min-width: 280px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.12),
    0 4px 16px rgba(0, 0, 0, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transform: translateX(-100%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto;
  overflow: hidden;
  font-family: "Open Sans", sans-serif;
}

/* Анимация появления */
.moto-notification.show {
  transform: translateX(0);
  opacity: 1;
}

/* Анимация исчезновения */
.moto-notification.hide {
  transform: translateX(-100%);
  opacity: 0;
}

/* Иконка уведомления */
.moto-notification__icon {
  position: absolute;
  top: 16px;
  left: 20px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: white;
  font-weight: bold;
}

/* Контент уведомления */
.moto-notification__content {
  margin-left: 40px;
  padding-right: 30px;
}

/* Заголовок уведомления */
.moto-notification__title {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 4px 0;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Текст уведомления */
.moto-notification__message {
  font-size: 13px;
  font-weight: 500;
  margin: 0;
  line-height: 1.4;
  color: #666;
}

/* Кнопка закрытия */
.moto-notification__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 20px;
  height: 20px;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #999;
  transition: all 0.2s ease;
}

.moto-notification__close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #333;
}

/* Прогресс-бар */
.moto-notification__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.moto-notification__progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #ec1827, #ff6b6b);
  transition: width 0.1s linear;
}

/* Цвета для разных типов уведомлений */
.moto-notification--success .moto-notification__icon {
  background: linear-gradient(135deg, #28a745, #20c997);
}

.moto-notification--error .moto-notification__icon {
  background: linear-gradient(135deg, #dc3545, #e74c3c);
}

.moto-notification--info .moto-notification__icon {
  background: linear-gradient(135deg, #17a2b8, #3498db);
}

.moto-notification--loading .moto-notification__icon {
  background: linear-gradient(135deg, #6c757d, #495057);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
  100% {
    opacity: 1;
  }
}

.moto-notification__progress-bar {
  height: 100%;
  background: #ec1827;
  width: 100%;
  transition: width 0.1s linear;
}

/* ===== АДАПТИВНОСТЬ ===== */

/* Скрываем .moto-detail-gallery__main на экранах меньше 1200px */
@media (max-width: 1199px) {
  .nav__mob-button {
    display: none;
  }
}

/* Планшеты */
@media (max-width: 1024px) {
  .moto-detail-page {
    padding: 15px;
  }
  
  .moto-detail-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 30px;
    position: relative;
  }
  
  .moto-detail-info__header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 25px;
    z-index: 10;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 0;
  }
  
  .moto-detail-info {
    background: transparent;
    border: none;
    padding: 0;
    min-height: auto;
  }
  
  .moto-detail-gallery {
    margin-top: 100px;
    flex-direction: column;
    height: auto;
    min-height: auto;
    background: transparent;
    border: none;
    padding: 0;
  }
  
  .moto-detail-gallery__thumbs {
    display: none;
  }
  
  .moto-detail-gallery__hero {
    aspect-ratio: 16/9;
    height: auto;
    max-height: 400px;
  }
  
  .moto-detail-gallery__nav {
    display: none;
  }
  
  .moto-detail-gallery__indicator {
    display: flex;
  }
  
  .moto-detail-info__title {
    font-size: 1.8rem;
    margin: 0;
  }
  
  .moto-detail-info__current-price {
    font-size: 1.4rem;
  }
  
  .moto-detail-tabs__content {
    padding: 25px;
  }
}

/* Средние планшеты */
@media (max-width: 768px) {
  .moto-detail-page {
    padding: 10px;
  }
  
  .moto-detail-container {
    border-radius: 15px;
  }
  
  .moto-detail-breadcrumbs {
    padding: 15px 20px;
    font-size: 13px;
  }
  
  .moto-detail-grid {
    padding: 20px;
    gap: 25px;
    grid-template-columns: 1fr;
    position: relative;
  }
  
  .moto-detail-info__header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px;
    z-index: 10;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 0;
  }
  
  .moto-detail-info {
    background: transparent;
    border: none;
    padding: 0;
    min-height: auto;
  }
  
  .moto-detail-gallery {
    margin-top: 90px;
    height: auto;
    min-height: auto;
    background: transparent;
    border: none;
    padding: 0;
  }
  
  .moto-detail-info__title {
    font-size: 1.6rem;
    margin: 0;
  }
  
  .moto-detail-gallery__hero {
    aspect-ratio: 16/9;
    height: auto;
    max-height: 350px;
  }
  
  .moto-detail-info__colors-list {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
  }
  
  .moto-detail-info__color-item {
    padding: 8px 6px;
    min-height: 50px;
  }
  
  .moto-detail-info__current-price {
    font-size: 1.6rem;
  }
  
  .moto-detail-info__buttons {
    grid-template-columns: 1fr;
  }
  
  .moto-detail-tabs__header {
    flex-wrap: wrap;
  }
  
  .moto-detail-tabs__tab {
    min-width: 120px;
    padding: 12px 15px;
    font-size: 0.9rem;
  }
  
  .moto-detail-tabs__content {
    padding: 20px;
  }
  
  .moto-detail-tabs__spec-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* Мобильные устройства */
@media (max-width: 480px) {
  .moto-detail-page {
    padding: 5px;
  }
  
  .moto-detail-container {
    border-radius: 10px;
  }
  
  .moto-detail-breadcrumbs {
    padding: 12px 15px;
    font-size: 12px;
    gap: 6px;
  }
  
  .moto-detail-grid {
    padding: 15px;
    gap: 20px;
    grid-template-columns: 1fr;
    position: relative;
  }
  
  .moto-detail-info__header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px;
    z-index: 10;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 0;
  }
  
  .moto-detail-info {
    background: transparent;
    border: none;
    padding: 0;
    min-height: auto;
  }
  
  .moto-detail-gallery {
    margin-top: 80px;
    height: auto;
    min-height: auto;
    background: transparent;
    border: none;
    padding: 0;
  }
  
  .moto-detail-info__title {
    font-size: 1.3rem;
    margin: 0;
  }
  
  .moto-detail-gallery__hero {
    aspect-ratio: 16/9;
    height: auto;
    max-height: 300px;
  }
  
  .moto-detail-info__current-price {
    font-size: 1.4rem;
  }
  
  .moto-detail-info__pricing {
    padding: 15px;
  }
  
  .moto-detail-info__colors-list {
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 8px;
  }
  
  .moto-detail-info__color-item {
    padding: 8px 4px;
    min-height: 40px;
  }
  
  .moto-detail-info__color-name {
    font-size: 0.65rem;
  }
  
  .moto-detail-info__color-price {
    font-size: 0.6rem;
  }
  
  .moto-detail-info__btn {
    padding: 12px 16px;
    font-size: 0.9rem;
  }
  
  .moto-detail-tabs__tab {
    min-width: 100px;
    padding: 10px 12px;
    font-size: 0.85rem;
  }
  
  .moto-detail-tabs__content {
    padding: 15px;
  }
  
  .moto-detail-tabs__reviews-header {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }
}

/* Очень маленькие экраны */
@media (max-width: 360px) {
  .moto-detail-info {
    background: transparent;
    border: none;
    padding: 0;
    min-height: auto;
  }
  
  .moto-detail-gallery {
    background: transparent;
    border: none;
    padding: 0;
    min-height: auto;
  }
  
  .moto-detail-grid {
    padding: 10px;
  }
  
  .moto-detail-info__title {
    font-size: 1.3rem;
  }
  
  .moto-detail-info__current-price {
    font-size: 1.3rem;
  }
  
  .moto-detail-info__btn {
    padding: 10px 12px;
    font-size: 0.85rem;
  }
  
  .moto-detail-tabs__tab {
    min-width: 80px;
    padding: 8px 10px;
    font-size: 0.8rem;
  }
  
  .moto-detail-tabs__content {
    padding: 12px;
  }
}

@media (max-width: 768px) {
    .moto-detail-page {
        margin-top: 200px;
    }
}

/* ===== ТЕХНИЧЕСКИЕ ХАРАКТЕРИСТИКИ ===== */
.moto-specifications {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border: 1px solid #f0f0f0;
  margin-top: 20px;
  overflow: hidden;
  animation: slideInUp 0.6s ease-out;
}

.moto-specifications__header {
  padding: 20px 25px 15px;
  border-bottom: 1px solid #e9ecef;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.moto-specifications__title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #333;
  font-family: "Open Sans", sans-serif;
}

.moto-specifications__content {
  padding: 0;
}

.moto-specifications__group {
  border-bottom: 1px solid #f0f0f0;
}

.moto-specifications__group:last-child {
  border-bottom: none;
}

.moto-specifications__group-title {
  margin: 0;
  padding: 15px 25px 10px;
  font-size: 16px;
  font-weight: 600;
  color: #ec1827;
  background: #fafafa;
  border-bottom: 1px solid #f0f0f0;
  font-family: "Open Sans", sans-serif;
}

.moto-specifications__list {
  padding: 0;
}

.moto-specification-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 25px;
  border-bottom: 1px solid #f8f9fa;
  transition: all 0.3s ease;
  font-family: "Open Sans", sans-serif;
}

.moto-specification-item:last-child {
  border-bottom: none;
}

.moto-specification-item:hover {
  background: #f8f9fa;
}



.moto-specification-item__name {
  font-size: 14px;
  color: #555;
  font-weight: 500;
  flex: 1;
}

.moto-specification-item__value {
  font-size: 14px;
  color: #333;
  font-weight: 600;
  text-align: right;
  margin-left: 20px;
}



/* ===== АДАПТИВНОСТЬ ДЛЯ ХАРАКТЕРИСТИК ===== */
@media (max-width: 768px) {
  .moto-specifications {
    margin: 15px 0;
    border-radius: 8px;
  }
  
  .moto-specifications__header {
    padding: 15px 20px 12px;
  }
  
  .moto-specifications__title {
    font-size: 18px;
  }
  
  .moto-specifications__group-title {
    padding: 12px 20px 8px;
    font-size: 15px;
  }
  
  .moto-specification-item {
    padding: 10px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  
  .moto-specification-item__name {
    font-size: 13px;
  }
  
  .moto-specification-item__value {
    font-size: 14px;
    margin-left: 0;
    text-align: left;
    font-weight: 700;
    color: #ec1827;
  }
}

@media (max-width: 480px) {
  .moto-specification-item {
    padding: 8px 15px;
  }
  
  .moto-specifications__header {
    padding: 12px 15px 10px;
  }
  
  .moto-specifications__group-title {
    padding: 10px 15px 6px;
    font-size: 14px;
  }
}

/* ===== МОДАЛЬНЫЕ ОКНА ===== */
.moto-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.moto-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.moto-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(0.9);
}

.moto-modal.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.moto-modal__content {
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  max-width: 500px;
  width: 100%;
  max-height: 80vh;
  overflow: hidden;
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.moto-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-bottom: 1px solid #e9ecef;
}

.moto-modal__title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
  font-family: "Open Sans", sans-serif;
  display: flex;
  align-items: center;
  gap: 10px;
}

.moto-modal__title i {
  color: #ec1827;
  font-size: 20px;
}

.moto-modal__close {
  background: none;
  border: none;
  color: #6c757d;
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}

.moto-modal__close:hover {
  background: #f8f9fa;
  color: #ec1827;
  transform: scale(1.1);
}

.moto-modal__body {
  padding: 24px;
  max-height: 60vh;
  overflow-y: auto;
}

.moto-modal__body::-webkit-scrollbar {
  width: 6px;
}

.moto-modal__body::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.moto-modal__body::-webkit-scrollbar-thumb {
  background: #ec1827;
  border-radius: 3px;
}

.moto-modal__body::-webkit-scrollbar-thumb:hover {
  background: #d41426;
}

/* Стили для контента модальных окон */
.moto-modal__description {
  color: #495057;
  line-height: 1.6;
  font-size: 15px;
}

/* Применяем те же стили CKEditor для модальных окон */
.moto-modal .moto-description__full-content h1,
.moto-modal .moto-description__full-content h2,
.moto-modal .moto-description__full-content h3,
.moto-modal .moto-description__full-content h4,
.moto-modal .moto-description__full-content h5,
.moto-modal .moto-description__full-content h6 {
  color: #2c3e50;
  font-family: "Open Sans", sans-serif;
  font-weight: 600;
  margin: 16px 0 10px 0;
  line-height: 1.3;
}

.moto-modal .moto-description__full-content h1 { font-size: 1.3rem; }
.moto-modal .moto-description__full-content h2 { font-size: 1.2rem; }
.moto-modal .moto-description__full-content h3 { font-size: 1.1rem; }
.moto-modal .moto-description__full-content h4 { font-size: 1rem; }
.moto-modal .moto-description__full-content h5 { font-size: 0.9rem; }
.moto-modal .moto-description__full-content h6 { font-size: 0.85rem; }

.moto-modal .moto-description__full-content p {
  margin: 0 0 12px 0;
  text-align: justify;
  hyphens: auto;
}

.moto-modal .moto-description__full-content ul,
.moto-modal .moto-description__full-content ol {
  margin: 12px 0;
  padding-left: 20px;
}

.moto-modal .moto-description__full-content li {
  margin-bottom: 6px;
  line-height: 1.5;
}

.moto-modal .moto-description__full-content strong {
  color: #2c3e50;
  font-weight: 600;
}

.moto-modal .moto-description__full-content em {
  color: #6c757d;
  font-style: italic;
}

.moto-modal .moto-description__full-content a {
  color: #ec1827;
  text-decoration: none;
  font-weight: 500;
}

.moto-modal .moto-description__full-content a:hover {
  color: #d41426;
  text-decoration: underline;
}

.moto-modal .moto-description__full-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 12px 0;
}

.moto-modal .moto-description__full-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  border: 1px solid #e9ecef;
  font-size: 13px;
}

.moto-modal .moto-description__full-content table th,
.moto-modal .moto-description__full-content table td {
  padding: 6px 10px;
  border: 1px solid #e9ecef;
  text-align: left;
}

.moto-modal .moto-description__full-content table th {
  background: #f8f9fa;
  font-weight: 600;
}

.moto-modal__specs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.moto-modal__spec-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 3px solid #e9ecef;
  transition: all 0.3s ease;
}

.moto-modal__spec-item:hover {
  border-left-color: #ec1827;
  background: #f0f0f0;
}

.moto-modal__spec-label {
  font-weight: 500;
  color: #495057;
  font-size: 14px;
}

.moto-modal__spec-value {
  font-weight: 600;
  color: #333;
  font-size: 14px;
  text-align: right;
}

.moto-modal__spec-available {
  color: #28a745;
  font-weight: 600;
}

.moto-modal__spec-unavailable {
  color: #dc3545;
  font-weight: 600;
}

.moto-modal__section {
  margin-bottom: 24px;
}

.moto-modal__section:last-child {
  margin-bottom: 0;
}

.moto-modal__section h4 {
  color: #ec1827;
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 12px 0;
  font-family: "Open Sans", sans-serif;
}

.moto-modal__section p {
  color: #495057;
  line-height: 1.6;
  margin: 0 0 12px 0;
  font-size: 14px;
}

.moto-modal__section ul {
  margin: 0;
  padding-left: 20px;
  color: #495057;
}

.moto-modal__section li {
  margin-bottom: 6px;
  font-size: 14px;
  line-height: 1.5;
}



/* ===== АДАПТИВНОСТЬ ДЛЯ ТАБОВ И МОДАЛОК ===== */
@media (max-width: 768px) {
  /* Скрываем десктопные табы и показываем мобильные кнопки */
  .moto-detail-tabs__header {
    display: none;
  }
  
  .moto-detail-tabs__mobile-buttons {
    display: grid;
  }
  
  .moto-detail-tabs__content {
    display: none;
  }
  
  /* Улучшаем модальные окна для мобильных */
  .moto-modal {
    padding: 10px;
  }
  
  .moto-modal__content {
    max-height: 90vh;
    border-radius: 12px;
  }
  
  .moto-modal__header {
    padding: 16px 20px;
  }
  
  .moto-modal__title {
    font-size: 16px;
  }
  
  .moto-modal__body {
    padding: 20px;
    max-height: 70vh;
  }
  
  .moto-modal__spec-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 14px 16px;
  }
  
  .moto-modal__spec-value {
    text-align: left;
    font-size: 15px;
    color: #ec1827;
    font-weight: 700;
  }
}

@media (max-width: 480px) {
  .moto-detail-tabs__mobile-buttons {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 15px;
  }
  
  .moto-detail-tabs__mobile-btn {
    padding: 14px 12px;
    font-size: 12px;
  }
  
  .moto-modal__header {
    padding: 14px 16px;
  }
  
  .moto-modal__body {
    padding: 16px;
  }
}

/* Улучшенные стили для характеристик в табах */
.moto-detail-tabs__panel .moto-specifications {
  background: transparent;
  border: none;
  box-shadow: none;
  margin: 0;
  border-radius: 0;
}

.moto-detail-tabs__panel .moto-specifications__header {
  display: none;
}

.moto-detail-tabs__panel .moto-specifications__content {
  padding: 0;
}

.moto-detail-tabs__panel .moto-specifications__group {
  margin-bottom: 24px;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  overflow: hidden;
  background: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.moto-detail-tabs__panel .moto-specifications__group:last-child {
  margin-bottom: 0;
}

.moto-detail-tabs__panel .moto-specifications__group-title {
  background: linear-gradient(135deg, #ec1827 0%, #d41426 100%);
  color: white;
  padding: 12px 20px;
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  border: none;
}

.moto-detail-tabs__panel .moto-specification-item {
  padding: 14px 20px;
  border-bottom: 1px solid #f0f0f0;
  background: white;
}

.moto-detail-tabs__panel .moto-specification-item:last-child {
  border-bottom: none;
}

.moto-detail-tabs__panel .moto-specification-item:hover {
  background: #f8f9fa;
}

.moto-detail-tabs__panel .moto-specification-item__name {
  font-size: 14px;
  color: #495057;
  font-weight: 500;
}

.moto-detail-tabs__panel .moto-specification-item__value {
  font-size: 14px;
  color: #ec1827;
  font-weight: 600;
}