/*!
Theme Name: ПИК
Theme URI: https://neurogrid.ru/
Author: Izmailov Aleksandr
Author URI: https://imwex.ru/
Description: Proprietary theme developed exclusively for ПИК. All rights reserved.
Version: 1.0.0
Requires PHP: 8.2
License: Commercial (Copyright © ПИК)
License URI: https://neurogrid.ru/license/
Text Domain: neurogrid

==================================================
WARNING: This theme is the proprietary property of ПИК. 
Any unauthorized copying, modification, distribution, 
or reuse without explicit written permission is strictly prohibited. 
Use is permitted only under license agreement terms.
==================================================
*/

.contacts__main {
  background-image: url("https://duratray.com/wp-content/uploads/MAIN-Kansanshi-Mining-jpg.webp") !important;
}

/* Основные стили контента */
.entry-content {
  line-height: 1.6;
  margin: 1.5em 0;
}

.entry-content p {
  margin-bottom: 1.5em;
}

.entry-content img {
  max-width: 100%;
  height: auto;
}

.entry-header {
  margin-bottom: 2em;
}

.entry-title {
  margin: 0 0 0.5em;
}

.entry-meta {
  color: #665;
  font-size: 0.9em;
}

.entry-meta span,
.entry-meta a {
  margin-right: 10px;
}

/* Стили для галерей и других элементов */
.wp-block-gallery {
  margin: 1.5em 0;
}

.alignwide {
  margin-left: -2em;
  margin-right: -2em;
  max-width: calc(100% + 4em);
}

.post h1 {
  padding-top: 200px;
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  font-family: "Golos Text", Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff;
  margin-top: 14vh;
  margin-bottom: 3vh;
}

.page h1 {
  font-family: "GeometriaMedium", Arial, sans-serif;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
  color: #ffffff;
  margin-bottom: 30px;
  line-height: 130%;
}

@media (max-width: 1024px) {
  .post h1 {
    padding-top: 170px;
  }
}

@media (max-width: 767px) {
  .post h1 {
    padding-top: 110px;
  }
}

#contacts .b24-form-padding-side,
#cpa .b24-form-padding-side {
  padding-left: 0px !important;
  padding-right: 0px !important;
}

.contacts .b24-form-content,
.cpa .b24-form-content {
  padding: 0px !important;
}

.b24-widget-button-position-bottom-right {
  bottom: 70px !important;
}

@media (max-width: 767px) {
  .b24-widget-button-position-bottom-right {
    right: 10px !important;
  }
}

.interior__vis .agr-hero--top .agr-hero__heading .agr-hero__h1 {
  font-size: clamp(1.8rem, 0.148rem + 2.894vw, 4.778rem);
}

.whom__item-text__title {
  font-size: 40px;
}

@media (max-width: 1024px) {
  .whom__item-text__title {
    font-size: 26px;
  }
}

@media (max-width: 767px) {
  .whom__item-text__title {
    font-size: 18px;
  }

  .buklet .whywe .svg-parallax-fg--white {
    display: none;
  }

  .buklet .agr-hero__bottom__list li,
  .archdesign .agr-hero__bottom__list li {
    font-size: 10px;
  }

  .archdesign {
    --golden-ratio-minor: 0.25;
    --golden-ratio-major: 0.75;
  }
}

.archdesign .whom__item-text__description {
  list-style-type: none;
  padding-left: 0px;
}

.archdesign .whom__item-text__description > li {
  margin-bottom: var(--space-lg);
}

.archdesign .whywe__advantage-item {
  gap: 12rem;
}

.archdesign .whywe__advantage-text {
  margin-top: -3px;
}

.archdesign .whywe__highlight-text {
  text-transform: uppercase;
}

.archdesign .whywe .svg-parallax-fg--white {
  left: 82vw;
}

.archdesign .whom__item-text__description ul {
  list-style: disc;
  margin-left: 20px;
}

.archdesign .figures__item {
  border-top: 1px solid #f27405;
}

.archdesign .item:last-child {
  border-bottom: 1px solid #f27405;
}

.buklet .agr-hero--top .agr-hero__heading .agr-hero__h1,
.archdesign .agr-hero--top .agr-hero__heading .agr-hero__h1 {
  font-size: clamp(27px, 0.3333px + 2.6042vw, 67px);
  line-height: 120%;
}

.buklet .agr-hero__description,
.archdesign .agr-hero__description {
  text-transform: none !important;
}

@media (min-width: 767px) {
  .buklet .agr-hero--top .agr-hero__heading .agr-hero__h1 .buklet--br--m,
  .archdesign .agr-hero--top .agr-hero__heading .agr-hero__h1 .buklet--br--m {
    display: none;
  }
}

