html,
body {
  height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  color: var(--grey);
}

.outer_wrapper {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wrapper {
  position: relative;
  flex: 1;
}

.page-content {
  padding: 50px 100px;
}

.home-link.topproj {
  display: none;
}

.category-header-wrapper {
  position: relative;
  width: 100%;
  height: 600px;
}

.category-header {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.header-shadow {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 20%;
  /* background: linear-gradient(
    to top,
    rgba(40, 40, 40, 0.5) 10%,
    rgba(40, 40, 40, 0.2) 20%,
    rgba(0, 0, 0, 0) 80%,
    rgba(40, 40, 40, 0.5) 90%
  ); */
  z-index: 2;
}
#canvas {
  display: block;
  width: 100%;
  height: 100%;
}
/* .header-shadow::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 40%;
  background: radial-gradient(circle at center, black 15%, transparent 40%);
  background-size: 10px 10px;
  mask-image: linear-gradient(to top, black 20%, transparent 80%);
  -webkit-mask-image: linear-gradient(to top, black 20%, transparent 80%);
} */

.category-title-h1 {
  font-family: unbound_krk, sans-serif;
  position: absolute;
  margin: 0 auto;
  color: white;
  font-size: 2.5rem;
  /* text-shadow: 2px 2px 4px rgba(104, 65, 65, 0.8); */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  z-index: 11;
  padding: 100px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  filter: drop-shadow(0px 0px 5px #000000);
}

.project-details {
  /* display: flex; */
  display: none;
  position: absolute;
  z-index: 11;
  transform: translateY(100px);
  bottom: 0px;
  padding: 0px 100px 55px 100px;
  width: 100%;
  height: auto;
  flex-direction: row;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 700;
  color: white;
  grid-template-columns: repeat(6, 1fr);

  filter: drop-shadow(2px 2px 4px #000000);
}

.project-details-item {
  display: flex;
  flex-direction: column;
  position: relative;
  width: 125px;
  text-align: center;
  gap: 2px;
  position: relative;
  align-items: center;
  justify-content: start;
}
.project-details-item p {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.project-details-item span {
  font-size: 32px;
  filter: drop-shadow(2px 2px 4px #000000);
}


.project-details-item svg {
  width: 36px;
  height: 36px;
  fill: #ffffff !important;
}

.category-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

.header-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-header-image {
  z-index: 1;
}

.new-image {
  z-index: 1;
}

.breadcrumbs {
  color: var(--grey);
}
.breadcrumbs a {
  text-decoration: none;
  color: var(--green1);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px 20px;
  padding: 50px 0px;
}

.project-card {
  position: relative;
  display: block;
  width: 100%;
  max-width: 450px;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.205);
  transition: all 0.3s ease;
}

/* Тень */
.project-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 20%;
  background: linear-gradient(to left, rgba(0, 0, 0, 0.425) 0%, transparent);
  pointer-events: none;
  z-index: 1;
}

.project-card:hover {
  box-shadow: 2px 6px 8px rgba(0, 0, 0, 0.432);
  transform: translateY(-10px);
}

.cat-project-image {
  height: 250px;
  width: 100%;
  background-size: cover;
  background-position: 50% 50%;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  opacity: 0.5;
  transform: scale(1.2) translateZ(1px);
  transition: opacity 0.5s ease, transform 10s ease;
  position: relative;
  z-index: 1;
  filter: grayscale(50%);
}

.project-card:hover .cat-project-image {
  transform: translateY(-5px);
  opacity: 1;
  transition: opacity 0.5s ease, transform 5s ease;
  transform: scale(1);
  filter: grayscale(0%);
}

.details-hidden {
  display: none;
}
.project-card:hover .details-hidden {
  display: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.cat-project-info {
  padding: 15px;
  position: relative;
  display: flex;
  flex-direction: column;
  z-index: 11;
  border: 1px solid #8181811c;
  box-shadow: 0px -5px 5px -5px rgba(131, 131, 131, 0.6) inset;
  border-radius: 0 0 20px 20px;
  background-image: linear-gradient(135deg, #282828, #282828);
}

.cat-project-name {
  display: block;
  width: 100%;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--white);
}

.cat-project-details {
  display: flex;
  justify-content: space-between;
  color: var(--grey);
}
.cat-project-right div {
  display: flex;
  flex-direction: column;
  align-items: end;
}
.details-left {
  display: flex;
  flex-direction: column;
  position: relative;
  justify-content: space-between;
  align-self: start;
}
.cat-details-item {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.cat-project-price {
  position: absolute;
  bottom: 0px;
  right: 0px;
  padding: 10px 15px;
  background-color: var(--green1);
  color: var(--bg);
  font-weight: bold;
  border-radius: 20px 0px 20px 0px;
  font-size: 1em;
  border-top: 1px solid #000000;
  border-left: 1px solid #000000;
  box-shadow: 0px -7px 8px -5px rgba(0, 0, 0, 0.8) inset;
}

/* Стили для проекта */

.project-content {
  padding: 50px 0px;
  height: 100%;
}

.project-content-block {
  display: flex;
  margin-bottom: 40px;
  gap: 20px;
  justify-content: space-between;
  min-height: 400px;
}
.project-content-left {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
.project-content-title {
  font-size: 2em;
  margin-bottom: 20px;
  font-family: unbound_krk, sans-serif;
}
.project-content-subtitle {
  margin-bottom: 10px;
}
.project-description {
  min-width: 320px;
  max-width: 800px;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.project-content-right {
  display: flex;
  flex-direction: column;
  width: 310px  
}
.project-content-meta-shadow {
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.205);
  border-radius: 20px;
}
.project-content-meta {
  float: right;
  width: 310px;
  height: auto;
  display: flex;
  flex-direction: column;
  position: relative;
  gap: 8px;
  padding: 20px;
  position: relative;
  border: 1px solid #8181811c;
  box-shadow: 0px -5px 5px -5px rgba(131, 131, 131, 0.6) inset;
  border-radius: 20px;
  background-image: linear-gradient(135deg, #282828, #282828);
}

.project-content-meta-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.project-title {
  font-size: 2em;
  margin-bottom: 10px;
}

.project-content-price {
  margin-top: 20px;
}

.project-content-price span {
  font-size: 20px;
  color: var(--green1);
}

.product-preview__icon {
  display: flex;
}
.product-preview__icon svg {
  width: 36px;
  height: 36px;
  fill: #9dd639;
  pointer-events: none;
  position: relative;
  min-width: 36px;
}

.topbar_mobile {
  display: none;
}

.top_contactpc {
  display: block;
}
.top_contactmobile {
  display: none;
}

.shortname {
  display: none;
}
.proj_contacts {
  padding: 100px 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.projnav {
  width: 700px;
}

@media (max-width: 1140px) {
  .projnav li:nth-child(1) {
    display: none;
  }
  .projnav {
    width: auto;
  }
}

@media (max-width: 900px) {
  .topbar {
    padding: 0px 20px 10px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
  }

  .topbar_mobile {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .glass1 {
    background-image: linear-gradient(
      0deg,
      #c9c9c93f 20%,
      #75757552 70%,
      #2f2f2f70 100%
    );
    box-shadow: 1px 2px 5px #55555550;
  }

  .projnav {
    width: 550px;
  }

  .projnav ul {
    justify-content: space-between;
  }

  .pclogo {
    display: none;
  }

  .top_contactpc {
    display: none;
  }
  .top_contactmobile {
    display: block;
  }

  .home-link.topproj {
    display: block;
  }

  .outer_wrapper {
    top: 90px;
  }

  .page-content {
    padding: 50px 50px;
  }
  .category-title-h1 {
    padding: 50px 30px;
    top: 80px;
  }

  .project-card-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .project-details {
    padding: 0px 50px 30px 50px;
    grid-template-columns: repeat(3, 1fr);
  }

  .project-details-item {
    margin: auto;
  }
  .project-content-block {
    flex-direction: column;
  }
  .project-content {
    padding: 0px 0px;
  }

  .project-content-left,
  .project-content-right {
    margin-top: 20px;
  }
}

@media (max-width: 600px) {
  .topbar {
    padding: 0px 2px 10px 2px;
  }
  .top_contact {
    padding-right: 18px;
  }
  .home-linkmobile {
    padding: 15px 5px;
  }

  .projnav {
    width: 100%;
    padding: 0px 10px 0px 8px;
  }
 
  nav a {
    padding: 15px 5px;
  }
  .projects-grid {
    grid-template-columns: 1;
  }

  .project-content {
    padding: 0px 0px;
  }
  .category-title-h1 {
    font-size: 2rem;
  }
  .proj_contacts {
    padding: 100px 10px;

  }
}

@media (max-width: 500px) {
  .project-details {
    padding: 0px 1px 10px 1px;
  }
  .page-content {
    padding: 20px 10px 20px 10px;
  }
  .shortname {
    display: block;
  } 
  .fullname {
    display: none;
  }
  .project-details-item {
    width: auto;
  }
  .project-details-item span {
    font-size: 24px;
  }
}

/* Галерея */
.gallery {
  display: grid;
  gap: 15px;
  padding: 15px;
}

@media (min-width: 600px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Футер */
.footer {
  width: 100%;
  padding: 20px;
  margin-top: 30px;
}
