.rovno-portfolio-single {
  padding: 0 !important;
}

.rovno-portfolio-title {
  font-weight: 700;
  font-size: 36px;
  line-height: 36px;
}

.rovno-portfolio-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  margin-bottom: 80px;
}

/* Swiper внутри grid/flex: без min-width/min-height: 0 раздувает страницу (swiper#3599) */
.rovno-portfolio-top>* {
  min-width: 0;
  min-height: 0;
}

.rovno-portfolio-top__gallery {
  position: relative;
  contain: layout;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
}

.rovno-portfolio-gallery-main.swiper,
.rovno-portfolio-gallery-thumbs.swiper {
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
}

.rovno-portfolio-gallery-main .swiper-wrapper,
.rovno-portfolio-gallery-thumbs .swiper-wrapper {
  height: auto !important;
  max-height: none !important;
  align-items: stretch;
  box-sizing: border-box;
}

.rovno-portfolio-gallery-main .swiper-slide,
.rovno-portfolio-gallery-thumbs .swiper-slide {
  height: auto;
  flex-shrink: 0;
}

.rovno-portfolio-gallery-main.swiper-fade .swiper-slide {
  height: auto !important;
}

.rovno-portfolio-gallery-lightbox {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  line-height: 0;
}

.rovno-portfolio-gallery-main .swiper-slide img,
.rovno-portfolio-gallery-thumbs .swiper-slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  box-shadow: none;
}

.rovno-portfolio-gallery-main .swiper-slide {
  aspect-ratio: 16 / 10;
}

.rovno-portfolio-gallery-thumbs {
  margin-top: 5px;
}

.rovno-portfolio-gallery-thumbs .swiper-slide {
  box-sizing: border-box;
  aspect-ratio: 16 / 10;
  cursor: pointer;
  border-radius: 16px;
  border: 2px solid transparent;
}

.rovno-portfolio-gallery-thumbs .swiper-slide-thumb-active {
  border-color: #003c8d;
}

.rovno-portfolio-thumbs-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: transparent;
  color: #fff;
  border: none;
  width: 15px;
  height: 15px;
  font-size: 16px;
  cursor: pointer;
  padding: 0;
  z-index: 3;
}

.rovno-portfolio-thumbs-nav:hover,
.rovno-portfolio-thumbs-nav:focus {
  outline: none;
  box-shadow: none;
  background-color: transparent;
  color: #EFE500;
}

.rovno-portfolio-thumbs-nav--prev {
  left: 5px;
}

.rovno-portfolio-thumbs-nav--next {
  right: 5px;
}

.rovno-portfolio-thumbs-nav.swiper-button-disabled {
  opacity: 0.45;
  cursor: default;
}

.rovno-portfolio-top__meta {
  padding-left: 40px;
}

.rovno-portfolio-price {
  font-size: 36px;
  line-height: 36px;
  font-weight: 700;
  margin-bottom: 26px;
  color: #003C8D;
}

.portfolio-specs {
  margin-bottom: 21px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  line-height: 1;
}

.spec-label {
  font-weight: 500;
}

.spec-divider {
  flex-grow: 1;
  border-bottom: 1px dotted #000;
  margin: 0 10px;
  align-self: flex-end;
}

.spec-value {
  flex: 0 0 auto;
  font-weight: 500;
}

.spec-value sup {
  font-size: 0.7em;
  line-height: 0;
}

.rovno-portfolio-features {
  list-style: none;
  margin: 0 !important;
  padding: 0 !important;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
}

.rovno-portfolio-features li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rovno-portfolio-check {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #003c8d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rovno-portfolio-bottom {
  display: grid;
  gap: 24px;
}

.rovno-portfolio-bottom.has-both {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rovno-portfolio-bottom.has-both .rovno-portfolio-bottom__col:first-child {
  padding-right: 45px;
}

.rovno-portfolio-bottom.has-single {
  grid-template-columns: 1fr;
}

.rovno-portfolio-bottom__col h2 {
  margin-top: 0;
  margin-bottom: 14px;
}

.rovno-portfolio-description__toggle {
  margin-top: 14px;
  padding: 11px 22px;
  border: none;
  border-radius: 32px;
  background: #efe500;
  color: #3f3c42;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.rovno-portfolio-description__toggle:hover,
.rovno-portfolio-description__toggle:focus {
  opacity: 0.8;
  outline: none;
}

.rovno-portfolio-description__more[hidden] {
  display: none;
}

.rovno-portfolio-video-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #0d0d0d;
  min-height: 320px;
}

.rovno-portfolio-video iframe,
.rovno-portfolio-video video,
.rovno-portfolio-video embed,
.rovno-portfolio-video object {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  display: block;
}

.rovno-portfolio-video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.rovno-portfolio-video-play:hover,
.rovno-portfolio-video-play:focus {
  outline: none;
  opacity: 0.85;
}

.rovno-portfolio-video-wrap.is-playing .rovno-portfolio-video-play {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.rovno-portfolio-price--mobile {
  display: none;
}

@media (max-width: 1024px) {
  .rovno-portfolio-top {
    grid-template-columns: 1fr;
  }

  .rovno-portfolio-features {
    grid-template-columns: 1fr;
  }

  .rovno-portfolio-bottom.has-both {
    grid-template-columns: 1fr;
  }

  .rovno-portfolio-bottom.has-both .rovno-portfolio-bottom__col:first-child {
    padding-right: 0;
  }

  .rovno-portfolio-thumbs-nav {
    width: 30px;
    height: 30px;
  }

  .rovno-portfolio-title {
    font-size: 32px;
    line-height: 32px;
    margin: 0 0 21px 0;
  }

  .rovno-portfolio-price {
    font-size: 32px;
    line-height: 32px;
  }

  .rovno-portfolio-price--mobile {
    display: block;
  }

  .rovno-portfolio-price--desktop {
    display: none;
  }

  .rovno-portfolio-top__meta {
    padding-left: 0;
    margin-top: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .portfolio-specs {
    margin-bottom: 0;
  }

  .rovno-portfolio-top {
    margin-bottom: 60px;
  }
}

@media (max-width: 767px) {
  .rovno-portfolio-top__meta {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .rovno-portfolio-top {
    margin-bottom: 30px;
  }
}