/* ============================================ */
/* Certificates Page Styles */
/* ============================================ */

@font-face {
    font-family: "Cera Pro";
    src: local("Cera Pro Regular"), local("CeraPro-Regular"),
        url("./fonts/CeraPro/CeraPro-Regular.woff") format("woff");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Cera Pro";
    src: local("Cera Pro Medium"), local("CeraPro-Medium"),
        url("./fonts/CeraPro/CeraPro-Medium.woff") format("woff");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

.certificates-page {
    font-family: "Cera Pro", "Cera Pro Regular", sans-serif;
}

.certificates-page .maxwidth-theme {
    max-width: 1450px;
    padding: 0 18px;
    margin: 0 auto;
}

/* ============================================ */
/* Certificate Blocks */
/* ============================================ */

.certificates-blocks-wrapper {
    display: flex;
    flex-direction: column;
}

.certificate-block {
    display: flex;
    padding: 24px;
    border-radius: 10px;
    gap: 20px;
    margin-bottom: 64px;
    align-items: stretch;
    background: #FFFFFF;
    border: 1px solid #F8F8F8;
}

.certificates-blocks-wrapper .certificate-block:nth-child(even) {
    background: #F8F8F8;
    flex-direction: row-reverse;
}

.certificate-block__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    max-width: 925px;
}

.certificates-blocks-wrapper .certificate-block:nth-child(odd) .certificate-block__content {
    padding-right: 68px;
}

.certificates-blocks-wrapper .certificate-block:nth-child(even) .certificate-block__content {
    padding-left: 68px;
}

.certificate-block__label {
    font-size: 14px;
    line-height: 1.2;
    color: #8A8A96;
    margin-bottom: -8px;
}

.certificate-block__title {
    font-size: 48px;
    font-weight: 500;
    text-transform: uppercase;
    line-height: 1.15;
    color: #3C3C50;
    margin: 0;
}

.certificate-block__description {
    font-size: 16px;
    line-height: 1.2;
    color: #636373;
    margin: 0;
}

.certificate-block__content ol {
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    list-style: none;
    counter-reset: list-counter;
}

.certificate-block__content ol li {
    padding: 16px 16px 16px 40px;
    font-size: 16px;
    line-height: 1.2;
    color: #3C3C50;
    margin: 0;
    border-radius: 10px;
    background: #FBFAF8;
    position: relative;
    counter-increment: list-counter;
}

.certificate-block__content ol li::before {
    content: counter(list-counter) ".";
    position: absolute;
    left: 16px;
    top: 16px;
    color: #3C3C50;
    display: block;
    font-size: 16px;
}

.certificates-blocks-wrapper .certificate-block:nth-child(even) .certificate-block__content ol li {
    background: #FFFFFF;
}

.certificate-block__footer {
    font-size: 16px;
    line-height: 1.2;
    color: #3C3C50;
    margin: 0;
}

.certificate-block__logo {
    width: 70px;
}

.certificate-block__text {
    color: #a3a3a8;
    font-size: 7px;
    max-width: 70px;
    line-height: normal;
}

.certificate-block__image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 468px;
}

.certificate-block__image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0px 30px 44px -20px rgba(61, 37, 37, 0.08);
}

.certificates-blocks-wrapper .certificate-block:nth-child(even) .certificate-block__image img {
    box-shadow: 0px 30px 44px -20px rgba(61, 37, 37, 0.24);
}

/* ============================================ */
/* Certificates Grid */
/* ============================================ */

.certificates-grid {
    padding: 0 0 46px 0;
}

.certificates-grid__title {
    font-size: 30px;
    font-weight: 500 !important;
    text-transform: uppercase;
    line-height: 1.15;
    color: #3C3C50;
    margin: 0;
}

/* ============================================ */
/* Certificates Hero */
/* ============================================ */

.certificates-hero {
    margin-top: 140px;
}

.certificates-hero__wrapper {
    background: linear-gradient(180deg, #ACADAC 0%, #A6A6A5 100%);
    overflow: hidden;
    position: relative;
    min-height: 564px;
    margin-bottom: 64px;
}

.certificates-hero__wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("/images/sertifikaty/hero-back.jpg") no-repeat center center;
    background-size: cover;
    z-index: 0;
}

