@import "~bootstrap/dist/css/bootstrap.min.css";
@import "~swiper/swiper-bundle.min.css";
@-webkit-keyframes scale-up-center{0%{-webkit-transform:scale(.5);transform:scale(.5)}100%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes scale-up-center{0%{-webkit-transform:scale(.5);transform:scale(.5)}100%{-webkit-transform:scale(1);transform:scale(1)}}
@-webkit-keyframes scale-up-tl{0%{-webkit-transform:scale(.5);transform:scale(.5);-webkit-transform-origin:0 0;transform-origin:0 0}100%{-webkit-transform:scale(1);transform:scale(1);-webkit-transform-origin:0 0;transform-origin:0 0}}@keyframes scale-up-tl{0%{-webkit-transform:scale(.5);transform:scale(.5);-webkit-transform-origin:0 0;transform-origin:0 0}100%{-webkit-transform:scale(1);transform:scale(1);-webkit-transform-origin:0 0;transform-origin:0 0}}
@-webkit-keyframes scale-up-tr{0%{-webkit-transform:scale(.5);transform:scale(.5);-webkit-transform-origin:100% 0;transform-origin:100% 0}100%{-webkit-transform:scale(1);transform:scale(1);-webkit-transform-origin:100% 0;transform-origin:100% 0}}@keyframes scale-up-tr{0%{-webkit-transform:scale(.5);transform:scale(.5);-webkit-transform-origin:100% 0;transform-origin:100% 0}100%{-webkit-transform:scale(1);transform:scale(1);-webkit-transform-origin:100% 0;transform-origin:100% 0}}
@font-face {
    font-family: "Heavy";
    src: url("./assets/fonts/ObjectSans-Heavy.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "HeavySlanted";
    src: url("./assets/fonts/ObjectSans-HeavySlanted.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Regular";
    src: url("./assets/fonts/ObjectSans-Regular.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Slanted";
    src: url("./assets/fonts/ObjectSans-Slanted.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Intro BlackCAPS";
    src: url("./assets/fonts/IntroDemo-BlackCAPS.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Intro BlackInlineCAPS";
    src: url("./assets/fonts/IntroDemo-BlackInlineCAPS.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Intro Cond-BlackCAPS";
    src: url("./assets/fonts/IntroDemoCond-BlackCAPS.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Intro Cond-LightCAPS";
    src: url("./assets/fonts/IntroDemoCond-LightCAPS.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}


*{
    list-style-type: none;
    margin: 0;
    padding: 0;
    text-decoration: none;
    color: #ededf2;
}

body{
    background-color: #0d1117;
    font-size: 1rem;
    width: 100%;
    font-family: 'Heavy', monospace, sans-serif;
}

@media (min-width: 1024px) {
    body {
        font-size: 1rem;
    }
}

section {
    padding: 3.75em 0;
}

h1{
    font-size: 2.5em;
    -webkit-animation:scale-up-center .4s linear both;animation:scale-up-center .4s linear both;
}

h6{
    font-size: 1.375em;
}

p{
    font-size: 1.125em;
}

p,h6,li{
    font-family: 'Regular';
}

p, h6{
    margin-bottom: 0.25em;
}

time{
    font-size: 1.5em;
}

h1, time{
    color: #F44336;
    margin-bottom: 1em;
}

time{
    color: #ededf2;
}

h2 {
    font-family: 'Intro Cond-BlackCAPS';
    font-size: 1.25vw;
    margin-bottom: 24px;
}


header {
    background-color: #151b23;
    background-repeat: no-repeat;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(./assets/img/служение_отечеству.png);
    background-size: cover;
    font-size: 1.25em;
    box-shadow: inset 0px -4px 0px 0px #0d1117;


    h1{
        font-size: 3.8125em;
        margin-bottom: 0.25em;
    }

    p{
        text-align: center;
        font-size: 1.525em;
        width: 20em;
        margin-bottom: 1em;
    }
    
    time{
        font-size: 2,745em;
        margin-bottom: 1.5em;
    }

    a{
        font-size: 1em;
    }

    p,time{
        -webkit-animation:scale-up-center .4s linear both;animation:scale-up-center .4s linear both;
    }

    section{
        height: 100dvh;
        transition: height 0.2s linear;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        backdrop-filter: blur(10px);
        padding: 0;

        div{
            -webkit-animation:scale-up-center .4s linear both;animation:scale-up-center .4s linear both;

            a{
                background-color: #1B1B1B;
                padding: 0.625em;
                border-radius: 0.75em;
    
                &:nth-child(1){
                    background-color: #F44336;
                    color: white;
                    border: none;
                }
            }
        }
    }

}

main,footer{
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (max-width: 1220px) {

    header {
        h1{
            font-size: 5vw;
            margin-bottom: 0.25em;
        }
    
        p{
            text-align: center;
            font-size: 2vw;
            width: 30%;
            margin-bottom: 1em;
        }
        
        time{
            font-size: 3.5vw;
            margin-bottom: 1.5em;
        }

        a{
            font-size: 1.75vw;
        }
    }
}

@media (max-width: 480px) {

    header {

        h1{
            font-size: 10vw;
        }

        p{
            font-size: 5vw;
            width: 80%;
        }
        
        time{
            font-size: 7.5vw;
        }

        a{
            font-size: 5.5vw;
    
            &:nth-child(2){
                display: none;
            }
        }
    }
}


.about article, iframe{
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #151b23;
    box-shadow: 13px 13px 20px 0px #00000065;
    border-radius: 30px;
    min-width: 15.8vw;
    min-height: 13vw;
    position: relative;
}

.about {
    display: grid;
    grid-template-columns: repeat(4, 0fr);
    grid-template-rows: repeat(4, minmax(auto, 1fr));
    gap: 24px;

    div{
        margin: 1.75vw;
    }

    div p{
        font-size: 1.14vw;
        text-align: justify;
    }

    article{

        &:nth-child(1){
            grid-column: span 2 / span 2;
            background-color: #f44336;
            -webkit-animation:scale-up-tl .4s linear both;animation:scale-up-tl .4s linear both;
                              }

        &:nth-child(2){
            width: 29.25vw;
            aspect-ratio: 1/1;
            grid-column: span 2 / span 2;
            grid-row: span 2 / span 2;
            grid-column-start: 3;
            -webkit-animation:scale-up-tr .4s linear both;animation:scale-up-tr .4s linear both;                       }

        &:nth-child(2) img{
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 30px;
        }

        &:nth-child(3) {
            grid-row-start: 2;
            -webkit-animation:scale-up-tl .4s linear both;animation:scale-up-tl .4s linear both;
        }

        &:nth-child(4) {
            grid-row-start: 2;
            -webkit-animation:scale-up-tl .4s linear both;animation:scale-up-tl .4s linear both;
        }

        &:nth-child(4) img{
            max-width: 80%;
            max-height: 80%;
            top: 50%;
            left: 50%; 
            transform: translate(-50%, -50%);
            position: absolute;
        }

        &:nth-child(5) {
            grid-column: span 2 / span 2;
            grid-column-start: 3;
            grid-row-start: 3;
            background-color: #ff5722;
            -webkit-animation:scale-up-tr .4s linear both;animation:scale-up-tr .4s linear both;                       
        }

        &:nth-child(6) {
            grid-column: span 2 / span 2;
            grid-column-start: 3;
            grid-row-start: 4;
            -webkit-animation:scale-up-tr .4s linear both;animation:scale-up-tr .4s linear both;                   }
                       
        &:nth-child(7) {
            grid-column: span 2 / span 2;
            grid-row: span 2 / span 2;
            grid-column-start: 1;
            grid-row-start: 3;
            box-shadow: none;
            -webkit-animation:scale-up-tl .4s cubic-bezier(.39,.575,.565,1.000) both;animation:scale-up-tl .4s cubic-bezier(.39,.575,.565,1.000) both
            
            position: relative;
            width: 100%;
            overflow: hidden;
                       }

           }
       }

iframe{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.days {

    article{
        width: 61.25vw;
        height: 31.25vw;
        background-color:  #151b23;
        box-shadow: 13px 13px 20px 0px #00000065;
        border-radius: 30px;
        display: flex;
        -webkit-animation:scale-up-center .4s linear both;animation:scale-up-center .4s linear both;

        div{
            &:nth-child(1){
                width: 65%;
                height: 100%;
                border-radius: 30px;
            }

            &:nth-child(2){
                width: 35%;
                padding: 24px;
                display: flex;
                flex-direction: column;
                justify-content: space-between;
                align-items: center;
            }
        }
    }
    
    img{
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 30px;
    }

    li{
        width: 250px;
        font-size: 1.14vw;
        list-style: auto;
        margin-bottom: 12px;
    }
    
    button{
        display: flex;
        width: 16.45vw;
        height: 3.165vw;
        background-color: #F44336;
        border-radius: 30px;
        justify-content: center;
        align-items: center;
        border: none;
        font-size: large;
    }
    
    button:active {
        background-color: #f44336b8;
    }
}

.days_choice{
    display: flex;
    justify-content: flex-end;
    width: 100%;

    button{
        padding: 12px;
        margin: 15px;
        width: 60px;
        height: 60px;
        border-radius: 30px;
        border: none;
        background-color: #151b23;
        font-size: 24px;
    }
    
    button:active {
        background-color: #151b23a3;
    }
}


.timetable{
    div:nth-child(1) {
        width: 784px;
    }

    article{
        gap: 5em;
        display: flex;
        justify-content: space-around;
        -webkit-animation:scale-up-center .4s linear both;animation:scale-up-center .4s linear both;

        .timetable_info{
            width: 100%;
        }

        .timetable_info.separation{
            margin: 10% 0;
            width: 3px;
            border-radius: 30px;
            background-color: #a3a3b2;
        }

    }

    h2{
        font-size: 32px;
    }

    h3{
        margin-top: 32px;
        border-bottom: 3px solid;
        padding-bottom: 10px;
    }

    h4{
        margin-top: 20px;
    }

    p,h3,h4{
        font-size: 24px;
        text-align: justify;
    }

    p{
        margin: 12px 0;
        font-size: 18px;
    }

    li:nth-child(4) h3:nth-child(1){
        border: none;
    }
}

@media (min-width: 1920px) {
    .about article, iframe{
        min-width: 305px;
        min-height: 250px;
    }

    .about{
        height: 1144px;

        article{
            &:nth-child(2){
                width: 560px;
                        }
                }

        div{
            margin: 33.6px;

            p{
                font-size: 22px;
            }       
        }
      
        }
    
    h2{
        font-size: 24px;
    }

    .days {
        article {
            width: 1218px;
            height: 615px;
                }
        
        li {
            font-size: 22px;
           }

        #more-info-btn {
            width: 315px;
            height: 60.75px;
        }

    }

}

@media (min-width: 1280px) {

    .timetable{
        div:nth-child(1){
            width: 1218px;
        }

        p{
            font-size: 18px;
        }
    }

}

@media (max-width: 1580px) {
    .about article, iframe{
        min-width: 240px;
        min-height: 209px;
    }

    .about{
        article{
            &:nth-child(2){
                width: 440px;
                        }
                }

        div p{
                font-size: 1.125em;
            }
        }
    
    h2{
        font-size: 1.25em;
    }

    .days {
        article {
            width: 968px;
            height: 459.9px;
                }
        
        li {
            font-size: 1.125em;
           }

        #more-info-btn {
            width: 260px;
            height: 50px;
        }
    }
}


.partners {
    border-bottom: 1px solid #464545b0;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    height: 96px;
    width: 100%;

    padding: 0;

    img{
        max-width: 100%;
        max-height: 100%;
        filter: grayscale(100%);
        -webkit-animation:scale-up-center .4s linear both;animation:scale-up-center .4s linear both;
    }

    div{
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

#partners1{
    max-width: 90%;
    max-height: 90%;
}

#partners3{
    max-width: 80%;
    max-height: 80%;
}

footer{
    section{
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, 1fr);
        gap: 24px;

        article{
            height: 180px;
            width: 450px;
            background-color: #151b23;
            border-radius: 30px;
            box-shadow: 13px 13px 20px 0px #00000042;
            cursor: pointer;
            -webkit-animation:scale-up-center .4s linear both;animation:scale-up-center .4s linear both;

            h5{
                font-size: 1.1em;
                color: #a3a3b2;
            }

            h6{
                font-size: 1.1em;
            }   

            p{
                font-family: 'HeavySlanted';
                font-size: 1.7em;
            }

            a{
                display: flex;
                padding: 20px;
                height: 82%;
                flex-direction: column;
                justify-content: space-between;

                div{
                    display: flex;
                    flex-direction: column;
                    gap: 6px;
                }

                .social_network{
                    display: flex;
                    align-items: flex-end;
                    justify-content: space-between;
                }
            }
            
            &:nth-child(2){
                grid-column-start: 1;
                grid-row-start: 2;
            }
            &:nth-child(3){
                grid-column-start: 2;
                grid-row-start: 1;
            }
            &:nth-child(4){
                grid-column-start: 3;
                grid-row-start: 1;
            }
            &:nth-child(5){
                width: 100%;
                grid-column: span 2 / span 2;
            }
        }

    }
}

footer article:hover{
    background-color: #0d1116;
    transition: 0.3s ease-out;
}

.social_network{
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-around;
}

.social_network img{
    height: 32px;
    aspect-ratio: 1/1;
}

@media (max-width: 1440px) {
    footer section {
        grid-template-columns: 1fr;

        article:nth-child(3),
        article:nth-child(4) {
            grid-column: auto;
            grid-row: auto;
        }
    }
}

@media (max-width: 1023px) {

    .about {
        display: grid;
        grid-template-columns: repeat(2, 1fr); 
        grid-auto-flow: dense; 
        gap: 16px; 
        width: 457px;

        div {
            margin: 5vw;
        }

        article,iframe{
            width: 457px;
            height: 100%;
        }
    }

.about article:nth-child(2) {
    width: 457px;
    grid-column: span 2; 
    grid-row: 6; /
}


.about article:nth-child(4) {
    grid-column: span 2; 
    grid-row: 5; */
}

.about article:nth-child(5) {
    grid-column: span 2; 
    grid-row: 7;
}

.about article:nth-child(6) {
    grid-column: span 2;
    grid-row: 8; 
}

.about article:nth-child(7) {
    aspect-ratio: 1 / 1;
    width: 457px;
}

.days {
    & article {
        width: 95vw;

        & div {
            &:nth-child(2) {
                width: 50%;
            }
        }
    }
}
}

@media (max-width: 580px) {

        .about {
            width: 95vw;

            article,iframe{
                width: 95vw;
            }
        }

    .about article:nth-child(2) {
        width: 95vw;
    }

    .about article:nth-child(7) {
        aspect-ratio: 1 / 1;
        width: 95vw;
    }
}

@media (max-width: 800px) {
    .days {
        
        img {
            aspect-ratio: 4 / 3;
            width: 100%;
            height: auto;
        }

        & article {
            display: flex;
            width: 457px;
            height: 806px;
            flex-direction: column;

            & div {
                &:nth-child(1) {
                    aspect-ratio: 4 / 3;
                    width: 100%;
                    border-radius: 30px;
                }
                
                &:nth-child(2) {
                    height: 100%;
                    width: 90%;
                }

            }
        }
    }
    .days_choice {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .days {
        
        img {
            aspect-ratio: 4 / 3;
            width: 100%;
            height: auto;
        }

        & article {
            display: flex;
            width: 95vw;
            height: 100%;
            flex-direction: column;

            & div {
                &:nth-child(1) {
                    aspect-ratio: 4 / 3;
                    width: 100%;
                    border-radius: 30px;
                }
                
                &:nth-child(2) {
                    height: 100%;
                    width: 85%;

                    li {
                        list-style: none;
                    }
                }

            }
        }
    }
    .days_choice {
        justify-content: flex-start;
    }
}


@media (max-width: 960px) {
    footer section {
        grid-template-columns: 1fr;
    

        article {
            width: 46.875vw;
            height: 18.75vw;
        }

        a{
            padding: 1.4vw;
        }

        article:nth-child(3),
        article:nth-child(4) {
            grid-column: auto;
            grid-row: auto;
        }

        .social_network img {
            height: 3.33vw;
        }
    }
}

@media (max-width: 800px) {
    .timetable {
        div:nth-child(1) {
            width: 95vw;
        }
        article {
            flex-wrap: wrap;

            .timetable_info.separation{
                display: none;
            }
        }
    }

    footer{
        section {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 16px;
    
            article {
                width: 95vw; 
                height: 150px; 
                padding: 16px;
                box-sizing: border-box; 
    
                a {
                    padding: 12px;
                }

                h5,h6{
                    font-size: 1rem;
                }

                p{
                    font-size: 1.5rem;
                }

                p,h5,h6{
                    margin-bottom: 0;
                }
            }

            .social_network img {
                height: 26.5px;
                width: 26.5px;
            }
        }
    } 
}

body.modal-open::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 999;
    pointer-events: none;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;


    .modal-content {
        aspect-ratio: 16 / 9;
        position: relative;
        background: #0d1117;
        padding: 64px;
        border-radius: 30px;
        max-width: 1600px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease;
        margin: 2vw;
    }

    .modal-content img {
        max-width: 100%;
        border-radius: 10px;
    }

    .modal-slide {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 20px;
    }

    .modal-text {
        max-width: 40%;
        margin-right: 64px;
        text-align: justify;
    }

    .modal-slide img {
        aspect-ratio: 4/3 ;
        object-fit: cover;
        width: 60%; 
        border-radius: 16px;
    }

    .modal-nav {
        position: absolute;
        padding: 32px;
        bottom: 20px;
        left: 20px; 
        display: flex;
        gap: 8px; 
        z-index: 1010;
    }

    h2{
        font-size: 42px;
        margin-bottom: 48px;
        color:  #f44336;
    }

    p{
        font-size: 26.5px;
    }

    .close {
        position: absolute;
        top: 32px;
        right: 48px;
        font-size: 40px;
        color: #333;
        background: none;
        border: none;
        cursor: pointer;
        transition: color 0.3s;
    }

    .close:hover {
        color: #F44336;
    }

    .dot {
        width: 12px;
        height: 12px;
        background-color: #bbb; 
        border-radius: 50%;
        transition: background-color 0.3s ease;
    }

    .dot.active {
        background-color: #F44336; 
    }

    .modal-controls {
        position: absolute;
        bottom: 20px;
        right: 20px; 
        display: flex;
        gap: 10px;
    }

    body.modal-open {
        overflow: hidden; 
    }


    button{
        padding: 12px;
        margin: 15px;
        width: 60px;
        height: 60px;
        border-radius: 30px;
        border: none;
        background-color: #151b23;
        font-size: 24px;
    }

    button:active {
        background-color: #151b23a3;
    }

    button:focus {
        outline: none;
    }

    #modal-prev, #modal-next {
        margin: 10px;
    }
}

@media (max-width: 1980px) {
    .modal{
        h1{
            font-size: 2.1875vw;
        }

        p{
            font-size: 1.35vw;
        }

        .dot {
            width: 0.78vw;
            height: 0.78vw;
        }

        button {
            padding: 0.62vw;
            margin: 0.78vw;
            width: 3.12vw;
            height: 3.12vw;
        }
    }
}

@media (max-width: 1219px) {
    .modal{
        .modal-content {
            max-width: 555.5px;
        }

        .modal-slide {
            display: flex;
            flex-direction: column-reverse;
        }

        .modal-slide img {
            width: 100%;
        }

        .modal-text {
            max-width: 100%;
            margin: 0;
        }

        h2{
            font-size: 32px;
        }

        p{
            font-size: 16px;
            margin-bottom: 5vw;
        }

        .dot {
            width: 8px;
            height: 8px;
        }

        button {
            width: 40px;
            height: 40px;
        }
    }
}

@media (max-width: 580px) {
    .modal{
        .modal-content {
            max-width: 100%;
        }

        h2{
            font-size: 24px;
        }

        p{
            font-size: 2.75vw;
        }
    }
}
