@font-face {
    font-family: "Rubik";
    src: url("../fonts/Rubik/Rubik-VariableFont_wght.ttf");
}


:root {
    font-size: 16px;
    font-family: "Rubik", sans-serif;
}


body {
    margin: 0;
    padding: 0;
    background: rgb(239, 241, 246, 1);
    
}


#alert-danger, #alert-success {
    position: fixed;
    top: 2%;
    left: 50%;
    transform: translate(-50%, 0);
    padding: 20px;
    background-color: #f44336;
    color: white;
    z-index: 10;

    opacity: 0;
    display: none;
    transition: opacity 0.6s;
    min-width: 30%;
    width: 90%;
}

#alert-success {
    background-color: #04AA6D;
}

.alert-close {
  margin-left: 15px;
  color: white;
  font-weight: bold;
  float: right;
  font-size: 22px;
  line-height: 20px;
  cursor: pointer;
  transition: 0.3s;
  padding: 0 5px;
}

.alert-close:hover {
  color: black;
}


.wrapper-block {
    width: 100%;
}




#about {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    background: #2885DC;
    background: linear-gradient(180deg, rgba(40, 133, 220, 1) 0%, rgba(40, 133, 220, 1) 70%, rgba(255, 255, 255, 1) 100%);

    padding: 70px 0;
}

#about-plate {
    border-radius: 40px;
    background: #fff;
    box-sizing: border-box;
    box-shadow: 0 0 10px 0 rgba(85, 85, 85, 0.5);
    padding: clamp(15px, 5vw, 50px);

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px 40px;
}

#about-plate-left {
    position: relative;
    display: inline-block;
}

#about-plate-left img {
    display: block;
    border-radius: 20px;
    box-sizing: border-box;
    max-width: 280px;

}


#about-plate-left .img-plate {
    box-sizing: border-box;
    position: absolute;
    padding: 10px 15px;
    background: rgba(75, 66, 64, 0.8);
    color: #fff;
    line-height: 1.4;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 94%;
    left: 3%;
    font-size: 12px;

    display: none;
}

#about-plate-left .img-plate i {
    flex-shrink: 0;
    font-size: 22px;
}


#about-plate-left .img-plate:nth-child(2) {
    bottom: 70px;
}

#about-plate-left .img-plate:nth-child(3) {
    bottom: 10px;
}


.block-title {
    font-size: clamp(28px, 4vw, 3rem);
    font-weight: 500;
    margin: 0 0 15px 15px;
}

#about-list {
    list-style-type: none;
    padding-left: 0rem;
}

#about-list li {
    position: relative;
    color: #172337;
    font-size: clamp(16px, 2.5vw, 18px);
    line-height: clamp(18px, 2.5vw, 24px);
    padding-left: clamp(20px, 2.5vw, 30px);
    margin-bottom: 10px;
}

#about-list .marked-li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: clamp(4px, 2vw, 10px);
    height: clamp(4px, 2vw, 10px);
    background-color: #2e92ee;
    transform: rotate(45deg);
    border-radius: 2px;

}

#requests {
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
}


.requests-container {
    display: flex;
    justify-content: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 25px;
}

.request-element {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    max-width: 95%;
}


.request-element-img {
    background-color:  #EFF1F6;
    border-radius: 40px;
    background-size: cover;
    box-sizing: border-box;
    max-height: 180px;
    max-width: 100%;
    margin-bottom: 15px;
    object-fit: cover;

}

.request-element-title {
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 600;
    line-height: 24px;
    margin-bottom: 10px;
}

.request-element-description{
    font-size: clamp(14px, 1.6vw, 16px);
    font-weight: 400;
    line-height: clamp(19px, 2vw, 21px);
    color: #647A9F;
}


#services{
    padding-top: 50px;
    padding-bottom: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #fff 0%, #eff1f6 25%, #eff1f6 100%);
}


.services-container {
    display: flex;
    justify-content: center;
/*    align-items: start;*/
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;

    flex: 1 1 0;
}

.service-element {
    border-radius: 20px;
    background-color: #ffffff;
    box-sizing: border-box;
    box-shadow: 0 0 10px 0 rgba(85, 85, 85, 0.2);

    width: 95%;
    aspect-ratio: 1/0.9;

    display: flex;
    flex-direction: column;


    padding: 15px;
}


.service-label {
    color: #ffffff;
    font-size: 12px;
    background-color: #2885dc;
    border-radius: 30px;
    box-sizing: border-box;
    width: fit-content;
    padding: 3px 8px;
}

.service-title {
    color: #000000;
    font-size: 20px;
    font-weight: 500;

    margin: 10px 0;
}

.service-description {
    font-size: 14px;
    color: #172337;
    margin-bottom: 15px;
}


.service-main-block {
    box-sizing: border-box;
    border: 1px solid #172337;
    border-radius: 12px;

    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 15px;

    height: 45px;


    margin-top: auto;

}

.service-main-button {
    display: inline;
    box-sizing: border-box;
    background-color: #172337;
    font-size: 16px;
    font-weight: 400;
    color: #ffffff;
    border-radius: 12px;
    padding: 12px 40px;
    margin: -1px;

    text-decoration: none;

}


.service-main-text {
    display: inline;
    height: fit-content;
    font-size: 20px;
}

