/* Certificate promo — compact image + text block.
   Scoped to .certificate-promo so no other block changes. The copy explains
   only the access rules the existing CTA already implements; the CTA markup,
   states and handlers are untouched. */

.certificate-promo {
  --cp-panel: #222a3d;
  --cp-text: #f5f7fc;
  --cp-body: #c2ccdf;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  margin: 48px auto 0;
}

.certificate-promo .video__item.certificate-preview {
  flex: 0 0 44%;
  width: auto;
  max-width: 440px;
  height: auto !important;
  margin: 0;
  aspect-ratio: 1.6;
  border-radius: 14px;
  overflow: hidden;
  background: var(--cp-panel);
  box-shadow: 0 18px 40px rgba(6, 10, 20, 0.45);
}

.certificate-promo .certificate-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.certificate-promo .video__item.certificate-promo-header {
  flex: 1 1 auto;
  width: auto;
  max-width: 560px;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.certificate-promo .certificate-promo-header h2 {
  display: block;
  margin: 0 0 12px;
  max-width: none;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 650;
  letter-spacing: -0.3px;
  color: var(--cp-text);
  text-align: left;
  text-transform: none;
}

.certificate-promo .certificate-promo-header p {
  margin: 0;
  max-width: 46ch;
  font-size: 15px;
  line-height: 1.55;
  font-weight: 400;
  color: var(--cp-body);
  text-align: left;
}

/* One clear action with a comfortable target; never hidden on mobile. */
.certificate-promo .btn {
  margin: 22px 0 0;
  order: 0;
  width: 100%;
  max-width: 320px;
  min-width: 0;
  min-height: 48px;
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 16px;
  white-space: normal;
}

.certificate-promo .btn:focus-visible {
  outline: 3px solid #f3ca4d;
  outline-offset: 3px;
}

@media (max-width: 1100px) {
  .certificate-promo {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  .certificate-promo .video__item.certificate-preview {
    flex: none;
    width: 100%;
    max-width: none;
  }

  .certificate-promo .video__item.certificate-promo-header {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 900px) {
  /* app.css hides .editors_choice__info h2 on small screens. */
  .certificate-promo .certificate-promo-header h2 {
    display: block;
  }
}

@media (max-width: 640px) {
  .certificate-promo {
    margin-top: 32px;
  }

  .certificate-promo .certificate-promo-header h2 {
    font-size: 22px;
    margin-bottom: 10px;
  }

  .certificate-promo .certificate-promo-header p {
    font-size: 14px;
  }

  .certificate-promo .btn {
    display: inline-flex;
    width: 100%;
    max-width: none;
    margin-top: 18px;
    min-height: 48px;
  }
}
