/*
Theme Name:         WP-Start
Theme URI:          http://selin.com.ua
Description:        A WP-Start theme by <a href="http://selin.com.ua/">Serhii Mykulyn</a>.
Version:            1.0
Requires at least:  5.0
Author:             Serhii Mykulyn
Author URI:         http://selin.com.ua
License:            GNU General Public License v2 or later
License URI:        http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:        sel_theme
*/
.about-section .content-wrapper {
    display: flex;
    margin-top: 40px;
    margin-bottom: 120px;
}
.about-section .content-wrapper .about-text{
    padding-right: 80px;
    padding-top: 30px;
    padding-bottom: 50px;
    padding-left: 50px;
    font-size: 16px;
}
.about-text .read-more-button {
    background: #000;
    color: #fff;
    font-weight: bold;
    width: 190px;
    display: block;
    padding-top: 15px;
    padding-bottom: 15px;
    text-align: center;
    margin-top: 50px;

}
.about-section .about-image img {
    max-width: 510px;
    height: 330px;
}
/*  */
.whySwiper {
    margin-bottom: 110px;
}
.why-choose-us .container {
    position: relative;
}
.why-choose-us .page-title{
    margin-bottom: 50px;
}
.whySwiper .swiper-slide {
    text-align: center;
}
.why-choose-us .project-popup__prev {
    right: -3%;
}
.why-choose-us .project-popup__next {
    left: -3%;
}

/**/
.testimonials .container{
    position: relative;
}
.testimonialsSwiper {
    margin-top: 50px;
    margin-bottom: 150px;
}
.testimonialsSwiper .testimonial-card {
    padding-top: 20px;
    padding-bottom: 20px;
    padding-left: 30px;
    padding-right: 30px;
    box-sizing: border-box;
}
.head__sl {
    display: flex;
    justify-content: space-between;
}
.testimonials .project-popup__prev {
    right: -5%;
}
.testimonials .project-popup__next {
    left: -5%;
}

/**/
 
.tabs-nav {
    gap: 10px;
    list-style: none;
    padding: 0;
    margin-bottom: 50px;
    display: flex;
    flex-wrap: wrap; /* Позволяет перенос элементов на новую строку */

}
.tab-link {
    cursor: pointer;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #000;
    list-style: none;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    box-sizing: border-box;
}
.tabs-nav .tab-link.active{
    background: #000;
    color: #fff;
 }
/* Первые 5 элементов (первая строка) */
.tab-link:nth-child(-n+5) {
    flex: 1 0 18%; /* Примерно 5 элементов в ряд с учетом отступов */
}

/* Последние 4 элемента (вторая строка) */
.tab-link:nth-child(n+6) {
    flex: 1; /* Равномерное растягивание на всю ширину */
}
.tab-link:hover {
    background: #000;
    color: #fff;
}
.load-more-projects {
    margin:0 auto;
}
  
.projects-tabs .page-title {
    margin-bottom: 80px;
}
 

/**/
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

@media (max-width: 992px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}



@media (max-width: 600px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

.masonry__item .masonry__item-over {
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
  
.masonry__item:hover .masonry__item-over,
.masonry__item.hovered .masonry__item-over {
    opacity: 1;
    pointer-events: auto;
}
  
.masonry__item-title {
    font-size: 48px!important;
    text-align: center;
}

.projects-wrap {
    padding-top: 20px!important;
}



/**/
@media screen and (max-width: 699px) {
    .tab-link:nth-child(n+6) {
        flex: none;
    }
    .tab-link:nth-child(-n+5) {
        flex: none;
    }
    .about-section .content-wrapper {
        flex-direction: column;
    }
    .about-section .about-image img {
        height: auto;
        max-width: 100%;
    }
    .about-section .content-wrapper .about-text {
        padding: 0px;
    }
    .why-choose-us .project-popup__prev {
        right: -1%;
    }
    .why-choose-us .project-popup__next {
        left: -1%;
    }
    .testimonials .project-popup__prev {
        right: -1%;
    }
    .testimonials .project-popup__next {
        left: -1%;
    }
}