.polygraphy-page {
  overflow: hidden;
  color: #0a1015;
}

.polygraphy-container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1210px;
  margin: 0 auto;
  padding: 0 20px;
}

.polygraphy-page .logo-print-partfolio > .container,
.polygraphy-page .polygraphy-reviews .container,
.polygraphy-faq .o-faq__wrapper {
  box-sizing: border-box;
  width: 100%;
  max-width: 1210px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 20px;
  padding-left: 20px;
}

.polygraphy-hero {
  box-sizing: border-box;
  display: flex;
  width: calc(100% - 60px);
  max-width: 1460px;
  min-height: 590px;
  align-items: stretch;
  margin: 286px auto 0;
  background: #111 url('/poligrafiya/images/banner.jpg') center / cover no-repeat;
}

.polygraphy-hero__content {
  box-sizing: border-box;
  display: flex;
  width: 100%;
  max-width: 1446px;
  min-height: 590px;
  flex-direction: column;
  justify-content: center;
  margin: 0 auto;
  padding: 54px 52% 42px 56px;
}

.polygraphy-hero h1 {
  max-width: 560px;
  margin: 0 0 62px;
  color: #fff;
  font-size: 36px;
  font-weight: 600;
  line-height: 1.08;
  text-transform: uppercase;
}

.polygraphy-hero__button {
  width: 280px;
  min-height: 64px;
  padding: 15px 24px;
  border: 0;
  background: #c4000c;
  color: #fff;
  font: 700 16px/1.25 'SF Pro Display', Arial, sans-serif;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.polygraphy-hero__button:hover,
.polygraphy-hero__button:focus-visible {
  background: #a7000a;
}

.polygraphy-hero__advantages {
  display: flex;
  gap: 44px;
  margin-top: 58px;
}

.polygraphy-advantage {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.1;
}

.polygraphy-advantage img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.polygraphy-types {
  padding: 76px 0 86px;
  background: #fff;
}

.polygraphy-types h2,
.polygraphy-calc h2 {
  margin: 0 0 48px;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.25;
}

.polygraphy-calc h2 {
  font-size: 26px;
}

.polygraphy-types__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 54px 34px;
}

.polygraphy-card {
  min-width: 0;
}

.polygraphy-card__image {
  aspect-ratio: 1.18 / 1;
  overflow: hidden;
  background: #f2f4f5;
}

.polygraphy-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.polygraphy-card h3 {
  margin: 18px 0 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}

.polygraphy-reviews .reviews-list,
.polygraphy-reviews .reviews_mini {
  margin-top: 0;
}

.polygraphy-faq {
  margin-top: 0;
}

.polygraphy-faq .o-faq__wrapper {
  max-width: 1210px;
}

.polygraphy-calc {
  margin-bottom: 20px;
  padding: 52px 0 54px;
  background: #f7f9fa;
}

.polygraphy-form__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
}

.polygraphy-form__fields {
  display: grid;
  gap: 20px;
}

.polygraphy-form__field input,
.polygraphy-form__field textarea {
  box-sizing: border-box;
  width: 100%;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: 0 2px 2px rgb(30 49 66 / 5%);
  color: #0a1015;
  font: 300 16px/20px 'SF Pro Display', Arial, sans-serif;
}

.polygraphy-form__field input {
  height: 60px;
  padding: 20px 24px;
}

.polygraphy-form__field textarea {
  min-height: 220px;
  padding: 20px 24px;
  resize: vertical;
}

.polygraphy-form__field input.error,
.polygraphy-form__field textarea.error {
  outline: 1px solid #c4000c;
}

.polygraphy-form__field label.error {
  display: block;
  margin-top: 5px;
  color: #c4000c;
  font-size: 12px;
}

.polygraphy-form__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 38px;
  margin-top: 30px;
}

.polygraphy-form__policy {
  display: flex;
  max-width: 410px;
  align-items: flex-start;
  gap: 12px;
  color: rgb(30 49 66 / 55%);
  font: 13px/18px Ubuntu, Arial, sans-serif;
  cursor: pointer;
}

.polygraphy-form__policy input {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  accent-color: #c4000c;
}