.certificates-hero__wrapper .maxwidth-theme {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    min-height: 564px;
    padding: 40px 18px;
}

.certificates-hero__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    max-width: 840px;
}

.certificates-hero__title {
    font-size: 40px;
    font-weight: 500;
    text-transform: uppercase;
    line-height: 1.05;
    color: #FFFFFF;
    margin: 0;
}

.certificates-hero__subtitle {
    font-size: 18px;
    font-weight: 500;
    text-transform: uppercase;
    line-height: 1.2;
    color: #FFFFFF;
    margin: 0;
    max-width: 618px;
}

.certificates-hero__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 16px;
}

.certificates-hero__tag {
    padding: 8px 24px;
    background: #FFFFFF;
    border-radius: 20px;
    font-size: 18px;
    font-weight: 500;
    text-transform: uppercase;
    line-height: 1.2;
    color: #C0AD96;
}

.certificates-hero__footer {
    font-size: 16px;
    line-height: 1.2;
    color: #FFFFFF;
    margin: 0;
}

/* ============================================ */
/* Certificates Promo */
/* ============================================ */

.certificates-promo__wrapper {
    background: url("/images/sertifikaty/certificates-promo.jpg") no-repeat center center;
    background-size: cover;
    position: relative;
    min-height: 387px;
    overflow: hidden;
}

.certificates-promo__wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(93deg, rgba(121, 141, 141, 0.80) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 0;
}

.certificates-promo__wrapper .maxwidth-theme {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    padding: 61px 0 104px;
}

.certificates-promo__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.certificates-promo__title {
    font-size: 30px;
    font-weight: 500;
    text-transform: uppercase;
    line-height: 1.15;
    color: #FFFFFF;
    margin: 0 0 28px 0;
    max-width: 415px;
}

.certificates-promo__text {
    font-size: 16px;
    line-height: 1.2;
    color: #FFFFFF;
    margin: 0 0 44px 0;
    max-width: 320px;
}

.certificates-promo__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #FFFFFF;
    color: #3C3C50;
    padding: 12px 20px 12px 24px;
    border-radius: 27px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
}

.certificates-promo__btn:hover {
    background: #F8F8FC;
}

.certificates-promo__btn-arrow {
    background: url("/images/sertifikaty/Arrow Right.svg") no-repeat center center;
    width: 13px;
    height: 10px;
}

/* ============================================ */
/* Responsive */
/* ============================================ */

@media (max-width: 1200px) {
    .certificate-block {
        padding: 20px;
    }

    .certificate-block__content {
        max-width: 100%;
        padding: 0 !important;
    }

    .certificates-blocks-wrapper .certificate-block:nth-child(odd) .certificate-block__content,
    .certificates-blocks-wrapper .certificate-block:nth-child(even) .certificate-block__content {
        padding: 0 !important;
    }

    .certificate-block__image {
        padding: 0 !important;
        width: 100%;
        justify-content: center;
    }

    .certificate-block__image img {
        max-width: 400px;
    }

    .certificates-hero__title {
        font-size: 30px;
    }

    .certificates-hero__subtitle {
        font-size: 16px;
    }

    .certificates-hero__tags {
        gap: 16px;
    }

    .certificates-hero__tag {
        font-size: 16px;
        padding: 6px 18px;
    }
}

@media (max-width: 1024px) {
    .certificate-block__image {
        max-width: 404px;
    }

    .certificates-hero__wrapper {
        margin-bottom: 40px;
    }

    .certificates-grid {
        padding: 0 0 34px 0;
    }

    .certificates-promo__wrapper,
    .certificates-promo__wrapper .maxwidth-theme {
        min-height: auto;
    }

    .certificates-promo__wrapper {
        padding: 60px 60px 104px;
    }

    .certificates-promo__title {
        max-width: 420px;
    }

    .certificates-promo__wrapper .maxwidth-theme {
        padding: 0;
    }

    .certificates-hero__wrapper {
        min-height: 350px;
    }

    .certificates-hero__wrapper .maxwidth-theme {
        min-height: 350px;
    }

    .certificates-hero__subtitle {
        font-weight: 500;
    }

    .certificates-hero__tag {
        font-weight: 500;
    }
}

