.ps42-pending #projects .projectGrid > * {
  display: none !important;
}

.ps42-pending #projects .projectGrid::before {
  content: "Загружаем объекты из фотобанка…";
  grid-column: 1 / -1;
  padding: 40px 0 72px;
  color: #aeb8b1;
  font: 500 18px/1.4 Inter, Arial, sans-serif;
}

.portfolioFilters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  margin: -8px 0 44px;
  padding: 24px 0;
  border-top: 1px solid rgba(242, 238, 230, 0.18);
  border-bottom: 1px solid rgba(242, 238, 230, 0.18);
  color: #f2eee6;
}

.portfolioFilterGroups {
  display: grid;
  gap: 18px;
}

.portfolioFilterGroup {
  display: grid;
  grid-template-columns: 122px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.portfolioFilterLabel {
  color: #aeb8b1;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.2;
  text-transform: uppercase;
}

.portfolioFilterOptions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.portfolioFilter {
  appearance: none;
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid rgba(242, 238, 230, 0.22);
  border-radius: 999px;
  color: #d8ded9;
  background: transparent;
  cursor: pointer;
  font: 600 11px/1.2 Inter, Arial, sans-serif;
  transition: color 0.18s, background 0.18s, border-color 0.18s, transform 0.18s;
}

.portfolioFilter:hover,
.portfolioFilter:focus-visible {
  border-color: rgba(242, 238, 230, 0.62);
  color: #fff;
  outline: none;
}

.portfolioFilter.is-active {
  border-color: #b36d4b;
  color: #1d2823;
  background: #c4805d;
}

.portfolioFilterSummary {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  min-width: 205px;
  color: #aeb8b1;
  font-size: 11px;
  white-space: nowrap;
}

.portfolioFilterReset {
  min-height: auto;
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  color: #d7a083;
  background: transparent;
}

.portfolioFilterReset:hover,
.portfolioFilterReset:focus-visible {
  color: #f2eee6;
  border-color: currentColor;
}

.portfolioFilterEmpty {
  grid-column: 1 / -1;
  min-height: 220px;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 44px;
  border: 1px solid rgba(242, 238, 230, 0.16);
  color: #f2eee6;
  text-align: center;
}

.portfolioFilterEmpty h3 {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 500;
}

.portfolioFilterEmpty p {
  max-width: 440px;
  margin: 0;
  color: #aeb8b1;
  line-height: 1.5;
}

.project.is-unavailable {
  grid-column: 1 / -1 !important;
  min-height: 220px;
  height: auto;
  background: #26332d;
  cursor: default;
}

.project.is-unavailable:hover {
  filter: none;
  transform: none;
}

.lightboxImage {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.lightboxImage img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  background: #0b100d;
}

.lightboxImage video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  background: #080d0a;
}

.lightboxImage.is-loading::after {
  content: "Загружаем оригинал…";
  color: #aeb8b1;
  font-size: 13px;
  position: absolute;
}

.lightboxImage.is-loading img {
  opacity: 0;
}

.lightboxImage.is-video.is-loading::after {
  content: "Загружаем видео…";
}

.lightboxImage.is-loading video {
  opacity: 0;
}

.project.hasVideoCover {
  isolation: isolate;
  background: #111a16;
}

.project.hasVideoCover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(15, 24, 20, 0.08) 35%, rgba(15, 24, 20, 0.92));
  pointer-events: none;
}

.projectVideoCover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  object-fit: cover;
}

.project.hasVideoCover > span:not(.projectVideoBadge),
.projectCardCopy {
  position: relative;
  z-index: 2;
}

.project > .projectVideoBadge {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 3;
  width: 44px;
  height: 44px;
  color: #1d2823;
  background: rgba(242, 238, 230, 0.94);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
  backdrop-filter: none;
  font: 600 14px/1 Arial, sans-serif;
}

.brand img {
  display: block;
  width: auto;
  height: 42px;
}

footer .brand img {
  height: 40px;
}

.distribution {
  background: #d8d1c6;
}

.distributionHead {
  margin-bottom: 54px;
}

.distributionLead {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 20px;
  margin: -22px 0 66px;
}

