/* Контейнер всех карточек */
.project-cards-grid {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.7vw, 48px);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Карточка проекта */
.project-card {
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0;
}

.project-card__inner {
  display: flex;
  gap: 0;
  border-radius: 20px;
  margin: clamp(12px, 1.7vw, 48px);

  box-shadow: inset 0 0 0 1px #298C3B;
}

.project-card__media,
.project-card__body {
  flex: 1; 
}

.project-card__title {
    display: block;
    font-family: 'Unbounded', sans-serif;
    text-transform: uppercase;
    grid-column: 1 / -1;
    font-size: clamp(20px, 3vw, 80px);
    margin: clamp(10px, 1.5vw, 40px) 0 clamp(10px, 1.5vw, 40px) 0;
    font-weight: 500;
    color: #fff;
}

.project-card__title-inner {
    background-color: #298C3B;
    display: inline-flex;
    align-items: center;
    padding: 1em 2em 1em 1em;
    border: 1px solid #298C3B;
    border-left: none; 
    border-top-right-radius: 90px;
    border-bottom-right-radius: 90px;
    line-height: 1;
}


/* LEFT: media */
.project-card__media {
    position: relative;
    aspect-ratio: 1/1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 20px;
}

.project-card__prices {
    position: absolute;
    bottom: clamp(10px, 1.5vw, 40px);
    right: clamp(10px, 1.5vw, 40px);

    display: flex;
    flex-direction: column;
    align-items: flex-end;
    z-index: 2;

    color: #fff;

    font-family: 'Unbounded', sans-serif;
}

.project-card__old-price {
    position: relative;
    padding: 0 clamp(10px, 1.5vw, 40px);
    font-size: clamp(13px, 1.95vw, 52px);
    line-height: 1;
    border-radius: 6px;
    display: inline-block;
}

.project-card__price p,
.project-card__old-price p {
  margin: 0;
  padding: 5px;
  border-radius: 20px;

  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
}


.project-card__old-price::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 100%;
  background-image: url('/wp-content/themes/stroy-t71/template-parts/assets/icons/old-price_remover.svg');
  background-repeat: no-repeat;
  background-size: 100%;
  background-position: center;
  pointer-events: none;
}

.project-card__price {
    color: #fff;
    padding: 0.1em 1em 1em 0;
    line-height: 1;
    border-radius: 90px;
    font-weight: 600;
    font-size: clamp(20px, 3vw, 80px);
    display: inline-block;
}


/* RIGHT: body */
.project-card__body {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.5vw, 40px);
  font-family: 'Unbounded', sans-serif;
}

/* Мета-информация: локация, площадь, кнопка */
.project-card__meta {
  display: flex;
  gap: clamp(10px, 1.5vw, 40px);
  flex-wrap: wrap;
  align-items: center;
  margin-right: clamp(20px, 3vw, 80px);
}

.project-card__meta-item {
  font-size: clamp(10px, 1.5vw, 40px);
  color: #298C3B;
  margin: clamp(10px, 1.5vw, 40px);
}

.project-card__meta-location {
    position: relative;
    padding: 0.4em 1em 0.4em 1.8em;
    font-weight: 400;
    line-height: 1;
    border-radius: 90px;
    box-shadow: inset 0 0 0 1px #298C3B;
}

.project-card__meta-location::before {
  content: '';
  display: block;
  width: 1em;
  height: 1em;
  background-image: url('/wp-content/themes/stroy-t71/template-parts/assets/icons/contacts/contacts_marker.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  position: absolute;
  left: 0.6em;
}

.project-card__meta-area {
    padding: 0.4em;
    margin: 0;
    font-weight: 400;
    line-height: 1;
    border-radius: 90px;
    box-shadow: inset 0 0 0 1px #298C3B;
}

.project-card__cta {
  margin-left: auto;
  padding: clamp(10px, 1.5vw, 40px) clamp(15px, 2.25vw, 60px);
  background: #298C3B;
  border: 1px solid #298C3B;
  color: #fff;
  width: clamp(80px, 12vw, 320px);
  height: clamp(20px, 3vw, 80px);
  font-size: clamp(10px, 1.5vw, 40px);
  border-radius: 99px;
  font-weight: 400;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
    align-items: center;
  justify-content: center;

}
.project-card__cta:hover {
    transform: scale(1.05);
  background: #298C3B;
  color: #fff;
  box-shadow: 0 0 12px 4px #94ce8f70;
}

.project-card__cta:visited {
    color: #fff;
}
.project-card__plan-features-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr; 
    gap: clamp(10px, 1.5vw, 40px);
}

.project-card__plan {
    position: relative;
    margin-left: clamp(10px, 1.5vw, 40px);
    margin-bottom: clamp(10px, 1.5vw, 40px);
    border-radius: 20px;
    border: 1px solid #298C3B;
    overflow: hidden;

    display: flex;
    justify-content: center;
    align-items: center;
}

/* Планировка */
.project-card__plan-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
    border-radius: 20px;
    display: block;
}