.polygraphy-form__policy a {
  color: inherit;
  text-decoration: underline;
}

.polygraphy-form__footer button,
.polygraphy-form__footer input[type='submit'] {
  min-width: 232px;
  min-height: 60px;
  border: 0;
  border-radius: 0;
  background: #c4000c;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}

.polygraphy-form__message {
  padding: 20px;
  background: #fff;
  font-size: 18px;
}

.polygraphy-form__message--error {
  margin-bottom: 20px;
  border-left: 3px solid #c4000c;
}

@media (width <= 1210px) {
  .polygraphy-hero {
    margin-top: 286px;
  }

  .polygraphy-hero__content {
    padding-left: 36px;
  }
}

@media (width <= 1024px) {
  .polygraphy-hero {
    min-height: 520px;
    margin-top: 276px;
    background-position: 56% center;
  }

  .polygraphy-hero__content {
    min-height: 520px;
    padding-right: 46%;
  }

  .polygraphy-hero h1 {
    margin-bottom: 42px;
    font-size: 30px;
  }

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

@media (width <= 960px) {
  .polygraphy-hero {
    margin-top: 252px;
  }
}

@media (width <= 768px) {
  .polygraphy-form__grid {
    grid-template-columns: 1fr;
  }

  .polygraphy-form__footer {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (width <= 767px) {
  .polygraphy-hero {
    min-height: 620px;
    background-position: 68% center;
  }

  .polygraphy-hero::before {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgb(0 0 0 / 88%) 0%, rgb(0 0 0 / 55%) 65%, rgb(0 0 0 / 15%) 100%);
    content: '';
  }

  .polygraphy-hero {
    position: relative;
  }

  .polygraphy-hero__content {
    position: relative;
    z-index: 1;
    min-height: 620px;
    justify-content: flex-end;
    padding: 40px 20px 42px;
  }

  .polygraphy-hero h1 {
    max-width: 460px;
    font-size: 28px;
  }

  .polygraphy-hero__advantages {
    margin-top: 40px;
  }

  .polygraphy-types {
    padding-top: 54px;
    padding-bottom: 58px;
  }

  .polygraphy-types__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 20px;
  }

  .polygraphy-form__grid {
    grid-template-columns: 1fr;
  }

  .polygraphy-form__footer {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (width <= 640px) {
  .polygraphy-hero {
    width: calc(100% - 36px);
    margin-top: 276px;
  }

}

@media (width <= 601px) {
  .polygraphy-hero {
    margin-top: 246px;
  }
}

@media (width <= 500px) {
  .polygraphy-hero {
    margin-top: 303px;
  }
}

@media (width <= 450px) {
  .polygraphy-container,
  .polygraphy-page .logo-print-partfolio > .container,
  .polygraphy-page .polygraphy-reviews .container,
  .polygraphy-faq .o-faq__wrapper {
    padding-right: 15px;
    padding-left: 15px;
  }

  .polygraphy-hero {
    min-height: 570px;
    background-position: 62% center;
  }

  .polygraphy-hero__content {
    min-height: 570px;
    padding-right: 15px;
    padding-left: 15px;
  }

  .polygraphy-hero h1 {
    margin-bottom: 30px;
    font-size: 24px;
  }

  .polygraphy-hero__button {
    width: 100%;
  }

  .polygraphy-hero__advantages {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    margin-top: 28px;
  }

  .polygraphy-types h2,
  .polygraphy-calc h2 {
    margin-bottom: 30px;
    font-size: 26px;
  }

  .polygraphy-calc h2 {
    font-size: 24px;
  }

  .polygraphy-types__grid {
    grid-template-columns: 1fr;
  }

  .polygraphy-card h3 {
    font-size: 17px;
  }

  .polygraphy-form__footer button,
  .polygraphy-form__footer input[type='submit'] {
    width: 100%;
  }
}

@media (320px <= width <= 480px) {
  .polygraphy-hero {
    margin-top: 0;
  }

  .polygraphy-hero h1 {
    max-width: 100%;
    font-size: clamp(18px, 5.2vw, 22px);
    line-height: 1.12;
    overflow-wrap: anywhere;
  }

}
