.projects {

}

.projects__container {

}

.projects__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 48px;
}

@media (width <= 630px) {
    .projects__header {
        flex-direction: column;
        margin-bottom: 20px;
    }
}

.projects__titles {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.projects__title {
    margin: 0;
    line-height: 1.2;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent-color);
}

.projects__subtitle {
    margin: 0;
    line-height: 1;
    font-weight: 700;
    color: var(--main-color);
}

.projects__nav {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    align-self: flex-end;
}

@media (width <= 630px) {
        .projects__nav {
    align-self: flex-start;
}
}

.projects__button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: #fff;
    cursor: pointer;
    transition:
        background-color var(--transition-time),
        border-color var(--transition-time),
        transform var(--transition-time);
}

.projects__button svg {
    width: 20px;
    height: 20px;
    color: var(--main-color);
    transition:
        color var(--transition-time),
        transform var(--transition-time);
}


.projects__button--prev {
    border: 1px solid var(--secondary-color-mute);
}

.projects__button--prev svg {
    transform: rotate(180deg);
    color: var(--main-color);
}

.projects__button--next {
    color: #fff;
    background: var(--main-color);
}

.projects__button--next svg {
color: #fff;
}

.projects__button:hover {
    box-shadow: inset 0px 0px 40px 0px rgba(220, 220, 220, 0.434);
}

.projects-slider {
    height: 600px;
    position: relative;
    overflow: hidden;
}

.projects-slider .swiper-wrapper,
.projects-slider .swiper-slide {
    height: 100%;
}

.projects-card {
    position: relative;
    height: 100%;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.projects-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 35%,
        rgba(0, 0, 0, 0.28) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.projects-card__image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 720px;
    object-fit: cover;
}

.projects-card__info {
    position: absolute;
    left: 48px;
    bottom: 40px;
    z-index: 2;
    max-width: 580px;
    width: 100%;
    opacity: 0;
    transform: translateY(240px);
    transition:
        opacity 700ms ease 300ms,
        transform 700ms ease 300ms;
}

@media (width <= 768px) {
    .projects-card__info {
        left: 5px;
        bottom: 40px;    
        right: 5px;
        width: calc(100% - 10px);
    }
}

.projects-slider .swiper-slide-active .projects-card__info {
    opacity: 1;
    transform: translateY(0);
}

.projects-card__info-inner {
    padding: 32px;
    border-radius: 32px;
    background: rgb(255 255 255 / 0.96);
    box-shadow: 0 20px 40px rgb(0 0 0 / 0.12);
    backdrop-filter: blur(10px);
}

@media (width <= 630px) {
.projects-card__info-inner {
    padding: 26px;
}
}

.projects-card__locations-wrapper {
    margin-bottom: 16px;
     display: flex;
     align-items: center;
     gap: 4px;
     color: var(--accent-color);
}

.projects-card__location {
    font-size: 14px;
    line-height: 1.3;
    font-weight: 700;
    text-transform: uppercase;
}

.projects-card__name {
    margin-bottom: 24px;
    font-size: 30px;
    line-height: 1;
    font-weight: 700;
    color: var(--main-color);
}

@media (width <= 630px) {
    .projects-card__name {
    margin-bottom: 12px;
    font-size: 22px;
    }
}

.projects-card__stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (width <= 630px) {
    .projects-card__stats {
    gap: 16px;
}

.projects-card__stat {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    color: var(--secondary-color);
}

.projects-card__stat-label {
    font-size: 16px;
    line-height: 1.4;
}

.projects-card__stat-value {
    font-size: 20px;
    line-height: 1.2;
    font-weight: 700;
    color: var(--main-color);
    text-align: right;
    flex-shrink: 0;
    align-self: flex-end;
    margin-left: auto;
}

.projects__pagination {
    position: absolute;
    right: 50% !important;
    bottom: 12px !important;
    left: auto !important;
    z-index: 3;
    display: flex;
    justify-content: flex-end;
    width: unset !important;
    transform: translateX(50%);
}

.projects__pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    margin: 0 6px !important;
    background: rgb(255 255 255 / 0.5);
    opacity: 1;
    transition:
        width var(--transition-time),
        background-color var(--transition-time),
        border-radius var(--transition-time);
}

.projects__pagination .swiper-pagination-bullet-active {
    width: 28px;
    border-radius: 999px;
    background: #fff;
}