.distributionLead > p {
  grid-column: 2;
  max-width: 720px;
  margin: 0;
  color: #536058;
  font-size: 18px;
  line-height: 1.55;
}

.distributionLead > div {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 2px;
}

.distributionLead span {
  padding: 8px 11px;
  border: 1px solid rgba(29, 40, 35, 0.18);
  border-radius: 999px;
  color: #46524b;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.distributionGroup {
  display: grid;
  grid-template-columns: 270px 1fr;
  border-top: 1px solid rgba(29, 40, 35, 0.18);
}

.distributionGroup:last-child {
  border-bottom: 1px solid rgba(29, 40, 35, 0.18);
}

.distributionLabel {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-content: start;
  padding: 30px 28px 30px 0;
  border-right: 1px solid rgba(29, 40, 35, 0.18);
}

.distributionLabel > span {
  color: #aa6848;
  font: italic 15px Georgia, serif;
}

.distributionLabel h3 {
  margin: 0 0 10px;
  font-size: 23px;
  font-weight: 500;
}

.distributionLabel p {
  margin: 0;
  color: #626b66;
  font-size: 12px;
  line-height: 1.5;
}

.brandGrid {
  display: grid;
}

.brandGridDpk {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.brandGridLawn {
  grid-template-columns: 1fr;
}

.brandCard {
  min-width: 0;
  min-height: 164px;
  display: grid;
  place-items: center;
  padding: 28px 18px;
  border-right: 1px solid rgba(29, 40, 35, 0.14);
  background: #d8d1c6;
  overflow: hidden;
}

.brandCard:last-child {
  border-right: 0;
}

.distributionGroupLawn .brandCard {
  min-height: 132px;
}

.brandCard img {
  width: auto;
  max-width: 88%;
  max-height: 74px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.brandCardPolivan {
  background: #d8d1c6;
}

.brandCardPolivan img,
.brandCardProdecking img,
.brandCardTdecks img {
  width: 100%;
  max-width: 165px;
  max-height: 92px;
}

.brandCardProdecking {
  background: #d8d1c6;
}

.brandCardTdecks {
  background: #d8d1c6;
}

.brandCardCm img {
  mix-blend-mode: multiply;
}

.brandCardGazony {
  justify-content: center;
}

.brandCardGazony img {
  max-width: 330px;
  max-height: 82px;
}

.brandWord {
  display: block;
  color: #1d2823;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(18px, 1.7vw, 26px);
  line-height: 0.9;
  white-space: nowrap;
}

.brandWord small {
  display: block;
  margin-top: 9px;
  color: #69726d;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
}

.brandPro {
  letter-spacing: -0.06em;
  font-style: italic;
  font-weight: 400;
}

.brandPro span {
  color: #aa6848;
  font-weight: 800;
}

.brandTdecks {
  letter-spacing: -0.055em;
  font-weight: 800;
}

.brandNewwood {
  letter-spacing: -0.065em;
  font-weight: 300;
}

.brandNewwood > span {
  color: #64816d;
  font-weight: 800;
}

.brandCardOwn {
  background: #d8d1c6;
  box-shadow: none;
}

.clientGrid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.clientGrid article {
  min-width: 0;
  min-height: 250px;
}

.clientGrid article:nth-child(3n) {
  border-right: 0;
}

.clientGrid article:nth-child(n + 4) {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.clientLogo {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 112px;
}

.clientLogo img {
  width: auto;
  max-width: min(78%, 210px);
  max-height: 94px;
  object-fit: contain;
  filter: grayscale(1) brightness(4.2) contrast(0.78);
}

.clientLogoGovernment {
  justify-content: flex-start;
  gap: 17px;
}

.clientLogoGovernment img {
  width: 50px;
  height: 68px;
  filter: grayscale(1) brightness(2.55) contrast(0.9);
}

.clientLogoGovernment strong {
  color: #f2eee6;
  font-size: clamp(21px, 2.2vw, 31px);
  font-weight: 500;
  line-height: 0.95;
}

.clientLogoKabardinka img {
  max-width: 190px;
  max-height: 120px;
}

.clientLogoStg img {
  max-width: 118px;
  max-height: 118px;
  filter: grayscale(1) brightness(5.5);
}

.clientSbd,
.clientArgo {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.clientSbd {
  color: #87b99b;
}

.clientSbd small,
.clientArgo small {
  display: block;
  margin-top: 12px;
  color: #aeb6b0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.13em;
  line-height: 1;
  text-transform: uppercase;
}

.clientArgo {
  font-weight: 500;
  letter-spacing: 0.08em;
}

.navContacts {
  display: grid !important;
  grid-template-columns: max-content max-content;
  align-items: center;
  gap: 16px;
  margin-left: auto;
  flex: 0 0 auto;
}

.messengerLinks {
  display: grid !important;
  grid-template-columns: repeat(2, 34px);
  align-items: center;
  gap: 8px;
  flex-flow: row nowrap !important;
}

.navContacts .phone {
  margin: 0;
  white-space: nowrap;
}

.messenger {
  display: grid !important;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: 0 !important;
  border: 1px solid rgba(29, 40, 35, 0.3);
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 5px 18px rgba(29, 40, 35, 0.08);
  text-decoration: none;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}

.messenger img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.messengerTelegram {
  border-color: #229ed9;
  background: #229ed9;
}

.messengerTelegram img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

.messenger:hover,
.messenger:focus-visible {
  border-color: rgba(29, 40, 35, 0.48);
  box-shadow: 0 9px 24px rgba(29, 40, 35, 0.16);
  transform: translateY(-2px) scale(1.04);
}

.contactMessengers {
  display: grid !important;
  grid-template-columns: max-content max-content;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}

.contactMessengers .messenger {
  display: flex !important;
  place-items: initial;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: auto;
  height: 48px;
  padding: 0 17px 0 9px;
  border-radius: 999px;
  color: #1d2823;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.contactMessengers .messenger img {
  width: 28px;
  height: 28px;
}

.contactMessengers .messengerTelegram img {
  width: 23px;
  height: 23px;
}

.contactMessengers .messengerTelegram {
  color: #fff;
}

.contactMessengers .messenger span {
  display: block;
  line-height: 1;
}

@media (max-width: 720px) {
  .portfolioFilters {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 30px;
  }

  .portfolioFilterGroup {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .portfolioFilterOptions {
    flex-wrap: nowrap;
    margin-right: -20px;
    padding-right: 20px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .portfolioFilterOptions::-webkit-scrollbar {
    display: none;
  }

  .portfolioFilter {
    flex: 0 0 auto;
  }

  .portfolioFilterSummary {
    min-width: 0;
    justify-content: space-between;
  }

  .distributionLead {
    grid-template-columns: 1fr;
    margin: -12px 0 44px;
  }

  .distributionLead > p,
  .distributionLead > div {
    grid-column: 1;
  }

  .distributionGroup {
    grid-template-columns: 1fr;
  }

  .distributionLabel {
    border-right: 0;
    padding-right: 0;
  }

  .brandGridDpk {
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid rgba(29, 40, 35, 0.14);
  }

  .brandGridDpk .brandCard {
    min-height: 132px;
    border-bottom: 1px solid rgba(29, 40, 35, 0.14);
  }

  .brandGridDpk .brandCard:nth-child(2n) {
    border-right: 0;
  }

  .brandGridDpk .brandCard:last-child {
    grid-column: 1 / -1;
  }

  .brandGridLawn {
    grid-template-columns: 1fr;
  }

  .brandCardGazony {
    justify-content: center;
  }

  .clientGrid {
    grid-template-columns: 1fr;
  }

  .clientGrid article,
  .clientGrid article:nth-child(n) {
    min-height: 210px;
    border-right: 0;
    border-top: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .clientGrid article:last-child {
    border-bottom: 0;
  }

  .navContacts {
    gap: 8px;
  }

  .navContacts .phone {
    display: none;
  }

  .contactMessengers {
    grid-template-columns: max-content max-content;
    align-items: center;
    gap: 8px;
  }

  .contactMessengers .messenger {
    height: 44px;
    padding-right: 14px;
  }

  .lightboxMeta > div {
    min-width: 0;
  }

  .lightboxMeta h3,
  .lightboxMeta p {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
