.pm-projects{
  width:100%;
  padding:90px 0;
  background:#f7f7f7;
  font-family:Montserrat,Inter,Arial,sans-serif;
}

.pm-projects *,
.pm-projects *:before,
.pm-projects *:after{
  box-sizing:border-box;
}

.pm-projects__head,
.pm-projects__filters,
.pm-projects__grid{
  width:calc(100% - 320px);
  max-width:1200px;
  margin-left:auto;
  margin-right:auto;
}

.pm-projects__head{
  text-align:center;
  margin-bottom:24px;
}

.pm-projects__head h2{
  margin:0 0 12px;
  color:#1A1819;
  font-size:26px;
  line-height:1.08;
  letter-spacing:-0.03em;
  font-weight:700;
}

.pm-projects__head p{
  margin:0 auto 55px;
  max-width:720px;
  color:rgba(26,24,25,.52);
  font-size:16px;
  line-height:1.4;
  font-weight:500;
}

/* фильтры */
.pm-projects__filters{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:42px;
}

.pm-filter{
  height:42px;
  padding:0 20px;
  border-radius:5px;
  border:1px solid rgba(26,24,25,.14);
  background:#fff;
  color:rgba(26,24,25,.56);
  font-family:inherit;
  font-size:13px;
  line-height:1;
  font-weight:500;
  cursor:pointer;
  transition:
    background .25s ease,
    color .25s ease,
    border-color .25s ease,
    transform .25s ease;
}

.pm-filter:hover{
  color:#1A1819;
  border-color:rgba(26,24,25,.24);
  transform:translateY(-1px);
}

.pm-filter.is-active{
  background:#1A1819;
  border-color:#1A1819;
  color:#fff;
}

.pm-projects__grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:40px;
}

.pm-card{
  transition:opacity .25s ease, transform .25s ease;
}

.pm-card.is-hidden{
  display:none;
}

/* карточка */
.pm-card__shell{
  position:relative;
  height:512px;
  border-radius:12px;
  overflow:hidden;
  background:#d8d8d6;
  cursor:pointer;
  isolation:isolate;
  box-shadow:
    0 0 0 1px rgba(26,24,25,.08),
    inset 0 1px 0 rgba(255,255,255,.55);
  transition:transform .35s ease, box-shadow .35s ease;
}

.pm-card__shell:hover{
  transform:translateY(-3px);
  box-shadow:
    0 0 0 1px rgba(26,24,25,.08),
    inset 0 1px 0 rgba(255,255,255,.55),
    0 18px 40px rgba(26,24,25,.08);
}

.pm-card__img{
  position:absolute;
  inset:0;
  z-index:1;
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  opacity:1;
  transition:
    transform .8s cubic-bezier(.2,.7,.2,1),
    opacity .25s ease;
  will-change:transform, opacity;
}

.pm-card__img.is-changing{
  opacity:.6;
}

.pm-card__shell:hover .pm-card__img{
  transform:scale(1.018);
}

/* бейджи */
.pm-card__badges{
  position:absolute;
  top:20px;
  right:20px;
  z-index:6;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap;
  max-width:calc(100% - 40px);
}

.pm-card__badges span{
  min-height:31px;
  padding:0 13px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:5px;
  background:rgba(110,110,108,.68);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  color:#fff;
  font-size:10px;
  line-height:1;
  font-weight:600;
  letter-spacing:.025em;
  text-transform:uppercase;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.14),
    0 8px 20px rgba(26,24,25,.08);
}

/* стрелки листания */
.pm-card__nav{
  position:absolute;
  top:50%;
  z-index:5;
  width:38px;
  height:38px;
  margin-top:-19px;
  border:none;
  border-radius:50%;
  background:rgba(244,244,242,.58);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.48),
    0 4px 14px rgba(26,24,25,.06);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition:transform .22s ease, background .22s ease, opacity .22s ease;
}

.pm-card__nav:hover{
  transform:translateY(-1px);
  background:rgba(248,248,246,.76);
}

.pm-card__nav svg{
  width:17px;
  height:17px;
}

