/* --- FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Roboto:wght@400;500;700&display=swap');

main {
    font-family: 'Inter', sans-serif;
    color: #676B6F; /* rgb(103, 107, 111) */
    font-size: 1rem; /* 16px */
}


/* --- HERO SECTION --- */
.hero {
    position: relative;
    height: 28.125rem; /* 450px */
    display: flex;
    align-items: center;
    color: #FFFFFF;
}

.hero__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(28, 28, 28, 0.2), rgba(28, 28, 28, 0.2)), url('https://placehold.co/1920x450/333333/FFFFFF?text=Hero+Background');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.hero__title {
    font-size: 3rem; /* 48px */
    font-weight: 700;
    line-height: 1.2;
    max-width: 67.1875rem; /* 1075px */
    margin-top: 5rem;
}

/* --- INTRO SECTION --- */
.intro {
    padding-top: 3.75rem; /* 60px */
    /* padding-bottom: 2.5rem; */ /* 40px */
}

.intro__text {
    font-size: 1rem; /* 16px */
    line-height: 1.5625rem; /* 25px */
    font-weight: 500;
}

.intro__text--bold {
    font-weight: 600;
    margin-bottom: 0.3125rem; /* 5px */
}

/* --- BENEFITS SECTION --- */
.benefits {
    padding-top: 2.5rem; /* 40px */
    padding-bottom: 7.5rem; /* 120px */
}

.benefits__title {
    font-size: 2.1875rem; /* 35px */
    font-weight: 800;
    color: #676B70;
    margin-bottom: 4.5rem; /* 82px */
}

.benefits__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem; /* 20px */
    justify-items: center;
}

.benefit-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 21.5625rem; /* 345px */
    margin-bottom: 4rem;
}

.benefit-card__icon {
    width: 3.75rem; /* 60px */
    height: 3.75rem; /* 60px */
    margin-bottom: 1.25rem; /* 20px */
}

.benefit-card__text {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem; /* 16px */
    font-weight: 500;
    line-height: 1.25rem; /* 20px */
    color: #666B70;
    max-width: 15.125rem; /* 242px */
    text-transform: uppercase;
}

.benefits__closing-text {
    margin-top: 2.5rem; /* 40px */
    font-size: 1rem; /* 16px */
    line-height: 1.5625rem; /* 25px */
    font-weight: 500;
}

/* --- DIRECTIVE INFO SECTION --- */
.directive-info {
    background-color: #F6F9FA;
    padding-top: 4rem; /* 65px */
    padding-bottom: 4rem; /* 120px */
    margin-bottom: 7.5rem;
}

.directive-info__title {
    font-size: 2.625rem; /* 42px */
    font-weight: 800;
    color: #676B70;
    margin-bottom: 1.25rem; /* 20px */
}

.directive-info__text {
    font-size: 1rem; /* 16px */
    font-weight: 600;
    line-height: 1.5625rem; /* 25px */
}

.directive-info__coverage {
    margin-top: 3.75rem; /* 60px */
}

.directive-info__subtitle {
    font-size: 1.875rem; /* 30px */
    font-weight: 800;
    color: #676B70;
    margin-bottom: 2.5rem; /* 40px */
}

.directive-info__grid-container {
    width: 100%;
}

.directive-info__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem; /* 20px */
    max-width: 90rem; /* 1440px */
    margin: 0 auto;
}

.directive-card {
    position: relative;
    border-radius: 0.375rem; /* 6px */
    overflow: hidden;
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 18.75rem; /* 300px */
    width: 100%;
    cursor: pointer;

}

.directive-card__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.directive-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(21, 21, 21, 0.55);
    z-index: 2;
    backdrop-filter: blur(3px);
    transition: background-color .3s ease, backdrop-filter .3s ease;
}

.directive-card:hover>img {
    transform: scale(1.05);
}

.directive-card>img {
    transition: transform .4s ease;
}

.directive-card:hover .directive-card__overlay {
    background-color: rgba(21, 21, 21, .6);
    backdrop-filter: blur(0px);
}

.directive-card__content {
    position: relative;
    z-index: 3;
    padding: 2.5rem; /* 40px */
}

.directive-card--large {
    flex-basis: 44.375rem; /* 710px */
}

.directive-card--small {
    flex-basis: 21.5625rem; /* 345px */
}

