/* /public/certificates.css — публична страница „Сертификати“ */
.certificates-page {
    width: 100%;
    padding: 0 0 44px;
    background: #F0F2F5;
    color: #343f50;
    box-sizing: border-box;
}

.certificates-page__title {
    margin: 40px 0 24px;
    color: #0a2450;
    font-size: 40px;
    line-height: 1.2;
    text-align: center;
}

.certificates-page__panel {
    width: 80%;
    max-width: 1408px;
    margin: 0 auto;
    padding: 34px 34px 38px;
    box-sizing: border-box;
    border-radius: 20px;
    background: #F8F9FB;
    box-shadow: 0 10px 28px rgba(10, 36, 80, .08);
}

.certificates-page__section + .certificates-page__section {
    margin-top: 34px;
}

.certificates-page__heading {
    margin: 0 0 20px;
    color: #0a2450;
    font-size: 28px;
    line-height: 1.3;
    text-align: center;
}

/* Типографията на параграфите идва от .content в module.css. */

.certificates-page__gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 550px));
    justify-content: center;
    align-items: start;
    gap: 32px 80px; /* вертикално | хоризонтално */
    margin-top: 62px; /* +30px от предишните 32px */
}

.certificates-page__image-button {
    display: block;
    width: 100%;
    max-width: 550px;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 7px 18px rgba(10, 36, 80, .14);
    cursor: zoom-in;
    overflow: hidden;
}

.certificates-page__image-button:focus-visible {
    outline: 3px solid #245ec6;
    outline-offset: 4px;
}

.certificates-page__image {
    display: block;
    width: 100%;
    height: auto;
}

/* JS добавя този клас при увеличаване на сертификата. */
.certificates-page__image-button.is-expanded {
    position: fixed;
    z-index: 10001;
    top: 50%;
    left: 50%;
    width: auto;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 32px);
    transform: translate(-50%, -50%);
    overflow: auto;
    cursor: zoom-out;
    box-shadow: 0 18px 65px rgba(0, 0, 0, .4);
}

.certificates-page__image-button.is-expanded .certificates-page__image {
    width: auto;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 32px);
    object-fit: contain;
}

@media (max-width: 980px) {
    .certificates-page__panel {
        width: 92%;
        padding: 28px 24px 32px;
    }
    .certificates-page__gallery {
        grid-template-columns: repeat(2, minmax(0, 450px));
        gap: 20px;
    }
}

@media (max-width: 760px) {
    .certificates-page__title {
        margin: 32px 0 18px;
        font-size: 34px;
    }
    .certificates-page__panel {
        width: 94%;
        padding: 22px 16px 26px;
        border-radius: 16px;
    }
    .certificates-page__heading { font-size: 24px; }
    .certificates-page__gallery {
        grid-template-columns: minmax(0, 450px);
        justify-content: center;
        gap: 20px;
    }
}

