/*
Theme Name:         D-WP-COMPONENTS
Theme URI:          https://div-production.ru
Description:        D-WP-COMPONENTS is a WordPress starter theme with components pack.
Version: 1.0.12
Author:             DIV
Author URI:         https://div-production.ru
Text Domain:        div-production
License:            MIT License
License URI:        https://opensource.org/licenses/MIT
Requires PHP:       8.0
Requires at least:  5.9
*/

.menu-item {
  margin-right: 0 !important;
  padding: 15px clamp(5px, 0.42vw, 20px);
}

.sub-menu {
  display: none;
}

.menu-item-has-children {
  position: relative;
}

.menu-item-has-children:hover .sub-menu {
  display: flex;
  flex-direction: column;

  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
}

.sub-menu .menu-item {
  padding: 0;
}

.sub-menu .menu-item a {
  padding: 15px 20px;
  display: block;
  background-color: #ffffff;
  color: #202020 !important;
  border-bottom: 1px solid #202020 !important;
  transition: background-color .5s ease, color .5s ease;
}

.sub-menu .menu-item a:hover {
  color: #ffffff !important;
  background-color: #202020;
  transition: background-color .5s ease, color .5s ease;
}

.sub-menu .menu-item a:last-of-type {
  border-bottom: none;
}

/* app-review-card-7 */
.app-review-card-7 {
  container-type: inline-size;
}

.app-review-card-7__slider {
  width: 100%;
  max-width: 100cqw;
  aspect-ratio: 16/9;
}

.app-review-card-7__slide {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.app-review-card-7__avatar {
  display: grid !important;
  grid-template-rows: max-content 1fr max-content !important;
  align-items: stretch !important;
  justify-items: center;
}

.app-review-card-7__progress-bar {
  width: 100%;
  height: 5px;
  position: absolute;
  left: -100%;
  bottom: 0;
  background-color: rgba(253, 212, 0, .5);
  animation: slider-progress-bar linear 2.5s;
}

@keyframes slider-progress-bar {
  0% {
   left: -100%;
  }
  100% {
    left: 0;
  }
}

.app-review-card-7__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-review-card-7__src {
  width: 100%;
  aspect-ratio: 16/9;
  display: flex;
  justify-content: center;
  align-items: center;
}

.app-review-card-7__avatar-desc {
  display: grid;
  grid-template-rows: max-content max-content 1fr max-content max-content;
}

.app-review-card-7__text {
  max-height: 4em;
  overflow: hidden;
  transition: max-height .5s ease;
}

@media (min-width: 600px) {
  .app-review-card-7__text {
    max-height: 4.5em;
  }
}

.app-review-card-7:hover .app-review-card-7__text {
  max-height: 600px;
  transition: max-height .5s ease;
}

.app-review-card-7__button {
  width: max-content;
  margin: 0 auto 10px;
  color: #ffffff;
  transform: scale(1);
  transition: transform .5s ease;
}

.app-review-card-7:hover .app-review-card-7__button {
  transform: scale(0);
  transition: transform .5s ease;
}

.app-review-card-7__yandex {
  margin: 0 auto 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: .75rem;
}

.app-review-card-7__yandex span {
  width: max-content;
  display: block;
  padding: 5px 10px;
  background-color: gold;
}

.app-review-card-7__slider-pagination {
  margin: 10px 0;
  display: flex;
  justify-content: center;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 2;
  width: 100%;
  height: 8px;
}

.app-review-card-7__slider-pagination .swiper-pagination-bullet-active {
  background-color: #f6444b;
}

/* review-slider */
.review-slider {
  padding: 5rem 0;
  background-color: #ffffff;
}

.review-slider__slider {
  overflow: hidden;
}
/* . review-slider */

/* portfolio */
.app-hero-5__main-row {
  width: 100%;

  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 750px) {
  .app-hero-5__main-row {
    grid-template-columns: 1fr 1fr;
  }

  .app-hero-5__main-row:nth-child(even) div:last-child {
    order: -1;
  }
}

.portfolio-slider {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 3rem 0 3rem 0;
  position: relative;
}

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

.portfolio-src {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 3rem 0 3rem 0;
  overflow: hidden;
}

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

.portfolio-pagination.swiper-pagination-horizontal {
  position: absolute;
  top: unset;
  left: 0;
  bottom: 20px;
  z-index: 10;
  display: flex;
  justify-content: center;
}
/* . portfolio */