.directive-card--medium {
    flex-basis: calc((100% - 2.5rem) / 3); /* 40px */
}

.directive-card__icon {
    width: 3rem; /* 48px */
    height: 3rem; /* 48px */
    margin-bottom: 1.25rem; /* 20px */
}

.directive-card__title {
    font-size: 1.625rem; /* 26px */
    font-weight: 600;
    line-height: 1.2;
}

/* --- REGULATION SECTION --- */
.regulation {
    background: linear-gradient(180deg, #8C9299 0%, #676B6F 100%);
    padding: 5rem 0; /* 80px */
    color: #F7F7F7;
}

.regulation__container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6.25rem; /* 100px */
    max-width: 90rem; /* 1440px */
    margin: 0 auto;
    padding: 0 1.25rem; /* 20px */
}

.regulation__image-placeholder img {
    width: 30.4375rem; /* 487px */
    height: 41.375rem; /* 662px */
    display: block;
}

.regulation__content {
    width: 53.3125rem; /* 853px */
}

.regulation__title {
    font-size: 2.625rem; /* 42px */
    font-weight: 800;
    margin-bottom: 3.875rem; /* 62px */
}

.regulation__list {
    list-style: none;
}

.requirement-item {
    display: flex;
    align-items: flex-start;
    gap: 3.75rem; /* 60px */
}

.requirement-item:not(:last-child) {
    margin-bottom: 2rem; /* 32px */
}

.requirement-item__title {
    font-size: 1rem; /* 16px */
    font-weight: 700;
    line-height: 1.5625rem; /* 25px */
    color: #F6F9FA;
    width: 14.375rem; /* 230px */
    flex-shrink: 0;
    text-transform: uppercase;
}

.requirement-item__description {
    font-size: 1rem; /* 16px */
    font-weight: 400;
    line-height: 1.25rem; /* 20px */
    color: #F7F7F7;
    flex-grow: 1;
}

/* --- DETAILS SECTION --- */
.details {
    padding-top: 7.5rem; /* 120px */
    /* padding-bottom: 5rem; */ /* 80px */
}

.details__block {
    margin-bottom: 2.5rem; /* 40px */
}

.details__block:last-child {
    margin-bottom: 0;
}

.details__title {
    font-size: 1.875rem; /* 30px */
    font-weight: 800;
    color: #676B70;
    margin-bottom: 0.9375rem; /* 15px */
}

.details__title--large {
    font-size: 2.625rem; /* 42px */
}

.details__text {
    font-size: 1rem; /* 16px */
    font-weight: 500;
    line-height: 1.5625rem; /* 25px */
}

.details__text + .details__text {
    margin-top: 0.3125rem; /* 5px */
}

/* --- COLLABORATION SECTION --- */
.collaboration {
    padding-top: 5rem; /* 80px */
    padding-bottom: 3.5rem; /* 120px */
}

.collaboration__title {
    font-size: 2.625rem; /* 42px */
    font-weight: 800;
    color: #676B70;
    margin-bottom: 3.75rem; /* 60px */
}

.collaboration__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem; /* 20px */
}

