/* === projIntro === */
.projIntro {
    position: relative;
}
.projIntro__img{
    width: 100%;
}
.projIntro__wrap {
    position: relative;
    display: inline-block;
    width: 100%;
}

.projIntro__wrap:before {
    position: absolute;
    z-index: 1;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    content: "";
    background: linear-gradient(180deg, #f4f0e6 0%, rgba(0,0,0,0) 70%);
}

.projIntro__img--mob {
    display: block;
    width: 100%;
}

.projIntro__img--dsc {
    display: none;
}

.projIntro__title {
    text-shadow: 0 0 3px #f4f0e6;
}

.projIntro__titleText {
    display: block;
    font-size: 65px;
    color: #3c3c3bb3;
}

.projIntro__titleText--md { font-size: 90%; }
.projIntro__titleText--sm { font-size: 80%; }
.projIntro__titleText--xs { font-size: 70%; }

.projIntro__tags {
    font-size: 12px;
    font-weight: 600;
    display: flex;
    flex-direction: column-reverse;
    padding: 14px 0 12px;
    letter-spacing: 0.5px;
    color: #f7f7f7;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 5px 10px;
}

.projIntro__tag {
    padding: 7px 10px 5px;
    border-radius: 30px;
    background: rgba(60, 60, 59, 0.7);
}

.projIntro__tag--orange {
    background: rgba(234, 125, 27, 0.7);
}

/* --- safety / gallery titles --- */

.safety__title,
.gallery__title {
    color: rgba(60, 60, 59, 0.7);
    font-size: 50px;
}

.projects__title .custom-title {
    order: -2;
}

@media (max-width: 860px) {
    .projIntro__titleText {
        font-size: 24px;
    }

    .safety__title,
    .gallery__title {
        font-size: 19px;
    }
}

@media (max-width: 768px) {
    .projIntro__wrap:before {
        background: linear-gradient(180deg, #f4f0e6 0%, rgba(0,0,0,0) 40%);
    }
}

@media (min-width: 540px) {
    .projIntro__tags {
        font-size: 14px;
        flex-direction: row;
        justify-content: flex-start;
    }
}

@media (min-width: 768px) {
    .projIntro__tags {
        padding: 27px 0 10px;
    }
}

@media (min-width: 860px) {
    .projIntro {
        text-align: right;
    }

    .projIntro__box {
        position: absolute;
        z-index: 2;
        bottom: 33px;
        left: 50%;
        padding-top: 0;
        transform: translate(-50%);
        text-align: left;
    }

    .projIntro__wrap {
        width: auto;
        max-width: 50%;
    }

    .projIntro__wrap--half {
        display: block;
        max-width: 50%;
        margin-left: auto;
        margin-right: -15px;
    }

    .projIntro__wrap:before {
        right: auto;
        width: 70%;
        background: linear-gradient(90deg, #f4f0e6 0%, rgba(0,0,0,0) 100%);
    }

    .projIntro__img--mob {
        display: none;
    }

    .projIntro__img--dsc {
        display: block;
        object-fit: cover;
    }

    .projIntro__img--fixHeight {
        height: 422px;
    }
}

/* === safety === */
.safety__box {
    display: flex;
    flex-direction: column-reverse;
    padding-top: 19px;
    gap: 26px;
    flex-wrap: wrap;
}

.safety__img {
    width: 100%;
    overflow: hidden;
}

.safety__img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.safety__aside {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
}

.safety__sub {
    font-size: 15px;
    line-height: 1.4;
    padding-top: 5px;
           color: #3c3c3bb3;
}

.safety__sub strong {
    color: rgba(234, 125, 27, 0.7);
}

.safety__text {
    font-size: 15px;
    line-height: 1.8;
    width: 100%;
    padding-top: 33px;
    color: #3c3c3bb3;
}

.safety__text ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

@media (min-width: 860px) {
    .safety__box {
        flex-direction: row;
        align-items: stretch;
        justify-content: space-between;
        padding-top: 38px;
        gap: 29px;
    }
    .safety__img {
        width: 52%;
    }
    .safety__aside {
        gap: 27px;
        width: 44%;
    }
    .safety__sub {
        font-size: 21px;
        line-height: 1.28;
        padding-top: 0;
 
    }
    .safety__text {
        font-size: 17px;
        line-height: 1.56;
        padding-bottom: 12px;
    }
}


@media (min-width: 1280px) {
    .safety__box {
        gap: 10%;
    }
    .safety__img {
        width: 46%;
    }
}

/* === gallery === */
.gallery__box {
    padding-top: 26px;
}

.gallery__items {
    display: grid;
    padding-top: 17px;
    grid-template-columns: 57% auto;
    gap: 10px;
}

.gallery__img {
    width: 100%;
    height: 100%;
    border-radius: 14px;
    object-fit: cover;
    cursor: pointer;
}

@media (min-width: 680px) {
    .gallery__items {
        padding-top: 13px;
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
    .gallery__img {
        border-radius: 19px;
    }
}

@media (min-width: 1080px) {
    .gallery__box {
        padding-top: 38px;
    }
}

/* === projects (bottom block) === */
.projects__box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 29px;
}


.projectsList {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 31px 1.7%;
}

.projectsItem {
    position: relative;
    width: 100%;
}

.projectsSlider {
    position: relative;
    overflow: hidden;
    width: 100%;
    touch-action: pan-y;
}

.projectsSlider__wrap {
    width: 100%;
    height: 100%;
}

.projectsSlider__slide {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 66.666%;
    overflow: hidden;
}

.projectsSlider__img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 14px;
    object-fit: cover;
}

.projectsSlider__nav {
    position: absolute;
    z-index: 2;
    top: auto;
    right: 14px;
    bottom: 11px;
    left: 14px;
    display: flex;
    width: auto;
    flex-wrap: wrap;
    gap: 5px;
}

.projectsSlider__bullet {
    width: 36px;
    height: 3px;
    transition: 0.32s;
    opacity: 0.5;
    border-radius: 2px;
    background-color: #f7f7f7;
    cursor: pointer;
}

.projectsSlider__bullet--active {
    width: 74px;
    opacity: 1;
}

.projectsPageItem__title {
    font-size: 16px;
    padding: 18px 0 6px;
    color: rgba(60, 60, 59, 0.7);
}

.projectsPageItem__desc {
    font-size: 12px;
    color: rgba(60, 60, 59, 0.7);
}

.projectsItem a {
    display: block;
    color: inherit;
    text-decoration: none;
}

.projectsItem .swiper-arrow {
    position: absolute;
    z-index: 10;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    width: 30px;
    height: 30px;
    padding: 0;
    margin: 0;
    cursor: pointer;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    justify-content: center;
    align-items: center;
    color: #3c3c3b;
    text-decoration: none;
}

.projectsItem .swiper-arrow-left {
    left: 10px;
}

.projectsItem .swiper-arrow-right {
    right: 10px;
}

.projectsItem .swiper-arrow-left svg {
    transform: rotate(180deg);
}

.projectsItem .swiper-arrow svg,
.projectsItem .swiper-arrow .sliderArr__ico {
    display: block;
    width: 10px;
    height: 10px;
    color: #3c3c3b;
    fill: currentColor;
}

.projectsItem .swiper-arrow:hover {
    color: #c1a17b;
    background: rgba(28, 85, 81, 0.8);
}

.projectsItem .swiper-arrow:hover svg {
    color: #c1a17b;
}

.sliderArr__ico {
    width: 7px;
    height: 13px;
}

@media (min-width: 768px) {
    .projectsList {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 62px 1.7%;
    }
    .projectsItem {
        width: 32.2%;
    }
    .projectsPageItem__title {
        font-size: 21px;
        padding: 29px 0 8px;
    }
    .projectsPageItem__desc {
        font-size: 15px;
    }
    .projectsSlider__nav {
        right: 20px;
        bottom: 18px;
        left: 20px;
    }
    .projectsSlider__bullet {
        width: 20px;
        height: 4px;
    }
    .projectsSlider__bullet--active {
        width: 40px;
    }
}

@media (min-width: 860px) {
    .projects__btn {
        font-size: 24px;
        order: -1;
    }
}

@media (min-width: 1080px) {
    .projectsSlider__img {
        border-radius: 19px;
    }
}

.safety__text ul li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.safety__textIco {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin-top: 3px;
}

@media (min-width: 860px) {
    .safety__textIco {
        width: 24px;
        height: 24px;
        margin-top: 4px;
    }
}

/* === gallery lightbox === */
.gallery-lightbox {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9999;
    display: none;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.gallery-lightbox--open {
    display: flex;
}

.gallery-lightbox__close {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 0;
    font-size: 30px;
    line-height: 1;
    color: #ffffff;
    background: none;
    border: 0;
    cursor: pointer;
    transition: color 0.3s;
}

.gallery-lightbox__close:hover {
    color: #bdbdbd;
}

.gallery-lightbox__img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}