.h1 {
  font-family: 'TT Hoves';
  font-size: 60px;
  font-weight: 400;
  line-height: 100%;
}

.h2 {
  font-family: 'TT Hoves';
  font-size: 32px;
  font-weight: 400;
  line-height: 36px;
}

.h4 {
  font-size: 28px;
  font-weight: 600;
}

/* certificate ratio: 1.92 */

.caption {
  margin: 0;

  font-family: 'TT Hoves';
  color: #9A9AA8;
  font-size: 13px;
  font-weight: 400;
  line-height: 15px;
}


.certificate-wrapper {
  /* TODO: determine by flag */
  /* max-width: 1440px; */
  max-width: 1000px;
  height: 600px;
  margin: 40px auto 36px;
}

.certificate {
  /* aspect-ratio: 1.92; */

  position: relative;

  width: 100%;
  height: 100%;

  border: 4px solid #FFFFFF;

  display: flex;
  background-color: #FFFFFF;
}

.certificate-border {
  position: absolute; 
  top: 39px;
  left: 39px;
  bottom: 39px;
  right: 39px;
  z-index: 10;

  display: flex;
  border: 5px solid;
  border-image-slice: 1;
  border-width: 5px;
  border-image-source: linear-gradient(to right, #ECB664 , #CB8845);
}

.certificate { 
}

.p {
  font-size: 13px;
  font-weight: 400;
  line-height: 15px;
}

/* Paragraph color variants */
.p--common {
  color: #9A9AA8;
}

.p--normal {
  color: #706F85;
}

.p--extended {
  color: #61616B;
}

.p--accent-common {
  color: #000000;
}

.p--accent-normal,
.p--accent-extended {
  color: #F0E7E1;
}

.certificate-panel {
  width: 236px;
  align-self: stretch;
  position: relative;
}

.certificate-panel-label {
  display: none;
}

.certificate-panel-image {
  position: absolute;
  top: 0;
  left: 0;

  object-fit: cover;

  width: 100%;
  height: 100%;
}

.certificate-panel-image-mobile {
  display: none;
}

.certificate-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: space-between;
}


.certificate-content * {
  font-family: 'TT Hoves';
}

.certificate-content--normal {
  border-left: 1px solid #343452;

  background: url(../../images/v4/bg.png) no-repeat center center;
  background-size: cover;
  background-color: #0A1138;
}

.certificate-content--extended {
  border-left: 1px solid #282828;

  background: url(../../images/v4/bg.png) no-repeat center center;
  background-size: cover;
  background-color: #101113;
}

.certificate-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;

  padding: 0 30px 30px;
}

.certificate-description {
  display: grid;
  grid-template-columns: 210px 4px 1fr;
  gap: 16px;

  padding: 0 21px 0 30px;
}

.certificate__username--description {
  white-space: nowrap;
}

.certificate__username--description-long {
  white-space: normal;
}

.certificate-description-bottom-separator-wrapper {
  padding: 0 30px;
}

.certificate-description-bottom-separator {
  margin-top: 15px;
  height: 1px;
  width: 100%;
}

.certificate-description-bottom-separator--common {
  background-color: #E9E9EC;
}

.certificate-description-bottom-separator--normal {
  background-color: #343452;
}

.certificate-description-bottom-separator--extended {
  background-color: #282828;
}

.certificate-confirmation-text-name {
  color: #000000;
}

.certificate-confirmation-text-name--normal {
  color: #F0E7E1;
}

.certificate-confirmation-text-name--extended {
  color: #FFFFFF;
}



.certificate-description-separator-wrapper {
  padding: 4px 1.5px;
}

.certificate-description-separator {
  width: 1px;
  height: 100%;

}

.certificate-description-separator--common {
  background-color: #E9E9EC;
}

.certificate-description-separator--normal {
  background-color: #343452;
}

.certificate-description-separator--extended {
  background-color: #282828;
}

.certificate-description-text {
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
  line-height: 15px; 
  text-transform: lowercase;
  white-space: pre-wrap;
}

.certificate-description-text--common {
  color: #9A9AA8;
}

.certificate-description-text--normal {
  color: #706F85;
}

