/* ===============================
   CERTIFICATE SECTION — FAQ STYLE
================================ */

.certificate-section {
  padding: 120px 24px;
}

/* ширина строго как у FAQ */
.certificate-inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

/* ===============================
   TITLE (ABOVE IMAGE)
================================ */

.certificate-title {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  margin-bottom: 28px;
  color: var(--text-dark);
}

/* ===============================
   FRAME (FAQ STYLE)
================================ */

.certificate-frame {
  position: relative;
  padding: 40px;
  border-radius: 32px;

  background: linear-gradient(
    180deg,
    #faf9f6 0%,
    #ffffff 100%
  );

  box-shadow: var(--shadow-soft);
  transition: transform .35s ease, box-shadow .35s ease;
}

/* акцентная линия */
.certificate-frame::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

/* hover только на desktop */
@media (hover: hover) {
  .certificate-frame:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
  }
}

/* ===============================
   IMAGE
================================ */

.certificate-frame img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  margin: 0 auto;

  background: #fff;
  padding: 6px;
  border-radius: 22px;

  box-shadow: 0 10px 28px rgba(0,0,0,0.1);
}

/* ===============================
   CAPTION
================================ */

.certificate-caption {
  margin-top: 42px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.certificate-mark {
  width: 46px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.certificate-text {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  max-width: 720px;
  margin: 0 auto;
  color: var(--text-muted);
}

.certificate-location {
  margin-top: 16px;
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: var(--text-dark);
}

/* ===============================
   TABLET
================================ */

@media (max-width: 1024px) {
  .certificate-section {
    padding: 100px 24px;
  }

  .certificate-title {
    font-size: 24px;
    margin-bottom: 24px;
  }

  .certificate-frame {
    padding: 32px;
    border-radius: 28px;
  }

  .certificate-frame::before {
    top: 22px;
    width: 48px;
  }

  .certificate-text {
    font-size: 16px;
  }
}

/* ===============================
   MOBILE
================================ */

@media (max-width: 600px) {
  .certificate-section {
    padding: 80px 18px;
  }

  .certificate-title {
    font-size: 21px;
    margin-bottom: 20px;
  }

  .certificate-frame {
    padding: 18px;
    border-radius: 22px;
  }

  .certificate-frame::before {
    top: 18px;
    width: 36px;
  }

  .certificate-frame img {
    padding: 4px;
    border-radius: 16px;
  }

  .certificate-caption {
    margin-top: 26px;
    gap: 12px;
  }

  .certificate-text {
    font-size: 15px;
  }

  .certificate-location {
    font-size: 16px;
  }
}
