
/* вывод грантов */

.grants-wrapper{
    width: 100%;
    padding: 0 96px;
}

.grants {
    max-width: 1400px;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-areas:
        "zone_1 zone_2 zone_right_img zone_right_img"
        "zone_1 zone_2 zone_3 zone_4"
        "zone_left_img zone_left_img zone_3 zone_4"
        "zone_last_grant zone_last_grant zone_last_grant zone_last_grant";
    gap: 13px;
    justify-items: center;
    margin: 0 auto;
}

.grants .zone_1{
    grid-area: zone_1;
}

.grants .zone_2{
    grid-area: zone_2;
}

.grants .zone_3{
    grid-area: zone_3;
}

.grants .zone_4{
    grid-area: zone_4;
}

.grants .zone_right_img{
    grid-area: zone_right_img;
    margin-bottom: 48px;
}

.grants .zone_left_img{
    grid-area: zone_left_img;
    margin-bottom: 140px;
    width: 100%;
}

.grants .zone_last_grant{
    grid-area: zone_last_grant;
}

.grants > :nth-child(1),
.grants > :nth-child(2) {
    grid-column: span 1;
} 

.grants > :nth-child(3) { 
    grid-column: span 2; 
}

.grants > :nth-child(4) {
    grid-column: span 2;
} 

.grants > :nth-child(5),
.grants > :nth-child(6) {
    grid-column: span 1;
}

.zone_left_grant {
    width: 480px;
    display: flex;
    column-gap: 8px;
}

.zone_right_img{
    display: flex;
    justify-content: right;
}

.zone_left_img{
    display: flex;
    justify-content: left;
}

.zone_right_img img {
    width: 100%;
    max-width: 480px;
    height: auto;
}

.zone_left_img img {
    width: 100%;
    max-width: 400px;
    height: auto;
}

/*.zone_right_img {*/
/*    margin: 0 0 64px 93px;*/
/*}*/

/*.zone_left_img {*/
/*    margin: 64px 0 0 0;*/
/*}*/

.zone_right_grant {
    width: 497px;
    display: flex;
    column-gap: 8px;
}

.grant_content span:first-child{
    margin: 0 0 8px 0;
    width: fit-content;
    display: block;
    font-size: 18px;
    font-weight: 400;
    font-family: "Ony One";
    line-height: 114.9%;
}

.grant_content span:first-child a{
    color: #313332;
}

.grant_content a {
    text-decoration: none;
}

.grant_content {
    display: block;
    width: fit-content;
    text-decoration: none;
    margin-bottom: 16px;
}

.grant_content span:last-child{
    margin: 0;
    width: 100%;
    display: block;
    font-size: 15px;
    font-weight: 400;
    font-family: "Ony One";
   
    line-height: 100%;
}

.grant_content span:last-child a {
    color: #AD83FF;
}

.grant_content .card_grant{
    font-size: 18px;
}

.grant_content .card_grant_date{
    font-size: 15px;
}

/*.grants .zone_1, .grants .zone_2, .grants .zone_3, .grants .zone_4 {*/
/*    width: 230px;*/
/*}*/

.zone_last_grant {
    width: 100%;
    display: grid;
    gap: 13px;
    grid-template-columns: repeat(4, 1fr);
}

.grants-first, .grants-secend {
    width: 100%;
    display: flow-root;
}

.grants-secend {
    flex-direction: row-reverse;
}

.grants-text {
    text-align: center;
    background: #fff;
    margin: 0 auto;
    padding-bottom: 48px;
    max-width: 620px;
}

h1 {
    margin-bottom: 0;
}

.grants-text p {
    margin: 8px auto 0 auto;
    font-size: 18px;
    line-height: 114.9%;
}

.grants-load-more {
    display: none;
}

@media(max-width: 1200px){
    .zone_right_img img {
        max-width: 400px;
    }
    
    .grants .zone_left_img{
        margin-bottom: 30px;
    }
    
    .zone_left_img img {
        max-width: 442px;
    }
}