.pm-card__nav path{
  stroke:rgba(74,74,72,.78);
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.pm-card__nav--prev{
  left:18px;
}

.pm-card__nav--next{
  right:18px;
}

/* нижняя плашка */
.pm-card__panel{
  position:absolute;
  left:10px;
  right:10px;
  bottom:10px;
  z-index:7;
  height:92px;
  pointer-events:none;
}

.pm-card__shape{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  display:block;
  overflow:visible;
  filter:drop-shadow(0 10px 22px rgba(26,24,25,.07));
}

.pm-card__shape-fill{
  fill:rgba(248,248,246,.97);
  stroke:rgba(98,95,90,.22);
  stroke-width:1.35;
  vector-effect:non-scaling-stroke;
}

.pm-card__content{
  position:relative;
  z-index:2;
  height:100%;
  padding:15px 15px 15px 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  pointer-events:auto;
}

.pm-card__text{
  max-width:calc(100% - 76px);
}

.pm-card__text h3{
  margin:0 0 7px;
  color:#1A1819;
  font-size:17px;
  line-height:1.18;
  letter-spacing:-0.02em;
  font-weight:500;
}

.pm-card__text p{
  margin:0;
  color:rgba(26,24,25,.30);
  font-size:14px;
  line-height:1.2;
  font-weight:500;
}

/* круглая кнопка */
.pm-card__open{
  flex:0 0 auto;
  width:46px;
  height:46px;
  margin-right:4px;
  border-radius:50%;
  background:
    linear-gradient(135deg,
      #d0ceca 0%,
      #b3b1ac 40%,
      #97958f 72%,
      #7d7b75 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.34),
    inset 0 -1px 0 rgba(0,0,0,.06),
    0 7px 16px rgba(26,24,25,.10);
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff !important;
  text-decoration:none !important;
  transition:
    transform .28s ease,
    filter .28s ease,
    background .28s ease;
}

.pm-card__open:hover{
  transform:translate(1px,1px);
  filter:brightness(1.03);
}

.pm-card__open-icon{
  width:24px;
  height:24px;
  transform:translate(1px,1px);
}

.pm-card__open-icon path{
  stroke:#fff;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}

/* адаптив */
@media screen and (max-width:1280px){
  .pm-projects__head,
  .pm-projects__filters,
  .pm-projects__grid{
    width:calc(100% - 120px);
  }
}

@media screen and (max-width:980px){
  .pm-projects__head,
  .pm-projects__filters,
  .pm-projects__grid{
    width:calc(100% - 60px);
  }

  .pm-projects__grid{
    gap:28px 24px;
  }
}

@media screen and (max-width:760px){
  .pm-projects{
    padding:54px 0;
  }

  .pm-projects__head,
  .pm-projects__filters,
  .pm-projects__grid{
    width:calc(100% - 20px);
  }

  .pm-projects__head{
    text-align:left;
    margin-bottom:20px;
  }

  .pm-projects__head h2{
    font-size:26px;
  }

  .pm-projects__head p{
    margin-bottom:35px;
    font-size:14px;
  }

  .pm-projects__filters{
    justify-content:flex-start;
    flex-wrap:wrap;
    gap:12px 8px;
    margin-bottom:26px;
  }

  .pm-filter{
    flex:0 0 auto;
    height:40px;
    padding:0 16px;
    font-size:12px;
  }

  .pm-projects__grid{
    grid-template-columns:1fr;
    gap:22px;
  }

  .pm-card__shell{
    height:512px;
    border-radius:18px;
  }

  .pm-card__badges{
    top:14px;
    right:14px;
    gap:6px;
  }

  .pm-card__badges span{
    min-height:28px;
    padding:0 10px;
    font-size:9px;
  }

  .pm-card__nav{
    width:34px;
    height:34px;
    margin-top:-17px;
  }

  .pm-card__nav svg{
    width:15px;
    height:15px;
  }

  .pm-card__nav--prev{
    left:14px;
  }

  .pm-card__nav--next{
    right:14px;
  }

  .pm-card__panel{
    left:9px;
    right:9px;
    bottom:9px;
    height:88px;
  }

  .pm-card__content{
    padding:14px 14px 14px 16px;
  }

  .pm-card__text{
    max-width:calc(100% - 70px);
  }

  .pm-card__text h3{
    font-size:16px;
    margin-bottom:6px;
  }

  .pm-card__text p{
    font-size:13px;
  }

  .pm-card__open{
    width:44px;
    height:44px;
    margin-right:2px;
  }

  .pm-card__open-icon{
    width:23px;
    height:23px;
    transform:translate(1px,1px);
  }
}