.breadcrumbs {
  background: #222;
  padding: 0;
  padding-top: 100px;
  border-bottom: 1px solid #333;
}

.breadcrumbs nav {
  background-color: transparent;
  padding: 20px 0 20px 0;
}

.breadcrumbs nav ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 15px;
  font-weight: 500;
  align-items: center;
}

.breadcrumbs nav ol li {
  color: #9b9b9b;
}

.breadcrumbs nav ol li:last-child {
  color: var(--color-primary);
}

.breadcrumbs nav ol a {
  color: var(--color-primary);
  transition: 0.3s;
  text-decoration: none;
}

.breadcrumbs nav ol a:hover {
  color: var(--color-orrange);
  text-decoration: none;
}

.breadcrumbs nav ol li+li {
  padding-left: 12px;
}

.breadcrumbs nav ol li+li::before {
  display: inline-block;
  padding-right: 12px;
  color: #666;
  content: "/";
  font-weight: 400;
}

.project-title-section {
  background: #222;
  padding: 30px 0;
  position: relative;
  z-index: 1;
}

.project-header-info {
  text-align: left;
}

.project-main-title {
  font-size: 36px;
  font-weight: 700;
  font-style: italic;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.project-main-subtitle {
  font-size: 18px;
  color: #9b9b9b;
  margin: 0;
}

#project-details {
  padding: 40px 0 80px 0;
  background: #222;
}

#project-details .row {
  align-items: flex-start;
}

.project-carousel-container {
  position: relative;
}

.project-carousel-container.is-mirrored .project-images-swiper img,
.project-carousel-container.is-mirrored .project-thumbs-swiper img,
body.project-mirrored .project-description img,
body.project-mirrored #other-projects img {
  transform: scaleX(-1);
}

/* .category-card img задаёт transform: none !important, поэтому перебиваем его */
body.project-mirrored #other-projects .category-card img,
body.project-mirrored #other-projects .category-card:hover img {
  transform: scaleX(-1) !important;
}

body.project-mirrored .project-description img,
body.project-mirrored #other-projects img {
  transition: transform 0.25s ease;
}

.project-images-swiper {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.project-images-swiper img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.25s ease;
}

.project-thumbs-swiper {
  margin-top: 12px;
}

.thumb-slide {
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  opacity: 0.6;
  transition: opacity 0.3s;
  border: none;
}

.thumb-slide:hover,
.thumb-slide.swiper-slide-thumb-active {
  opacity: 1;
}

.thumb-slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.project-description {
  margin-top: 30px;
}

/* Planning Section */
.project-planning {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #444;
}

.project-planning h4 {
  color: var(--color-primary);
  font-size: 20px;
  margin-bottom: 20px;
}

.planning-image-wrapper {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.planning-image-wrapper:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.planning-image {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.planning-image-wrapper:hover .planning-image {
  opacity: 0.9;
}

.project-description h3 {
  color: var(--color-primary);
  font-size: 24px;
  margin-bottom: 20px;
}

.project-description h4 {
  color: var(--color-primary);
  font-size: 20px;
  margin-top: 25px;
  margin-bottom: 15px;
}

.project-description p {
  color: #ccc;
  line-height: 1.8;
  margin-bottom: 15px;
}

.project-description ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.project-description ul li {
  color: #ccc;
  padding: 8px 0;
  padding-left: 25px;
  position: relative;
}

.project-description ul li i {
  position: absolute;
  left: 0;
  color: var(--color-orrange);
  font-size: 16px;
}

.project-parameters {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
}

.project-parameters .cta-buttons {
  order: 1;
  margin-top: 0 !important;
}

.project-parameters .parameters-card {
  order: 2;
  margin-top: 25px;
  margin-bottom: 0;
}

.project-parameters .project-features {
  order: 3;
  margin-top: 0;
}

.parameters-card {
  background: #2a2a2a;
  border-radius: 15px;
  padding: 25px;
  border: 1px solid #444;
}

.parameters-card h4 {
  color: var(--color-primary);
  font-size: 22px;
  margin-bottom: 25px;
  text-align: center;
}

.parameters-list {
  margin-bottom: 20px;
}

.parameter-item {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  row-gap: 6px;
  column-gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid #444;
}

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

.parameter-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ccc;
  font-size: 15px;
  flex-shrink: 0;
}

.parameter-label i {
  color: var(--color-orrange);
  font-size: 18px;
}

.parameter-value {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.4;
  text-align: left;
}

.cta-buttons {
  margin-top: 25px;
}

.project-actions-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.project-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #555;
  border-radius: 8px;
  background: #2a2a2a;
  color: var(--color-primary);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s;
}