@media (max-width: 1100px) {
    .grants-wrapper{
        padding: 0 32px;
    }
    
    .grants {
        /*max-width: 776px;*/
        width: 100%;
        grid-template-columns: repeat(3, 1fr);
        grid-template-areas: 
        "zone_1 zone_2 zone_right_img"
        "zone_left_img  zone_3 zone_4"
        "zone_last_grant zone_last_grant zone_last_grant";
    }
    
    .grants > :nth-child(3) { 
        grid-column: span 1; 
    }
    
    .grants > :nth-child(4) {
        grid-column: span 1;
    } 
    
    .grants-first, .grants-secend {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .zone_right_img {
        margin: 0;
        display: flex;
        align-items: center;
    }
    
    /*.zone_right_img img {*/
    /*    display: block;*/
    /*    width: 277px;*/
    /*    height: 268px;*/
    /*}*/
    
    .zone_left_img {
        margin: 0;
        display: flex;
        align-items: center;
    }
    
    /*.zone_left_img img {*/
    /*    width: 100%;*/
    /*}*/
    
    .zone_last_grant {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 700px) {
    .grants-wrapper{
        background-color: #ffffff;
    }
    
    .grants-wrapper{
        padding: 0 13px 56px;
    }
    
    .grants{
        position: relative;
        max-width: 100%;
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    
    .grants>*{
        background-color: #ffffff;
    }
    
    h1 {
        margin: 0 0 8px 0;
    }
    
    .zone_right_grant {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(1, 1fr);
    }
    
    .grants-text p {
        margin: 0;
        font-size: 16px;
    }
    
    .grants-text {
        max-width: 100%;
        margin-top: 280px;
        text-align: start;
        padding-bottom: 24px;
    }
    
    .grant_content .card_grant{
        font-size: 16px;
    }
    
    .grant_content .card_grant_date{
        font-size: 14px;
    }
    
    .grants .zone_1, .grants .zone_2 {
        width: 100%;
    }
    
    .zone_left_grant {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(1, 1fr);
    }
    
    .zone_right_img {
        display: none;
    }
    
    .zone_last_grant {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .zone_left_img {
        width: 100%;
        position: fixed;
        inset: 140px 0 auto 0;
        z-index: -1;
    }

    .zone_left_img img {
        width: 100%;
        height: 240px;
        padding: 0 13px;
        object-fit: cover;
    }
    
    
    .grant-card-item.mobile-hidden {
        display: none;
    }

    .grants-load-more {
        display: block;
        margin: 24px auto 0;
        padding: 13px 27.15px;
        border: none;
        background: #ECECEC;
        color: #313332;
        font-family: "Ony One";
        font-weight: 400;
        font-size: 18px;
        cursor: pointer;
    }
}

/* один грант */

.single_grant h1,
.single_grant h2{
    text-align: center;
    margin: 0px 0 32px;
}

.grant_button {
    width: fit-content;
    height: fit-content;
    margin: 32px auto;
}

.grant_button a {
    display: flex;
    background: #AD83FF;
    color: #fff;
    justify-content: center;
    align-items: center;
    width: 254px;
    height: 48px;
    border: none;
    cursor: pointer;
}

.single_grant .single_grant_img {
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}

.grant_description {
    margin: 0 auto;
    max-width: 1245px;
    text-align: start;
}

.grant_description p:last-of-type {
    margin-bottom: 0;
}

.grant_documents{
    margin: 0 auto;
    max-width: 1245px;
}

.grant_documents .doc_card a {
    
}

.grant_documents .doc_card {
    width: 381px;
}

.grant_description p{
    font-size: 18px;
    line-height: 114.9%;
    color: #313332;
}

.grant_description a{
    font-size: 18px;
}

@media(max-width: 1000px){
    h2{
        display: none;
    }
}


/* ================================ Single gallery slider (grants) ================================ */ 

.single-gallery-slider { 
    
    position: relative;
    margin-top: 1vw;
} 

/* Изображение */

.single-gallery-slider .slide-image img {
    width: 100%;
    height: auto;
    max-height: 700px;
    object-fit: contain;
}

/* Подпись */ 

.single-gallery-slider .slide-caption {
    margin-top: 0.7vw;
    color: #313332; 
    font-family: "Ony One";
    font-weight: 400;
    font-size: clamp(15px, 1vw, 40px);
    line-height: 100%;
    text-align: center;
} 

/* Стрелки */

.single-gallery-slider + .swiper-button-prev,
.single-gallery-slider + .swiper-button-next,
.slider-outer-container .single-gallery-slider ~ .swiper-button-prev,
.slider-outer-container .single-gallery-slider ~ .swiper-button-next {
    color: #AD83FF;
    background-color: #ffffff;
    border-radius: 50%;
    border: 0.1em solid #AD83FF;
    width: max(3.33vw, 44px); 
    height: max(3.33vw, 44px); 
    z-index: 999;
    transform: translateY(-4vw);
} 

/* Положение стрелок */ 

.slider-outer-container:has(.single-gallery-slider) .swiper-button-prev {
    left: -1.66vw;
} 

.slider-outer-container:has(.single-gallery-slider) .swiper-button-next { 
    right: -1.66vw;
} 

/* Иконки стрелок */ 


/* Кастомные стрелки */ 
/* Сбрасываем стандартные цвета и размеры Swiper */

.slider-outer-container .swiper-button-next, 
.slider-outer-container .swiper-button-prev { 
    color: #ffffff; 
    background-color: #ffffff; 
    border-radius: 50%;
    border: 0.1em solid #AD83FF; 
    
    /* margin-top: -20px; */
    width: max(3.33vw, 44px); 
    height: max(3.33vw, 44px); 
    z-index: 999 !important; 
    transform: translateY(-1vw);
} 

.swiper-autoheight, .swiper-autoheight .swiper-slide {
    height: 500px !important;
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slider-outer-container .swiper-button-prev { 
    left: -1.66vw;
} 

.slider-outer-container .swiper-button-next { 
    right: -1.66vw;
} 

.slider-outer-container .swiper-button-next:hover,
.slider-outer-container .swiper-button-prev:hover { 
    background-color: #f0f0f0;
} 

/* Убираем стандартные иконки-шестеренки Swiper*/ 
.slider-outer-container .swiper-button-next::after,
.slider-outer-container .swiper-button-prev::after { 
    font-size: clamp(16px, 1.2vw, 40px);
    font-weight: bold;
    color: #AD83FF;
} 

/* Пагинация */

.single-gallery-slider .swiper-pagination {
    position: absolute;
    bottom: -30px !important;
    left: 0;
    right: 0;
    text-align: center;
} 

/* Точки */

.single-gallery-slider .swiper-pagination-bullet {
    width: max(.7vw, 10px);
    height: max(.7vw, 10px);
    background-color: #ECECEC;
    opacity: 1;
} 

.single-gallery-slider .swiper-pagination-bullet-active {
    background-color: #AD83FF;
} 


@media(max-width: 1000px) {
    
    .single_grant_img, .grant_documents, .single_grant > h1:nth-of-type(2) {
        display: none;
    }
    
}

/* Мобильные */

@media(max-width:500px) {
    
    .single_grant h1 {
        text-align: start;
    }
    
    .grant_button {
        margin: 24px 0;
    }
    
    /*
        .single-gallery-slider { margin-top:20px; } .slider-outer-container:has(.single-gallery-slider) .swiper-button-next,
        .slider-outer-container:has(.single-gallery-slider) .swiper-button-prev {
            transform: translateY(-10vw);
        } 
        
        .single-gallery-slider .swiper-pagination {
            text-align:left;
            max-width:220px;
            margin:0 auto;
            bottom:0 !important; 
        }
    */
}