.collaboration-card {
    border: 0.0625rem solid #E7E7E7; /* 1px */
    border-radius: 0.375rem; /* 6px */
    padding: 2.25rem 1.25rem; /* 36px 20px */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.collaboration-card__icon {
    width: 3.75rem; /* 60px */
    height: 3.75rem; /* 60px */
    margin-bottom: 0.9375rem; /* 15px */
}

.collaboration-card__title {
    font-family: 'Roboto', sans-serif;
    font-size: 1.25rem; /* 20px */
    font-weight: 600;
    color: #666B70;
    margin-bottom: 0.75rem; /* 12px */
    text-transform: uppercase;
}

.collaboration-card__text {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem; /* 16px */
    font-weight: 400;
    line-height: 1.2;
    color: #666B70;
}

.collaboration__closing-text {
    margin-top: 2.5rem; /* 40px */
    font-size: 1rem; /* 16px */
    font-weight: 400;
    line-height: 1.5625rem; /* 25px */
}

.directive-card:nth-child(1),
.directive-card:nth-child(6){
    max-width: 41rem;
}
.directive-card:nth-child(2),
.directive-card:nth-child(3),
.directive-card:nth-child(4),
.directive-card:nth-child(5){
    max-width: 21rem;
}
.directive-card:nth-child(7),
.directive-card:nth-child(8),
.directive-card:nth-child(9){
    max-width: 27.66rem;
}










/* --- СТИЛІ ДЛЯ СТОРІНКИ "СЕРТИФІКАЦІЯ ПРОДУКЦІЇ" --- */

/* --- Hero Section Modifications --- */
.hero--large {
    height: 37.5rem; /* 600px */
}

.page-product-certification .hero__background {
    background-image: linear-gradient(rgba(28, 28, 28, 0.2), rgba(28, 28, 28, 0.2)), url('https://placehold.co/1920x600/333333/FFFFFF?text=Hero+Background');
}

/* --- Advantages Section (New) --- */
.benefits-grid--five-cols {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem; /* 20px */
    margin-bottom: 3.75rem; /* 60px */
}

.advantage-card {
    border: 1px solid #E7E7E7;
    border-radius: 0.375rem; /* 6px */
    padding: 2.1875rem 0.5rem; /* 35px 8px */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: auto; /* 272px */
    height: 13.75rem; /* 220px */
}

.advantage-card__icon {
    width: 3.75rem; /* 60px */
    height: 3.75rem; /* 60px */
    margin-bottom: 1.875rem; /* 30px */
}

.advantage-card__text {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.2;
    color: #666B70;
    max-width: 16rem; /* 256px */
}

/* --- Certificate Types Section (New) --- */
.certificate-types {
    background-color: #F6F9FA;
    padding: 4.0625rem 0; /* 65px */
}

.certificate-types__title {
    font-size: 2.1875rem; /* 35px */
    font-weight: 800;
    color: #676B70;
    margin-bottom: 4.1875rem; /* 67px */
}

.certificate-types__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem; /* 20px */
}

.certificate-card {
    border: 1px solid #E7E7E7;
    border-radius: 0.375rem; /* 6px */
    padding: 1.875rem; /* 30px */
    height: 28rem; /* 448px */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #FFFFFF;
}

.certificate-card__title {
    font-size: 2.1875rem; /* 35px */
    font-weight: 800;
    color: #676B70;
    line-height: 1.2;
}

.certificate-card__text {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5625rem; /* 25px */
}

/* --- Regulation Section Modifications --- */
.page-product-certification .regulation__image-placeholder img {
    height: 32.375rem; /* 518px */
    width: 30.4375rem; /* 487px */
}

.page-product-certification .regulation__title {
    margin-bottom: 1.25rem; /* 20px */
}

.regulation__text {
    font-size: 1rem;
    line-height: 1.25rem; /* 20px */
    margin-bottom: 3.75rem; /* 60px */
}

.page-product-certification .requirement-item__title {
    width: 16.4375rem; /* 263px */
}

/* --- Factum Support Section (New) --- */
.factum-support {
    padding: 7.5rem 0; /* 120px */
}

.factum-support__container {
    display: flex;
    align-items: center;
    gap: 1.875rem; /* 30px */
}

.factum-support__text-content {
    flex-basis: 50%;
    max-width: 44.375rem; /* 710px */
}

.factum-support__image {
    flex-basis: 50%;
    display: flex;
    justify-content: flex-end;
}

.factum-support__image img {
    width: 100%;
    max-width: 38rem; /* 608px */
    height: auto;
    border-radius: 0.375rem; /* 6px */
}

.factum-support__title {
    font-size: 2.625rem; /* 42px */
    font-weight: 800;
    color: #676B70;
    line-height: 1.2;
    margin-bottom: 1.875rem; /* 30px */
}

.factum-support__text {
    font-size: 1rem;
    line-height: 1.5625rem; /* 25px */
}

/* --- Details Section Modifications --- */
.page-product-certification .details {
    padding-top: 0;
    padding-bottom: 2.5rem; /* 120px */
}

.page-product-certification .benefits__title {
    margin-bottom: 3rem;
}
.details__text--bold {
    font-weight: 700;
}

.details__list {
    list-style-type: none;
    padding-left: 0;
}

.details__list li {
    position: relative;
    padding-left: 1.25rem; /* 20px */
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5625rem; /* 25px */
}

.details__list li:not(:last-child) {
    margin-bottom: 0.3125rem; /* 5px */
}

