.certificates-page-main {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: #fff;
}

.certificates-page-main > :not(.certificates-page__decor) {
  position: relative;
  z-index: 1;
}

.certificates-page__decor {
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

.certificates-page-main > .certificates-page__decor {
  position: absolute;
  z-index: 0;
}

.certificates-page__decor img {
  display: block;
  max-width: none;
}

.certificates-page__decor--primary {
  top: 21px;
  left: -108px;
  width: 1143px;
  height: 751px;
  clip-path: inset(0 0 120px 0);
}

.certificates-page__decor--primary img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.certificates-grid {
  display: grid;
  grid-template-columns: repeat(6, 196px);
  column-gap: 24px;
  row-gap: 46px;
  width: 1296px;
  height: 824px;
  margin-top: 76px;
}

.certificates-page .certificate-card {
  display: block;
  width: 196px;
  height: 389px;
  color: #0e383b;
}

.certificates-page .certificate-preview {
  display: block;
  width: 196px;
  height: 273px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 0 19px rgba(0, 0, 0, .10);
  cursor: zoom-in;
}

.certificates-page .certificate-preview img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: contain;
  background: #fff;
  box-shadow: none;
  transition: transform 240ms cubic-bezier(.4, 0, .2, 1);
}

.certificates-page .certificate-preview:hover img,
.certificates-page .certificate-preview:focus-visible img {
  transform: scale(1.012);
}

.certificates-page .certificate-preview:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

.certificates-page .certificate-file-name {
  width: 200px;
  height: 53px;
  margin: 15px 0;
  overflow: hidden;
  color: #0e383b;
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
}

.certificates-page .download-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 196px;
  height: 33px;
  border-radius: 5px;
  background: #18c6ac;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  line-height: 17px;
}

.certificates-page .download-button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

.certificates-page__consultation {
  margin-top: 99px;
}

body.certificates-page .site-footer {
  margin-top: 90px;
}

@media (min-width: 1360px) {
  .certificates-page__intro .container {
    width: 1296px;
  }
}

@media (max-width: 1359px) {
  .certificates-page__decor--primary {
    top: 210px;
    left: -165px;
    width: 780px;
    height: 512px;
    opacity: .62;
  }

  .certificates-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    height: auto;
    margin-top: 48px;
  }

  .certificates-page .certificate-card {
    display: flex;
    width: auto;
    height: auto;
    min-width: 0;
    flex-direction: column;
  }

  .certificates-page .certificate-preview {
    width: 100%;
    height: auto;
    aspect-ratio: 196 / 273;
  }

  .certificates-page .certificate-file-name {
    width: auto;
    height: auto;
    min-height: 53px;
    overflow: visible;
  }

  .certificates-page .download-button {
    width: 100%;
    margin-top: auto;
  }

  .certificates-page__consultation {
    margin-top: 72px;
  }

  body.certificates-page .site-footer {
    margin-top: 48px;
  }
}

@media (max-width: 900px) {
  .certificates-page__decor--primary {
    top: 190px;
    left: -240px;
    opacity: .48;
  }

  .certificates-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px 20px;
    margin-top: 40px;
  }
}

@media (max-width: 767px) {
  .certificates-page__decor--primary {
    top: 155px;
    left: -310px;
    width: 680px;
    height: 447px;
    opacity: .35;
  }

  .certificates-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 16px;
    margin-top: 32px;
  }

  .certificates-page .certificate-file-name {
    min-height: 0;
    margin: 12px 0;
  }

  .certificates-page__consultation {
    margin-top: 48px;
  }

  body.certificates-page .site-footer {
    margin-top: 28px;
  }
}

@media (max-width: 374px) {
  .certificates-grid {
    gap: 28px 12px;
  }

  .certificates-page .download-button {
    gap: 6px;
    font-size: 12px;
  }
}