@media (max-width: 767px) {
  .archdesign .info-tabs__tab-button {
    font-size: 16px;
  }

  .archdesign .presentation__feature-text {
    width: 100%;
  }

  .archdesign .presentation__feature-number {
    font-size: 18px;
    text-transform: uppercase;
  }
}

@media (max-width: 1024px) {
  .buklet .agr-hero--top .agr-hero__heading .agr-hero__h1,
  .archdesign .agr-hero--top .agr-hero__heading .agr-hero__h1 {
    font-size: 21px;
  }

  .buklet .agr-hero--top .agr-hero__heading .agr-hero__h1 .buklet--br--d,
  .archdesign .agr-hero--top .agr-hero__heading .agr-hero__h1 .buklet--br--d {
    display: none;
  }

  .buklet .whywe__advantage-text ul li {
    font-size: var(--font-size-body);
  }
  .buklet .whywe__advantage-number {
    font-size: var(--font-size-body);
  }
  .buklet .presentation__feature-text {
    font-size: var(--font-size-body);
  }

  .archdesign .whywe__advantage-item {
    flex-direction: column;
    gap: 2rem;
  }

  .archdesign .whywe__advantage-number {
    color: #f27405;
  }
}

@media (min-width: 767px) and (max-width: 1024px) {
  .buklet .agr-hero--top .agr-hero__heading .agr-hero__h1 {
    font-size: 40px;
  }
}

.whywe__advantage-text a {
  color: #f27405;
  text-decoration: underline;
}
.whywe__advantage-text a:hover {
  color: #fff;
}

/* ===================================== */
/* Hero и фильтры на /cases/ и архивах    */
/* Скоуп через .cases-main — блог не задевает */
/* ===================================== */

.cases-main .blog-hero__title {
  margin-top: 190px;
}

.cases-main .blog-hero__description {
  margin-top: 24px;
  margin-bottom: 60px;
  width: 70%;
  max-width: 820px;
}

.cases-main .blog-categories {
  margin-bottom: 40px;
}

.cases-main .blog-articles {
  padding-top: 0;
}

@media (max-width: 1024px) {
  .cases-main .blog-hero__title {
    margin-top: 110px;
  }

  .cases-main .blog-hero__description {
    width: 100%;
    margin-bottom: 40px;
  }
}

@media (max-width: 767px) {
  .cases-main .blog-hero__title {
    margin-top: 90px;
  }

  .cases-main .blog-hero__description {
    margin-top: 16px;
    margin-bottom: 32px;
  }

  .cases-main .blog-categories {
    margin-bottom: 24px;
  }
}

/* ===================================== */
/* Карточки кейсов на /cases/ и архивах   */
/* Скоуп через .cases-main — блог не задевает */
/* ===================================== */

.cases-main .article-read-more__card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: auto;
  min-width: 0;
  transition: transform 0.4s ease;
  will-change: transform;
}

.cases-main .blog-articles__item {
  align-items: stretch;
}

.cases-main .blog-articles__item > .article-read-more__card {
  height: 100%;
}

.cases-main a.article-read-more__card:hover {
  transform: scale(1.02);
}

.cases-main a.article-read-more__card:hover .article-read-more__title {
  color: #f27405;
}

.cases-main .article-read-more__card--draft {
  cursor: default;
}

.cases-main .article-read-more__img-wrap {
  position: relative;
  overflow: hidden;
}

.cases-main .article-read-more__title {
  padding: 0 20px;
  font-size: clamp(
    18px,
    18px + (30 - 18) * (100vw - 1024px) / (2560 - 1024),
    30px
  );
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
  min-height: calc(1.3em * 3);
  transition: color 0.3s ease;
  margin-bottom: 12px;
  margin-top: 20px;
}

/* Контейнер chips категорий — позиционируется в правом верхнем углу обложки */
.cases-main .article-read-more__category-chips {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  max-width: calc(100% - 24px);
}

/* Каждый chip — отдельная метка */
.cases-main .article-read-more__category-chip {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.65);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  color: #fff;
  font-family: "Golos Text", Arial, sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 4px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Заказчик и адрес объекта под заголовком */
.cases-main .article-read-more__case-info {
  margin-top: 0;
  margin-bottom: 20px;
  padding: 0 20px;
  font-family: "Golos Text", Arial, sans-serif;
  line-height: 1.4;
}

.cases-main .article-read-more__case-client {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.cases-main .article-read-more__case-location {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 767px) {
  .cases-main .article-read-more__category-chips {
    top: 8px;
    right: 8px;
    gap: 4px;
    max-width: calc(100% - 16px);
  }

  .cases-main .article-read-more__category-chip {
    padding: 4px 8px;
    font-size: 10px;
  }

  .cases-main .article-read-more__title {
    padding: 0 14px;
  }

  .cases-main .article-read-more__case-info {
    margin-bottom: 16px;
    padding: 0 14px;
  }

  .cases-main a.article-read-more__card:hover {
    transform: scale(1.015);
  }
}