.service-secondary-button {
    box-sizing: border-box;
    background-color: #eff1f6;
    color: #172337;
    font-size: 18px;
    font-weight: 400;
    border-radius: 12px;
    padding: 12px 40px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: nowrap;

    text-decoration: none;
    height: 45px;

    margin-top: 10px;
}


#education {
    padding-top: 50px;
    padding-bottom: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #2885DC;

    box-sizing: border-box;
    border-radius: 40px 40px 0 0;
/*    background: linear-gradient(180deg, rgb(239, 241, 246, 1) 0%, rgba(40, 133, 220, 1) 50%, rgba(40, 133, 220, 1) 100%);*/
}

.education-container {
    display: flex;
    justify-content: center;
/*    align-items: start;*/
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;

    flex: 1 1 0;
}

.education-element {
    cursor: pointer;
    border-radius: 20px;
    background-color: #ffffff;
    box-sizing: border-box;
    box-shadow: 0 0 10px 0 rgba(85, 85, 85, 0.2);


    font-size: 14px;
    color: #172337;

    width: 95%;
/*    aspect-ratio: 1/0.9;*/


    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    position: relative;

    padding: 15px;

    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

.education-element i {
    position: absolute;
    bottom: 20px;
    right: 15px;
    color: #0f3457;

    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

.education-element:hover {
    background: #0f3457;
    color: #fff;
}

.education-element:hover i {
    color: #fff;
}



/* Screen xxl (Extra extra large) */
@media (min-width: 1400px) {
    .wrapper-block {
        max-width: 1160px;
    }

    #about-plate {
        flex-direction: row;
        justify-content: center;
        align-items: start;
    }
    #about-plate-left img {
        max-width: 360px;
    }
    #about-plate-left .img-plate {
        font-size: 16px;
    }
    #about-plate-left .img-plate:nth-child(2) {
        bottom: 80px;
    }
    .requests-container {
        gap: 20px 40px;
    }
    .request-element {
        max-width: 360px;
    }

    .services-container {
        gap: 40px;
        justify-content: start;
        align-items: stretch
    }

    .service-element {
        min-width: 360px;
        min-height: 320px;
        padding: 40px;
        flex: 1 1 0;
        aspect-ratio: unset;
    }

    .education-container {
        gap: 40px;
        justify-content: start;
        align-items: stretch
    }

    .education-element {
        min-width: 360px;
        min-height: 112px;
        padding: 20px 35px;
        flex: 0 1 0;
        aspect-ratio: unset;
    }
}

/* Screen xl (Extra large) */
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .wrapper-block {
        max-width: 1160px;
    }

    #about-plate {
        flex-direction: row;
        justify-content: center;
        align-items: start;
    }
    #about-plate-left img {
        max-width: 360px;
    }
    #about-plate-left .img-plate {
        font-size: 16px;
    }
    #about-plate-left .img-plate:nth-child(2) {
        bottom: 80px;
    }
    .requests-container {
        gap: 20px 40px;
    }
    .request-element {
        max-width: 360px;
    }
    .services-container {
        gap: 40px;
        justify-content: start;
        align-items: stretch
    }

    .service-element {
        min-width: 360px;
        min-height: 320px;
        padding: 40px;
        flex: 1 1 0;
        aspect-ratio: unset;
    }

    .education-container {
        gap: 40px;
        justify-content: start;
        align-items: stretch
    }

    .education-element {
        min-width: 360px;
        min-height: 320px;
        padding: 40px;
        flex: 1 1 0;
        aspect-ratio: unset;
    }
}

/* Screen lg (Large) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .wrapper-block {
        max-width: 620px;
    }

    #about-plate-left img {
        max-width: 360px;
    }
    #about-plate-left .img-plate {
        font-size: 16px;
    }
    #about-plate-left .img-plate:nth-child(2) {
        bottom: 80px;
    }
    .request-element {
        max-width: 300px;
    }

    .services-container {
        justify-content: start;
    }

    .service-element {
        min-width: 300px;
        min-height: 280px;
        flex: 0 1 0;
        aspect-ratio: unset;
    }

    .education-container {
        gap: 40px;
        justify-content: start;
        align-items: stretch
    }

    .education-element {
        min-width: 360px;
        min-height: 320px;
        padding: 40px;
        flex: 1 1 0;
        aspect-ratio: unset;
    }
}

/* Screen md (Medium) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .wrapper-block {
        max-width: 620px;
    }
    #about-plate-left img {
        max-width: 360px;
    }
    #about-plate-left .img-plate {
        font-size: 16px;
    }
    #about-plate-left .img-plate:nth-child(2) {
        bottom: 80px;
    }
    .request-element {
        max-width: 300px;
    }
    .services-container {
        justify-content: start;
    }
    .service-element {
        min-width: 300px;
        min-height: 280px;
        flex: 0 1 0;
        aspect-ratio: unset;
    }

    .education-container {
        gap: 40px;
        justify-content: start;
        align-items: stretch
    }

    .education-element {
        min-width: 360px;
        min-height: 320px;
        padding: 40px;
        flex: 1 1 0;
        aspect-ratio: unset;
    }
}

/* Screen sm (Small) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .request-element-img {
        max-height: 250px;
    }

    .request-element {
        max-width: 300px;
    }

    .service-element {
        min-width: 300px;
        min-height: 280px;
        flex: 0 1 0;
        aspect-ratio: unset;
    }

    .education-element {
        min-width: 360px;
        min-height: 320px;
        padding: 40px;
        flex: 1 1 0;
        aspect-ratio: unset;
    }
}