/* Стили для секции хлебных крошек */
.breadcrumbs-section {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  padding: 20px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  justify-content: center;
  text-align: center;
}

.breadcrumb-link {
  color: #0090ff;
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
  padding: 4px 0;
}

.breadcrumb-link:hover {
  color: #0066cc;
}

.breadcrumb-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: 0;
  left: 0;
  background-color: #0090ff;
  transition: width 0.3s ease;
}

.breadcrumb-link:hover::after {
  width: 100%;
}

.breadcrumb-separator {
  color: #666;
  margin: 0 5px;
}

.breadcrumb-current {
  color: #333;
  font-weight: 500;
}

/* Основная секция работы */
.work-detail-section {
  padding: 60px 0;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.work-header {
  text-align: center;
  margin-bottom: 40px;
}

.work-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 10px;
}

.work-category {
  font-size: 1.1rem;
  color: #0090ff;
  margin-bottom: 5px;
}

.work-date {
  font-size: 0.9rem;
  color: #666;
}

.work-content {
  display: grid;
  grid-template-columns: 75% 25%; /* 60% фото, 40% детали */
  gap: 30px;
  margin-bottom: 60px;
  align-items: start;
}

/* Галерея изображений */
.work-gallery {
    position: relative;
    margin: 0 auto;
    max-width: 100%;
}

.main-image-container {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
  cursor: pointer;
}

.main-image {
  width: 100%;
  height: 600px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.main-image:hover {
  transform: scale(1.02);
}

.zoom-button {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.zoom-button:hover {
  background: #0090ff;
  color: white;
}

.thumbnails-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 auto;
}

.nav-button {
  width: 32px;
  height: 32px;
  background: rgba(0, 144, 255, 0.1);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.nav-button:hover {
  background: #0090ff;
  color: white;
}

.nav-button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 5px 0;
    justify-content: center;
    flex-wrap: nowrap;
}

.thumbnails::-webkit-scrollbar {
  display: none;
}

.thumbnail {
  width: 80px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.thumbnail.active {
  border-color: #0090ff;
}

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

.thumbnail:hover {
  transform: scale(1.05);
}

/* Информация о работе */
.work-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.description-section h2,
.details-section h2,
.video-section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #1a1a1a;
}

.description-content {
  line-height: 1.6;
  color: #4d4d4d;
}

.details-grid {
  display: grid;
  gap: 15px;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.detail-label {
  font-weight: 500;
  color: #666;
}

.detail-value {
  color: #1a1a1a;
}

/* Видео секция */
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Связанные работы */
.related-works-section {
  padding: 60px 0;
  background: #1b1d22;
}

.related-works-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  color: white;
}

.related-works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.related-work-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-work-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.related-work-card a {
  text-decoration: none;
  color: inherit;
}

.related-work-image {
  height: 200px;
  overflow: hidden;
}

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

.related-work-card:hover .related-work-image img {
  transform: scale(1.05);
}

.related-work-info {
  padding: 20px;
}

.related-work-info h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: #1a1a1a;
}

.related-work-info p {
  color: #666;
  font-size: 0.9rem;
}

/* Лайтбокс - альтернативный вариант с улучшенным позиционированием */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 20px;
  box-sizing: border-box;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.lightbox-image-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: calc(100% - 60px);
  max-width: 100vw;
  max-height: 100vh;
}

.lightbox-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 12px;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.lightbox-close:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.1);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.3rem;
  transition: all 0.3s ease;
  z-index: 10001;
  backdrop-filter: blur(10px);
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

/* Индикатор текущего изображения */
.lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  backdrop-filter: blur(10px);
}

/* Адаптивность для лайтбокса */
@media (max-width: 1024px) {
  .lightbox-nav {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
  }
  
  .lightbox-close {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
}

@media (max-width: 768px) {
  .lightbox {
    padding: 15px;
  }
  
  .lightbox-nav {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }
  
  .lightbox-prev {
    left: 10px;
  }
  
  .lightbox-next {
    right: 10px;
  }
  
  .lightbox-close {
    top: 15px;
    right: 15px;
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }
  
  .lightbox-image-container {
    height: calc(100% - 50px);
  }
}

@media (max-width: 480px) {
  .lightbox {
    padding: 10px;
  }
  
  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .lightbox-prev {
    left: 5px;
  }
  
  .lightbox-next {
    right: 5px;
  }
  
  .lightbox-close {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
    padding: 10px;
  }
  
  .lightbox-counter {
    bottom: 15px;
    font-size: 0.8rem;
    padding: 6px 12px;
  }
}

/* Очень маленькие экраны */
@media (max-width: 360px) {
  .lightbox-nav {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }
  
  .lightbox-close {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
}

/* Адаптивность основной страницы */
@media (max-width: 1024px) {
  .work-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .work-title {
    font-size: 2rem;
  }
  
  .main-image {
    height: 300px;
  }
  
  .thumbnail {
    width: 70px;
    height: 50px;
  }
  
  .related-works-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .work-title {
    font-size: 1.5rem;
  }
  
  .main-image {
    height: 250px;
  }
  
  .thumbnail {
    width: 60px;
    height: 45px;
  }
  
  .nav-button {
    width: 28px;
    height: 28px;
  }
}

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

/* Секция описания проекта */
.description-section {
  margin: 60px 0;
  padding: 40px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.description-section h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 25px;
  color: #1a1a1a;
  text-align: center;
}

.description-content {
  line-height: 1.7;
  color: #4d4d4d;
  font-size: 1.1rem;
  text-align: justify;
}

.description-content p {
  margin-bottom: 15px;
}

/* Секция видео на темном фоне */
.video-dark-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: white;
}

.video-dark-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  color: white;
}

.video-dark-section .video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.video-dark-section .video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Стили для секции характеристик проекта */
.project-specs-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.project-specs-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 50px;
  color: #1a1a1a;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.spec-item {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.spec-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.spec-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #0090ff 0%, #0066cc 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  flex-shrink: 0;
}

.spec-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #1a1a1a;
}

.spec-content p {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0090ff;
  margin: 0;
}

/* Адаптивность дополнительных секций */
@media (max-width: 768px) {
  .description-section {
    padding: 30px 20px;
    margin: 40px 0;
  }
  
  .description-section h2 {
    font-size: 1.5rem;
  }
  
  .description-content {
    font-size: 1rem;
  }
  
  .video-dark-section {
    padding: 60px 0;
  }
  
  .video-dark-section h2 {
    font-size: 1.7rem;
  }
  
  .project-specs-section {
    padding: 60px 0;
  }
  
  .project-specs-section h2 {
    font-size: 1.7rem;
    margin-bottom: 40px;
  }
  
  .specs-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .spec-item {
    padding: 20px;
  }
  
  .spec-icon {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
  
  .spec-content h3 {
    font-size: 1rem;
  }
  
  .spec-content p {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .description-section {
    padding: 20px 15px;
    margin: 30px 0;
  }
  
  .description-section h2 {
    font-size: 1.3rem;
  }
  
  .video-dark-section {
    padding: 40px 0;
  }
  
  .video-dark-section h2 {
    font-size: 1.5rem;
  }
  
  .project-specs-section {
    padding: 40px 0;
  }
  
  .project-specs-section h2 {
    font-size: 1.5rem;
    margin-bottom: 30px;
  }
  
  .spec-item {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
}

/* Для мобильных устройств - центрирование миниатюр */
@media (max-width: 768px) {
    .thumbnails {
        justify-content: flex-start;
        max-width: 100%;
    }
    
    .thumbnails-container {
        justify-content: flex-start;
        overflow-x: auto;
        padding: 0 10px;
    }
}