.details__list li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 0;
    color: #676B6F;
    font-size: 1.25rem; /* 20px */
    line-height: 1.5625rem; /* 25px */
}














/* --- DIRECTIVES SECTION --- */
.directives {
    padding: 3.75rem 0; /* 60px */
    color: #676B70;
}

.directives__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3.75rem; /* 60px */
}

.directives__title {
    font-size: 2.625rem; /* 42px */
    font-weight: 800;
    line-height: 1.2;
    max-width: 39.125rem; /* 626px */
}

.directives__description {
    font-size: 1rem; /* 16px */
    font-weight: 500;
    line-height: 1.5625rem; /* 25px */
    color: #676B6F;
    max-width: 23.6875rem; /* 379px */
}

.directives__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.75rem 1.25rem; /* 28px 20px */
}

.directive-item {
    background-color: #FFFFFF;
    border: 1px solid #C7C7C7;
    border-radius: 0.375rem; /* 6px */
    padding: 1.25rem; /* 20px */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: auto;
    min-height: 16.5rem;
    position: relative;
    transition: all 0.3s;
}

.directive-item:hover {
    border-color: #000;
    transition: all 0.3s;
}

.directive-item__content {
    text-align: center;
    margin-top: 1.25rem; /* 20px */
}

.directive-item__title {
    font-size: 1.3rem; /* 22px */
    font-weight: 700;
    line-height: 1.4;
    color: #666B70;
    letter-spacing: -0.01em;
    margin-bottom: 1.5rem; /* 24px */
}

.directive-item__description {
    font-size: 1rem; /* 16px */
    font-weight: 500;
    line-height: 1.25rem; /* 20px */
    color: #666B70;
    letter-spacing: -0.01em;
}

.directive-item__button {
    display: block;
    width: 100%;
    padding: 0.875rem 0; /* 14px */
    border: 1px solid #C7C7C7;
    border-radius: 0.25rem; /* 4px */
    background-color: #FFFFFF;
    color: #666B70;
    font-size: 1rem; /* 16px */
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    letter-spacing: -0.01em;
    transition: all 0.3s;
    margin-top: 1.5rem; /* 24px */
}

.directive-item__button:hover {
    border-color: #000000;
    transition: all 0.3s;
}

.directive-item__arrow {
    position: absolute;
    top: 1.25rem; /* 20px */
    right: 1.25rem; /* 20px */
    width: 0.9375rem; /* 15px */
    height: 0.9375rem; /* 15px */
    transition: transform 0.3s;
}

.directive-item__arrow img {
    width: 100%;
    height: 100%;
}

.directive-item__button:after {
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 2;
    display: block;
    top: 0;
    left: 0;
}

.directive-item:hover .directive-item__arrow {
    transform: rotate(45deg);
    transition: transform 0.3s;
}


.benefits__title:empty, .benefits__closing-text:empty,
 .collaboration__title:empty, .collaboration__closing-text:empty {
    display: none;
}

/* section.benefits:not(content) {
    padding-bottom: 2rem;
} */





/* --- PARTNERS SECTION --- */
.partners {
    padding: 4rem 0; /* 120px */
    background-color: #FFFFFF;
}

.partners__header {
    margin-bottom: 4rem; /* 80px */
}

.partners__title {
    font-size: 2.625rem; /* 42px */
    font-weight: 800;
    color: #676B70;
    margin-bottom: 1.25rem; /* 20px */
}

.partners__description {
    font-size: 1rem; /* 16px */
    font-weight: 500;
    line-height: 1.5625rem; /* 25px */
    color: #676B6F;
}

.partners__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem; /* 20px */
}

