.certificates {
    padding: 0 24px 200px;
}

.certificates,
.certificates * {
    box-sizing: border-box;
}

.certificates__container {
    width: 100%;
    max-width: 1680px;
    min-width: 0;
    margin: 0 auto;
}

.certificates__slider {
    width: 100%;
    overflow: hidden;
    padding: 12px 0 24px;
}

.certificates__slide {
    min-width: 0;
    height: auto;
}

.certificates__item {
    display: block;
    width: 100%;
    aspect-ratio: 594 / 847;
    overflow: hidden;
    border: 12px solid #fff;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 20px -8px rgb(15 58 140 / 16%);
    cursor: zoom-in;
}

.certificates__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.certificates__hidden {
    display: none !important;
}

.certificates__controls {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 8px;
}

.certificates__controls button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #09204b;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

.certificates__controls button:disabled {
    opacity: 0.35;
    cursor: default;
}

.certificates__controls .swiper-button-lock {
    display: none;
}

.certificates__item:focus-visible,
.certificates__controls button:focus-visible {
    outline: 2px solid #09204b;
    outline-offset: 4px;
}

@media (max-width: 800px) {
    .certificates {
        padding: 0 16px 64px;
    }

    .certificates__item {
        border-width: 8px;
    }
}

@media (max-width: 400px) {
    .certificates__item {
        border-width: 6px;
    }
}

.certificates__container h2 {
	font-weight: 600;
	font-size: 40px;
	line-height: 48px;
	margin: 120px 0 64px 0;
}

.certificates {
    padding-bottom: 64px;
}

.certificates .certificates__slider,
.certificates .swiper-wrapper,
.certificates .certificates__slide {
    height: auto;
}

.certificates .swiper-wrapper {
    align-items: flex-start;
}

.certificates__footer { display: none; }

@media (max-width: 599px) {
    .certificates.certificates--home {
        padding: 64px 12px;
    }

    .certificates--home .certificates__container h2 {
        margin: 0 0 32px;
        font-size: clamp(21px, 6.4vw, 24px);
        line-height: 1.2;
        text-align: center;
    }

    .certificates--home .certificates__slider { padding: 0 0 8px; }

    .certificates--home .certificates__item {
        border-width: 4px;
        border-radius: 8px;
    }

    .certificates--home .certificates__footer {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 8px 12px;
        margin-top: 12px;
    }

    .certificates--home .certificates__pagination:not(.swiper-pagination-lock) {
        position: static;
        display: flex;
        flex: 1 1 112px;
        align-items: center;
        gap: 6px;
        min-width: 0;
        max-width: 144px;
    }

    .certificates__pagination .swiper-pagination-bullet {
        position: relative;
        flex: 1 1 12px;
        height: 24px;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        opacity: 1;
    }

    .certificates__pagination .swiper-pagination-bullet::before {
        position: absolute;
        inset: calc(50% - 1px) 0 auto;
        height: 2px;
        background: #ccd3dd;
        content: "";
    }

    .certificates__pagination .swiper-pagination-bullet-active { flex-grow: 3; }
    .certificates__pagination .swiper-pagination-bullet-active::before { background: #09204b; }

    .certificates__all {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        min-height: 32px;
        margin-left: auto;
        color: #09204b;
        font-size: 14px;
        text-decoration: none;
    }

    .certificates__all-icon {
        display: grid;
        width: 24px;
        height: 24px;
        place-items: center;
        border-radius: 50%;
        background: #09204b;
        color: #fff;
    }
}
