.construction-progress {
    width: calc(100% - 18.75rem);
    margin-left: auto;
    margin-right: auto;
    font-family: "Open Sans";
}

.construction-progress__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 38px;
}

.construction-progress__heading {
    margin: 0;
    font: 500 1rem "Lora";
    font-size: 1.85rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #000;
    margin-bottom: 0 !important;
}

.construction-progress__heading::before {
    content: "A";
    color: transparent;
    min-width: 5.3rem;
    width: 5.3rem;
    border-bottom: 1px solid #000;
    margin-right: 2.56rem;
    transform: translateY(-50%);
    display: inline-block;
}

.construction-progress__btns {
    display: flex;
    gap: 15px;
}

.construction-progress__btn {
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.construction-progress__btn svg {
    width: 48px;
    height: 10px;
}

.construction-progress__btn:hover {
    opacity: 0.6;
}

.construction-progress__btn:disabled {
    opacity: 0.2;
    cursor: default;
}

.sp-slider {
    max-width: 100%;
    overflow: hidden;
}

.sp-slider__track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.5, 0, 0.5, 1);
    will-change: transform;
}

.sp-slider__slide {
    flex-shrink: 0;
    width: 395px;
    padding-right: 78px;
}

.sp-card {
    position: relative;
}

.sp-card__image {
    max-width: 395px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.sp-card__image img {
    aspect-ratio: 395 / 262;
    max-width: 100%;
    object-fit: cover;
    width: 100%;
    display: block;
    transition: transform 0.6s ease;
}

.sp-card:hover .sp-card__image img {
    transform: scale(1.05);
}

.sp-card__title {
    font-family: "Lora";
    font-weight: 700;
    font-size: 16px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #000000;
    text-decoration: none;
    color: #000;
    display: block;
    transition: opacity 0.3s ease;
}

.sp-card__title:hover {
    opacity: 0.7;
}

.sp-card__title-link {
    text-decoration: none;
    color: #000;
}

.sp-card__title-link::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
}

.sp-card__subtitle {
    font-size: 14px;
    color: #383838;
}

.is-hidden {
    display: none;
}

.cp-gallery-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.85);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cp-gallery-overlay.active {
    display: flex;
}

.cp-gallery-overlay__close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #fff;
    padding: 0;
}

.cp-gallery-overlay__close svg {
    width: 100%;
    height: 100%;
}

.cp-gallery {
    max-width: 1444px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    padding: 50px;
    background-color: #A39382;
    color: #fff;
}

.cp-gallery__title {
    font-family: "Lora";
    font-weight: 700;
    font-size: 22px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 20px;
    padding-left: 63px;
}

.cp-gallery__container {
    display: flex;
    gap: 45px;
    margin-bottom: 20px;
    position: relative;
    align-items: center;
}

.cp-gallery__viewport {
    flex: 1;
    overflow: hidden;
}

.cp-gallery__image-slider {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.5, 0, 0.5, 1);
    will-change: transform;
}

.cp-gallery__image-slider .swiper-slide {
    flex-shrink: 0;
    width: 100%;
}

.cp-gallery__image-slider .swiper-slide img {
    aspect-ratio: 1218 / 685;
    max-width: 100%;
    object-fit: contain;
    width: 100%;
    display: block;
}

.cp-gallery__btn {
    flex-shrink: 0;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: #fff;
    transition: opacity 0.3s ease;
}

.cp-gallery__btn:hover {
    opacity: 0.6;
}

.cp-gallery__btn svg {
    width: 18px;
    height: 45px;
}

.cp-gallery__counter {
    font-family: "Lora";
    font-weight: 500;
    font-size: 22px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding-left: 63px;
}

@media screen and (max-width: 1199px) {
    .construction-progress {
        padding-top: 130px;
    }

    .sp-slider .sp-slider__track {
        flex-direction: column;
        gap: 40px;
        transform: none !important;
    }

    .sp-slider__slide {
        width: 100%;
        padding-right: 0;
    }

    .sp-card__image {
        max-width: 100%;
    }

    .sp-card__image img {
        width: 100%;
    }

    .construction-progress__btns {
        display: none;
    }
}

@media screen and (max-width: 900px) {
    .construction-progress {
        width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }

    .construction-progress__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .construction-progress__heading {
        font-size: 1.6rem;
    }

    .construction-progress__heading::before {
        min-width: 3rem;
        width: 3rem;
        margin-right: 1.4rem;
    }

    .cp-gallery {
        padding: 20px;
    }

    .cp-gallery__container {
        margin-bottom: 10px;
    }

    .cp-gallery__title {
        font-size: 20px;
        padding-left: 0;
    }

    .cp-gallery__counter {
        text-align: center;
        font-size: 16px;
        padding-left: 32px;
        padding-right: 32px;
    }

    .cp-gallery__btn {
        position: absolute;
        bottom: -30px;
        width: 24px;
        height: 24px;
    }

    .cp-gallery__btn svg {
        width: 24px;
        height: 24px;
    }

    .cp-gallery__btn--prev {
        left: 0;
    }

    .cp-gallery__btn--next {
        right: 0;
    }
}

@media screen and (max-width: 600px) {
    .construction-progress {
        padding-left: 20px;
        padding-right: 20px;
    }

    .construction-progress__header {
        margin-bottom: 58px;
    }

    .sp-card__image {
        margin-bottom: 12px;
    }

    .sp-card__title {
        padding-bottom: 16px;
        margin-bottom: 14px;
    }

    .cp-gallery {
        padding: 15px;
    }

    .cp-gallery__btn {
        bottom: -25px;
    }
}

.contacts {
    padding-bottom: 1rem;
}

@media screen and (max-width: 900px) {
    .contacts {
        padding-bottom: 0.5rem;
    }
}