.project-card__features-wrapper {
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 1.5vw, 40px);
}

.project-card__features {
    list-style: none;
    margin: 0;
    margin-right: clamp(10px, 1.5vw, 40px);
    padding: clamp(10px, 1.5vw, 40px) clamp(6px, 0.9vw, 24px);
    display: flex;
    flex-direction: column;
    gap: clamp(6px, 0.9vw, 24px);
    background-color: #298C3B;
    border-radius: 20px;
}

.project-card__feature {
    display: grid;
    grid-template-columns: auto 4fr;
    gap: clamp(6px, 0.9vw, 24px);
    align-items: center;
}

.project-card__feature-icon {
    width: clamp(16px, 2.4vw, 64px);
    height: clamp(16px, 2.4vw, 64px);
    object-fit: contain;
    justify-self: center;
}

.project-card__feature-title {
    font-size: clamp(8px, 1.2vw, 32px);
    font-weight: 300;
    color: #fff;
}

.project-card__finishing-toggle {
    font-family: 'Unbounded', sans-serif;
    margin-left: clamp(12px, 1.8vw, 48px);
    background: none;
    border: none;
    padding: 0;
    text-transform: uppercase;
    font-size: clamp(20px, 3vw, 80px);
    color: #298C3B;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    transition: all 0.6s ease;
}

.project-card__finishing-toggle:hover {
    transform: scale(1.05);
}

.finishing-toggle-icon {
    width: 1em;
    height: 1em;
    object-fit: contain;
    margin-left: 0.5em;
    transition: all 0.6s ease;
}

.project-card__finishing .finishing-house-card {
    max-height: 0;
    opacity: 0;
    transition: max-height 0.64s ease, opacity 0.44s ease;
}

.project-card__finishing .finishing-house-card.open {
    max-height: 2000px;
    opacity: 1;
}

.project-card__finishing .finishing-house-slider-wrapper {
    display: flex;
    flex-direction: column;
    gap: clamp(6px, 0.9vw, 24px);
}

.project-card__finishing .finishing-slides {
    display: flex;
    gap: clamp(6px, 0.9vw, 24px);
}

.project-card__finishing .finishing-slider-controls {
    display: flex;
    justify-content: flex-end; 
    gap: clamp(10px, 1.5vw, 40px);
}

@media (max-width: 768px) {
  .project-card__inner {
    display: flex;
    flex-direction: column;
    box-shadow: none;
  }

  .project-card__title {
    /* font-size: 16px; */
    /* font-size: 36px; */
    font-size: clamp(16px, calc(4.46429vw + 1.71429px), 36px);
  }
 
  .project-card__feature-title {
    display: none;
  }

  .project-card__price {
    padding-right: 0;
  }

  .project-card__feature {
    grid-template-columns: 1fr;
  }

  .project-card__plan-features-wrapper {
    grid-template-columns: 2fr auto;
    border: 1px solid #298C3B;
    /* border-radius: 15px; */
    /* border-radius: 25px; */
    border-radius: clamp(15px, calc(2.23214vw + 7.85714px), 25px);
    /* padding: 5px; */
    /* padding: 10px; */
    padding: clamp(5px, calc(1.11607vw + 1.42857px), 10px);
    padding-bottom: 0;
    padding-left: 0;
    /* gap: 5px; */
    /* gap: 10px; */
    gap: clamp(5px, calc(1.11607vw + 1.42857px), 10px);
  }

  .project-card__features {
    /* border-radius: 10px; */
    /* border-radius: 20px; */
    border-radius: clamp(10px, calc(2.23214vw + 2.85714px), 20px);
    margin: 0;
    /* margin-bottom: 5px; */
    /* margin-bottom: 10px; */
    margin-bottom: clamp(5px, calc(1.11607vw + 1.42857px), 10px);
  }

  .project-card__feature-icon {
    /* width: 25px; */
    /* width: 80px; */
    width: clamp(25px, calc(12.27679vw + -14.28571px), 80px);
    /* height: 25px; */
    /* height: 80px; */
    height: clamp(25px, calc(12.27679vw + -14.28571px), 80px);
  }

  .project-card__plan {
    /* border-radius: 12px; */
    /* border-radius: 32px; */
    border-radius: clamp(12px, calc(4.46429vw + -2.28571px), 32px);
    /* margin-bottom: 5px; */
    /* margin-bottom: 10px; */
    margin-bottom: clamp(5px, calc(1.11607vw + 1.42857px), 10px);
    /* margin-left: 5px; */
    /* margin-left: 10px; */
    margin-left: clamp(5px, calc(1.11607vw + 1.42857px), 10px);
  }

  .project-card__plan-image {
    /* border-radius: 10px; */
    /* border-radius: 20px; */
    border-radius: clamp(10px, calc(2.23214vw + 2.85714px), 20px);
  }

  .project-card__finishing .finishing-house-card .finishing-house-slider-wrapper .finishing-slides  .finishing-slide {
    flex: 0 0 calc((100% / 1.5) - 10px);
  }
}