.project-action-btn:hover {
  border-color: var(--color-orrange);
  color: #fff;
  transform: translateY(-1px);
}

.project-action-btn.is-active {
  border-color: var(--color-orrange);
  color: var(--color-orrange);
}

.project-features {
  margin-top: 25px;
  padding-top: 25px;
  border-top: 1px solid #444;
}

.project-features h4 {
  color: var(--color-primary);
  font-size: 18px;
  margin-bottom: 15px;
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.features-list li {
  color: #ccc;
  padding: 10px 0;
  padding-left: 30px;
  position: relative;
  font-size: 14px;
}

.features-list li i {
  position: absolute;
  left: 0;
  color: var(--color-orrange);
  font-size: 18px;
}

.other-projects {
  background: #1a1a1a;
  padding: 60px 0;
}

.category-card {
  display: block;
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.3s;
}

.category-card:hover {
  transform: translateY(-5px);
  text-decoration: none;
}

.category-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

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

.category-card:hover .category-image img {
  transform: scale(1.1);
}

.category-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.category-title {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  color: var(--color-primary);
  font-size: 22px;
  font-weight: 600;
  z-index: 2;
}

@media (max-width: 768px) {
  .project-main-title {
    font-size: 28px;
  }

  .project-main-subtitle {
    font-size: 16px;
  }

  .project-parameters {
    position: static;
    margin-top: 40px;
  }

  .thumb-slide img {
    height: 60px;
  }

  .project-actions-grid {
    grid-template-columns: 1fr;
  }
}

/* Карточки «Другие проекты»: при наведении двигается вся карточка, а не картинка внутри неё */
.category-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45); }
.category-card .category-image img,
.category-card:hover .category-image img { transform: none; transition: none; }

/* Картинки в карточках «Другие проекты» не анимируются */
.category-card img, .category-card:hover img { transform: none !important; transition: none !important; }

/* Печать страницы проекта: без шапки, футера, кнопок, миниатюр и боковых отступов */
@page {
  margin: 10mm;
}

@media print {
  #preloader,
  #topbar,
  .site-topbar,
  .topbar__social,
  .header-social__icon,
  .footer-social-icon,
  #header,
  #footer,
  .scroll-top,
  .breadcrumbs,
  .modal,
  .modal-backdrop,
  .cta-buttons,
  .project-actions-grid,
  .project-thumbs-swiper,
  .project-images-swiper .swiper-button-next,
  .project-images-swiper .swiper-button-prev,
  .project-images-swiper .swiper-pagination,
  #other-projects,
  #project-gallery {
    display: none !important;
  }

  html,
  body,
  #project-details,
  .project-title-section {
    background: #fff !important;
    color: #000 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body * {
    color: #000 !important;
    text-shadow: none !important;
    box-shadow: none !important;
  }

  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .container {
    width: 100% !important;
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  #project-details .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  #project-details .row > * {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* В карусели печатается только выбранное (активное) изображение */
  .project-images-swiper {
    border-radius: 0 !important;
    overflow: visible !important;
  }

  .project-images-swiper .swiper-wrapper {
    display: block !important;
    transform: none !important;
    width: 100% !important;
    height: auto !important;
  }

  .project-images-swiper .swiper-slide {
    display: none !important;
    width: 100% !important;
  }

  .project-images-swiper .swiper-slide-active {
    display: block !important;
  }

  .project-images-swiper img {
    max-height: 150mm;
    width: auto;
    max-width: 100%;
    margin: 0 auto;
  }

  .project-description,
  .parameters-card,
  .project-features {
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    margin-top: 10mm !important;
  }

  .parameters-card,
  .project-features {
    break-inside: avoid;
  }

  /* Текст идёт сразу под фото, без переноса на новую страницу */
  .project-description {
    break-before: auto !important;
    page-break-before: auto !important;
    margin-top: 6mm !important;
  }

  .project-carousel-container,
  .project-images-swiper {
    margin-bottom: 0 !important;
    break-after: avoid;
  }

  a {
    text-decoration: none !important;
  }
}