.certificate-description-text--extended {
  color: #61616B;
}

.certificate-footer {
  padding: 30px;
}

.certificate-footer-content {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  
  margin-left: auto;
  width: calc(100% - 246px);
}

.certificate-footer-content--no-test-score {
  justify-content: flex-start;
  gap: 42px;
}

.certificate-person {
  padding: 94px 0 50px 100px;
  width: 52%;

  display: flex;
  flex-direction: column;
}

.header_certificate {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;

  padding: 26px 26px 30px 30px;
}

.header_certificate--normal .certificate-content-separator {
  background-color: #343452;
}


.header_certificate--normal,
.header_certificate--extended {
  color: #9A9AA8;
}

.header_certificate--normal .header_certificate-item--active,
.header_certificate--extended .header_certificate-item--active {
  color: #F0E7E1;
}

.header_certificate--extended .certificate-content-separator {
  background-color: #282828;
}


.header_certificate-item {
  color: #9A9AA8;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.header_certificate-item .star-icon {
  display: none;
}

.header_certificate-item--active {
  color: #000000;
}

.header_certificate-item--active .star-icon {
  display: block;
}

.header_certificate-item-text {
  margin: 0;

  font-size: 13px;
  font-weight: 400;
  line-height: 15px;
}

.star-icon {

}

.star-icon--normal,
.star-icon--extended {
  color: #F0E7E1;
}


.certificate-content-separator {
  flex: 1;
  height: 1px;

  background-color: #E9E9EC;
}

.caption__confirms {
  margin-top: 50px;
}

.certificate-meta {

}

.level {
  display: flex;

  align-items: center;
  justify-content: space-between;
}

.level__badge {
  flex: 1;

  font-size: 28px;
}

.level__value {
  position: relative;

  z-index: 11;

  display: flex;
  align-items: center;

  font-weight: 600;
  font-size: 35px;
}

.level__certificate-type {
  display: inline-block;

  margin-right: -50px;
  padding: 22px 75px 22px 28px;

  font-size: 30px;
  text-transform: uppercase;

}

.level__certificate-type-value_extended {
  background: no-repeat url(../../images/v2/extended-border.png) 0% 0%;
  background-size: contain;
}

.level__certificate-type-value_extended-ru {
  background-image: url(../../images/v2/extended-border-ru.png);
}

.target {
  margin-top: 32px;
  margin-bottom: 21px;
  max-width: 80%;

  line-height: 34px;
  font-size: 28px;
}

.target-stroke {
  background: no-repeat url(../../images/target-stroke.svg);
  background-size: contain;

  padding: 30px 45px 30px 80px;
}

.target-stroke-single {
  margin-left: 10px;
  padding: 29px 45px 29px 70px;
}

.caption__target {
  max-width: 200px;
}

.interview-count-wrapper:not(:first-of-type) {
  margin-top: 14px;
}

.interview-single {
  padding: 30px 0;
}

.interview-count {
  border-radius: 12px;

  display: inline-flex;
  align-items: center;

  font-size: 40px;
  font-weight: 600;
  white-space: nowrap;
}

.comment {
  opacity: 0.8;

  margin-bottom: 22px;
  padding: 13px 0 0;

  font-size: 12px;
  font-weight: 300;
  line-height: 16px;
}

.certificate__username {
  margin: 0 0 6px;
}

.certificate__username--common {
  margin: 0 0 6px;
}

.certificate__username--normal,
.certificate__username--extended {
  font-family: 'IBM Plex Serif';
  font-weight: 300;
  font-style: italic;
}


.caption__did--common {
  color: #9A9AA8;
}

.caption__did--normal {
  color: #706F85;
}

.caption__did--extended {
  color: #61616B;
}

.caption__did--normal,
.caption__did--extended {
  font-family: 'IBM Plex Serif';
  font-weight: 400;
  font-style: italic;
}

.certificate__course-name--common {
  display: block;

  color: #000000;
}

