/* =====================================
   ОСНОВНАЯ КАРТОЧКА
===================================== */

.card {
    max-width: 960px;

    margin: 40px auto;
    padding: 20px;

    background: white;
}

/* =====================================
   ВЕРХНЯЯ ЗЕЛЕНАЯ ПОЛОСА
===================================== */

.top-bar {

    display: flex;

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

    margin: -20px -20px 30px;

    padding: 24px 20px;

    border-radius: 3px 3px 0 0;

    box-shadow: 0 3px 8px rgba(0,0,0,.15);

}

/* =====================================
   СЕКЦИИ
===================================== */

.section-title {

    margin-bottom: 12px;

    color: #59d874;

    font-size: 20px;

}

.section-description {

    margin-bottom: 25px;

    font-size: 13px;

    color: #555;

}

/* =====================================
   CERTIFICATES GRID
===================================== */

.certificate-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 30px;

    margin-top: 10px;

    align-items: start;
}

.certificate-card {
    position: relative;
    overflow: hidden;

    cursor: zoom-in;
}

.certificate-card::after {

    content: "";

    position: absolute;
    inset: 0;

    background:
        rgba(0,0,0,.18)
        url("../img/icons/search.svg")
        center center
        no-repeat;

    background-size: 42px;

    opacity: 0;

    transition: opacity .35s ease;

    pointer-events: none;
}

.certificate-card:hover::after {
    opacity: 1;
}

.certificate-card img {
    width: 100%;

    display: block;
}

.certificate-card:hover {
    transform: translateY(-3px);
}

.certificate-section {
    text-align: left;
}

.certificate-section:not(:first-child) {
    margin-top: 60px;
}

.certificate-section p {
    margin-top: 5px;
    margin-bottom: 5px;
}

.certificate-section p:last-of-type {
    margin-bottom: 30px;
}

.certificates-wrapper {
    margin-top: 20px;
}

/* ===========================================
   ОДНО ИЗОБРАЖЕНИЕ В КЕЙСЕ - НА ВСЮ ШИРИНУ
=========================================== */

.certificate-grid .certificate-card:only-child {
    grid-column: 1 / -1;
    width: 70%;
}

.certificate-grid .certificate-card:only-child img {
    width: 100%;
    height: auto;
    display: block;
}

/* =====================================
   LIGHTBOX (МОДАЛЬНОЕ ОКНО)
===================================== */

.lightbox {

    position: fixed;
    inset: 0;

    display: flex;
    justify-content: center;
    align-items: center;

    background: rgba(0,0,0,.92);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.45s cubic-bezier(.22,.61,.36,1),
        visibility .25s ease;

    z-index: 9999;

}

.lightbox img {

    max-width: 92vw;
    max-height: 92vh;

    border-radius: 6px;

    box-shadow: 0 15px 40px rgba(0,0,0,.6);

    transform: scale(.95);

    transition: transform 0.45s cubic-bezier(.22,.61,.36,1);

    cursor: default;

}

.lightbox.show {

    opacity: 1;
    visibility: visible;

}

.lightbox.show img {

    transform: scale(1);

}

/* =====================================
   LIGHTBOX ARROWS
===================================== */

.lightbox-arrow {

    position: absolute;

    top: 50%;
    transform: translateY(-50%);

    width: 54px;
    height: 54px;

    border: none;
    border-radius: 50%;

    background: rgba(255,255,255,.08);

    color: rgb(188, 188, 188);

    font-size: 34px;

    cursor: pointer;

    transition: .25s;
}

.lightbox-arrow:hover {

    background: rgba(255,255,255,.18);

}

.lightbox-arrow.left {

    left: 40px;

}

.lightbox-arrow.right {

    right: 40px;

}

/* =====================================
   LIGHTBOX MOBILE
===================================== */

@media (max-width: 600px) {

    .lightbox-arrow {

        width: 42px;
        height: 42px;

        font-size: 26px;

        z-index: 10000;

    }

    .lightbox-arrow.left {
        left: 10px;
    }

    .lightbox-arrow.right {
        right: 10px;
    }

    .certificate-grid {
        grid-template-columns: 1fr;
    }

    .certificate-grid .certificate-card:only-child {
    grid-column: 1 / -1;
    width: 100%;
}

}