@media (max-width: 991px) {
    .certificates-hero {
        margin-top: 0;
    }

    .certificate-block {
        margin-bottom: 40px;
        padding: 16px;
    }

    .certificate-block__title {
        font-size: 32px;
    }

    .certificate-block__image img {
        max-width: 320px;
    }

    .certificates-hero__wrapper .maxwidth-theme {
        min-height: 450px;
    }

    .certificates-hero__title {
        font-size: 24px;
    }

    .certificates-hero__subtitle {
        font-size: 15px;
        max-width: 100%;
    }

    .certificates-hero__tag {
        font-size: 14px;
        padding: 6px 14px;
    }

    .certificates-promo__text {
        max-width: 260px;
    }
}

@media (max-width: 767px) {
    .certificates-hero__wrapper {
        margin-bottom: 24px;
    }

    .certificates-grid {
        padding: 0 0 24px 0;
    }

    .certificate-block {
        flex-direction: column-reverse !important;
        padding: 24px 16px;
        margin-bottom: 24px;
        border-radius: 8px;
    }

    .certificate-block__content {
        padding: 0 !important;
        order: 2;
    }

    .certificates-blocks-wrapper .certificate-block:nth-child(odd) .certificate-block__content,
    .certificates-blocks-wrapper .certificate-block:nth-child(even) .certificate-block__content {
        padding: 0 !important;
        order: 2;
    }

    .certificate-block__image {
        padding: 0 0 16px 0 !important;
        order: 1;
        width: 100%;
        justify-content: center;
    }

    .certificate-block__image img {
        max-width: 320px;
    }

    .certificate-block__title {
        font-size: 48px;
    }

    .certificate-block__label {
        font-size: 14px;
    }

    .certificate-block__description {
        font-size: 16px;
    }

    .certificate-block__content ol li {
        font-size: 16px;
        padding: 12px 14px 12px 36px;
    }

    .certificate-block__content ol li::before {
        top: 12px;
    }

    .certificate-block__footer {
        font-size: 14px;
    }

    .certificates-hero__wrapper::before {
        background: url("/images/sertifikaty/hero-back-mobile.jpg") no-repeat center center;
        background-size: cover;
    }

    .certificates-hero__content {
        max-width: 325px;
    }

    .certificates-grid__title {
        font-size: 22px;
    }

    .certificates-hero__wrapper {
        min-height: 320px;
    }

    .certificates-hero__wrapper .maxwidth-theme {
        min-height: 320px;
        padding: 24px 12px;
    }

    .certificates-hero__content {
        gap: 20px;
    }

    .certificates-hero__title {
        font-size: 20px;
        max-width: 275px;
    }

    .certificates-hero__subtitle {
        font-size: 14px;
        font-weight: 400;
        text-transform: none;
        max-width: 275px;
    }

    .certificates-hero__tags {
        gap: 12px;
    }

    .certificates-hero__tag {
        font-size: 12px;
        padding: 4px 12px;
        border-radius: 14px;
    }

    .certificates-hero__footer {
        font-size: 12px;
        max-width: 275px;
    }

    .certificates-promo__wrapper {
        padding: 50px 25px 92px;
    }

    .certificates-promo__title {
        font-size: 28px;
        font-weight: 500;
        margin-bottom: 15px;
    }

    .certificates-promo__text {
        font-size: 16px;
        margin: 0 0 30px 0;
    }

    .certificates-promo__btn {
        font-size: 12px;
        padding: 10px 16px;
    }
}

@media (max-width: 430px) {
    .certificate-block__image img {
        max-width: 320px;
    }

    .certificates-hero__title {
        font-size: 20px;
    }

    .certificates-promo__btn {
        font-size: 11px;
        padding: 8px 14px;
    }
}
