/* PRINTILLA: компактный первый экран и адаптивная галерея */
@media screen and (min-width: 981px) {
  #rec1527649311 {
    padding-top: 80px !important;
    padding-bottom: 50px !important;
  }
  #rec1527649311 .t1241__content-wrapper {
    padding: 40px !important;
  }
  #rec1527649311 .t1241__image,
  #rec1527649311 .t1241__cover {
    height: 650px !important;
  }
  #rec1527649311 .t1241__title {
    font-size: 46px !important;
    line-height: 1.06 !important;
  }
  #rec1527649311 .t1241__descr {
    margin-top: 28px !important;
    font-size: 21px !important;
    line-height: 1.4 !important;
  }
  #rec1527649311 .t1241__buttons {
    margin-top: 30px !important;
    flex-wrap: nowrap !important;
  }
  #rec1527649311 .t1241__buttons .t-btn {
    padding-left: 28px !important;
    padding-right: 28px !important;
  }
  #rec1409809671 .t979__grid-item:nth-child(n+13) {
    display: none !important;
  }
}

@media screen and (max-width: 980px) {
  #rec1527649311 {
    padding-top: 80px !important;
    padding-bottom: 40px !important;
  }
  #rec1527649311 .t1241__content-wrapper {
    padding: 40px 20px !important;
  }
  #rec1527649311 .t1241__image,
  #rec1527649311 .t1241__cover {
    height: 260px !important;
  }
  #rec1527649311 .t1241__title {
    font-size: 34px !important;
    line-height: 1.12 !important;
  }
  #rec1527649311 .t1241__descr {
    margin-top: 24px !important;
    font-size: 18px !important;
    line-height: 1.4 !important;
  }
  #rec1527649311 .t1241__buttons {
    margin-top: 28px !important;
  }
}

@media screen and (max-width: 480px) {
  #rec1409809671 .t979__grid-item:nth-child(n+9) {
    display: none !important;
  }
}

.printilla-more-works {
  display: flex;
  width: max-content;
  max-width: calc(100% - 40px);
  min-height: 52px;
  margin: 34px auto 0;
  padding: 0 28px;
  align-items: center;
  justify-content: center;
  border: 1px solid #a8d64f;
  border-radius: 16px;
  color: #172000 !important;
  font: 600 16px/1.2 Arial, sans-serif;
  text-decoration: none !important;
  transition: background-color .2s ease, color .2s ease;
}
.printilla-more-works:hover {
  background: #a8d64f;
  color: #fff !important;
}

/* PRINTILLA: компактная сетка портфолио */
#rec1409809671 .t979__grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px !important;
  height: auto !important;
}
#rec1409809671 .t979__grid-item {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
#rec1409809671 .t979__grid-item img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}
@media screen and (max-width: 980px) {
  #rec1409809671 .t979__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
@media screen and (max-width: 480px) {
  #rec1409809671 .t979__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