.partner-card {
    background: linear-gradient(180deg, #A9ADB3 0%, #8C9299 100%);
    border-radius: 1.875rem; /* 30px */
    padding: 2.5rem 1.875rem; /* 40px 30px */
    height: 28.125rem; /* 450px */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: all 0.3s;
}

.partner-card__logo {
    display: block;
    max-width: 12.4375rem; /* 199px */
    height: auto;
    margin-bottom: 1.25rem; /* 20px */
}

.partner-card__content {
    color: #F6F9FA;
    margin-bottom: 2.5rem;
}

.partner-card__title {
    font-size: 1.25rem; /* 20px */
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.625rem; /* 10px */
}

.partner-card__text {
    font-size: 0.9375rem; /* 15px */
    font-weight: 400;
    line-height: 1.375rem; /* 22px */
    color: #FFFFFF;
}

.partner-card__arrow {
    position: absolute;
    bottom: 0; /* 40px */
    right: 0; /* 30px */
    width: 100%; /* 20px */
    height: 100%; /* 20px */
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    transition: all 0.3s;
}

.partner-card__arrow img {
    width: 100%;
    height: 100%;
}

.partners-main .collaboration {
    padding-top: 0;
}

.partners-main .collaboration__title {
    margin-bottom: 1rem;
}

.partners-main .collaboration__description {
    color: #676B6F;
    font-size: 1.25rem;
    font-style: normal;
    font-weight: 700;
    line-height: 1.25; 
    margin-bottom: 3rem;
}

.partners-main .collaboration-card {
    background: #F9F9F9;
}

.partners-main .collaboration-card__title {
    text-transform: unset;
    margin-bottom: 0;
}

.partner-card__arrow svg {
    position: absolute;
    right: 1.875rem;
    bottom: 2.5rem;
    transition: all 0.3s;
}

.partner-card:hover .partner-card__arrow svg {
    transform: rotate(-45deg);
    transition: all 0.3s;
}


h2 span, h3 span {
    color: rgba(103, 107, 112, 0.30);
}


.directive-info__grid.directive-info__grid-4 .directive-card {
    max-width: 42.1rem;
}

.directive-info__grid.directive-info__grid-5 .directive-card:nth-child(1){
    max-width: 42.1rem;
}
.directive-info__grid.directive-info__grid-5 .directive-card:nth-child(2){
    max-width: 42.1rem;
}
.directive-info__grid.directive-info__grid-5 .directive-card:nth-child(3){
    max-width: 27.66rem;
}
.directive-info__grid.directive-info__grid-5 .directive-card:nth-child(4){
    max-width: 27.66rem;
}
.directive-info__grid.directive-info__grid-5 .directive-card:nth-child(5){
    max-width: 27.66rem;
}


.directive-info__grid.directive-info__grid-7 .directive-card:nth-child(7){
    max-width: 100%
}






@media(max-width:992px) {
    .benefits-grid--five-cols {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .regulation__container {
        flex-direction: column;
        gap: 3rem;
    }
    .directives__description {
        display: none;
    }
    .directives__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .directives__header {
        margin-bottom: 2rem;
    }

    .directive-card {
        max-width: 100%!important;

    }
     .collaboration__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .partners__grid {
        grid-template-columns: repeat(1, 1fr);
    }
    
}

@media(max-width:767px) {
    .benefits-grid--five-cols {
        grid-template-columns: repeat(2, 1fr);
    }

    .regulation__content {
        width: 100%;
    }

    .requirement-item {
        flex-direction: column;
        gap: 0.5rem;
    }

    .page-product-certification .requirement-item__title {
        width: 100%;
    }

    .certificate-types__grid {
        grid-template: none;
    }
    
    .factum-support__container {
        flex-direction: column-reverse;
    }
    
    .factum-support {
        padding-bottom: 2rem;
        padding-top: 4rem;
    }
    
    .page-product-certification .regulation__image-placeholder img, .regulation__image-placeholder img {
        width: 100%;
        height: auto;
        max-width: 100%;
    }

    .benefits__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .benefit-card {
        min-width: 50%;
    }
}

@media(max-width:568px) {
    .benefits-grid--five-cols {
        grid-template-columns: repeat(1, 1fr);
    }
    h1, h2 {
        font-size: 1.66rem!important;
    }
    
    .certificate-card__title {
        font-size: 1.66rem;
    }
    
    section.benefits {
        padding-bottom: 4rem;
    }
    
    .certificate-types__title {
        margin-bottom: 2rem;
    }
    
    .regulation {
        padding-top: 4rem;
    }
    
    .page-product-certification .details {
        padding-bottom: 0;
    }

    .directives__grid, .collaboration__grid {
        grid-template-columns: repeat(1, 1fr);
    }
    .directives {
        padding-bottom: 0;
    }
    section.directive-info {
        margin-bottom: 4rem;
    }
    section.details {
        padding-top: 4rem;
    }
    .benefit-card__text {
        font-size: 0.7rem;
        line-height: 1.4;
    }
    .directive-card__title {
        font-size: 1.3rem;
    }
}












