/* Стили кастомной страницы проверки сертификата (аккордеоны со стадиями).
   Дополняет check-certificate-page.css — базовая карточка/бейджи берутся оттуда. */

.cert-stages {
    margin-top: 28px;
    display: grid;
    gap: 14px;
}

.cert-stages__title {
    margin: 0 0 4px 0;
    font-family: var(--font-main);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
}

.cert-accordion {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
    transition: border-color 220ms ease;
}

.cert-accordion.is-open {
    border-color: rgba(77, 174, 60, 0.55);
}

.cert-accordion__header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    color: var(--text-main);
    font-family: var(--font-main);
}

.cert-accordion__num {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #247344;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
}

.cert-accordion__label {
    flex: 1 1 auto;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-main);
    word-break: break-word;
}

.cert-accordion__icon {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    color: var(--text-2);
    transition: transform 280ms ease;
}

.cert-accordion.is-open .cert-accordion__icon {
    transform: rotate(180deg);
    color: #4DAE3C;
}

.cert-accordion__panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 320ms ease;
}

.cert-accordion__body {
    padding: 4px 20px 20px;
}

.cert-cert-image {
    width: 100%;
    aspect-ratio: 1 / 1.414;
    max-width: 480px;
    margin: 18px auto 0;
    border-radius: 10px;
    background: #2a2a2a;
    background-image: repeating-linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.03) 0,
        rgba(255, 255, 255, 0.03) 12px,
        transparent 12px,
        transparent 24px
    );
    border: 1px dashed rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-2);
    font-size: 14px;
    text-align: center;
    padding: 16px;
}

.cert-cert-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.cert-cert-image.is-filled {
    padding: 0;
    background: #fff;
    background-image: none;
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.cert-cert-image iframe,
.cert-cert-image embed,
.cert-cert-image object {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
    background: #fff;
    display: block;
}

.cert-doc-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cert-doc-open {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--text-main);
    font-size: 14px;
    line-height: 1;
    transition: background 200ms ease, border-color 200ms ease;
}

.cert-doc-open:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
    .cert-stages { margin-top: 22px; }
    .cert-accordion__header { padding: 14px 14px; gap: 10px; }
    .cert-accordion__num { width: 30px; height: 30px; font-size: 14px; }
    .cert-accordion__label { font-size: 17px; }
    .cert-accordion__body { padding: 4px 14px 16px; }
}