.certificate__course-name--normal {
  display: block;
  width: fit-content;

  font-family: 'IBM Plex Serif';
  font-weight: 400;
  font-style: italic;

  background: linear-gradient(90deg, #FB9595 0%, #FB959560);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.certificate__course-name--extended {
  font-family: 'IBM Plex Serif';
  font-weight: 400;
  font-style: italic;

  background: linear-gradient(135deg, #CA8174 0%, #FB959560);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.curator {
  display: flex;
}


.curator__about {
  display: flex;
  flex-direction: column;
  width: 160px;
}

.accepted-by-text {
  color: #61616B;
}

.curator__name {
  margin: 0;

  white-space: nowrap;
  font-size: 13px;
  font-style: normal;
  font-weight: 500;
  line-height: 15px;
}

.curator__sign {
  position: absolute;
  top: -74px;
  left: -135px;

  width: 160px;
  min-width: 100px;
}

.certificate-test-score {
  max-width: 122px;
}

.certificate-test-score-value {
  font-weight: 500;
}

.batch {

}

.batch__date {
  white-space: nowrap;

  font-size: 13px;
  font-style: normal;
  font-weight: 500;
  line-height: 15px;
}

@media only screen and (max-width: 1380px) {
 
}


@media only screen and (max-width: 1240px) {

}

@media only screen and (max-width: 1024px) {
  .interview-count {
    font-size: 28px;
  }
}

@media only screen and (max-width: 970px) {
  .certificate-wrapper {
    width: 100%;
    padding: 0 12px;
    margin: 20px auto;
  }

  .certificate {
    flex-direction: column;

    border-radius: 8px;
  }

  .certificate--common {
    border: 1px solid #E9E9EC;
  }

  .certificate--normal,
  .certificate--extended {
    border-width: 0;
  }

  .certificate--normal {
    background-color: #0A1138;
  }

  .certificate--extended {
    background-color: #101113;
  }


  .certificate-content--normal {
    border-left: none;
    background: none;
  }

  .certificate-content--extended {
    border-left: none;
    background: none;
  }

  .certificate-wrapper {
    height: auto;
  }

  .certificate-panel-image-desktop {
    display: none;
  }

  .certificate-panel-image-mobile {
    display: block;

    padding: 3px;
    border-radius: 6px;
  }


  .certificate-panel {
    overflow: hidden;

    position: relative;

    height: 132px;
    width: 100%;
  }

  .certificate-panel-label {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;

    display: block;

    transform: translate(-50%, -50%);
  }

  .certificate-panel-label-text {
    font-family: 'TT Hoves';
    font-size: 18px;
    text-transform: lowercase;
    color: #FFFFFF;
    font-weight: 400;
  }

  .certificate-panel-image {
  }

}

@media only screen and (max-width: 767px) {
  .h1 {
    text-align: left;
  }

  .certificate-panel-image {

  }

  .certificate-footer-content {
    width: 80%;
  }
}

@media only screen and (max-width: 576px) {
  .h1 {
    font-size: 36px;
    line-height: 100%;
  }

  .h2 {
    font-size: 18px;
    line-height: 100%;
  }

  .certificate-panel-image {
  }

  .header_certificate {
    padding: 8px 9px;
  }

  .header_certificate-item-text-label,
  .certificate-content-separator-label {
    display: none;
  }

  .certificate-info {
    padding: 42px 9px;
  }

  .certificate-description {
    grid-template-columns: 1fr;
    padding: 0 9px;
  }

  .certificate-description-text,
  .certificate-description-separator-wrapper {
    display: none;
  }

  .certificate-description-bottom-separator-wrapper {
    padding: 0 9px;
  }

  .certificate-footer {
    padding: 7px 9px 11px;
  }

  .certificate-footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 100px 1fr;
    align-items: flex-end;
    column-gap: 12px;
    row-gap: 9px;
    width: 100%;
  }

  .curator__sign {
    position: relative;
    width: 152px;
    top: 0;
    left: 0;
  }

  .curator__sign_image {
    position: relative;
    bottom: -18px;
    left: 25px;
  }

  .curator__about {
    margin-bottom: 12px;
  }

  .batch--no-test-score {
    grid-column: 2;
  }
}

@media only screen and (max-width: 400px) {
  .level__certificate-type {
    margin-right: -55px;
    padding: 10px 60px 12px 16px;

    font-size: 22px;
  }
}

/* END CERTIFICATE FOOTER */
