.works {
    padding: 96px var(--gutter);
}

.works__inner {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.geo {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 10px 20px;
}

.geo__map {
    position: relative;
    height: 498px;
}

.geo__map-image {
    position: absolute;
    top: -62px;
    left: -43px;
    max-width: none;
    pointer-events: none;
}

.geo__info {
    display: flex;
    position: relative;
    align-items: flex-start;
    flex-direction: column;
    align-self: start;
    gap: 18px;
}

.geo__title {
    max-width: 360px;
    color: var(--color-heading);
    font-family: var(--font-accent);
    font-size: 44px;
    font-weight: 500;
    line-height: 46px;
    text-transform: uppercase;
}

.geo__text {
    max-width: 320px;
    color: var(--color-text-body);
    font-size: 16px;
    line-height: 24px;
}

.geo__value {
    width: 321px;
    max-width: 100%;
    padding-top: 17px;
    border-top: 1px solid #b4b4b4;
    color: var(--color-heading);
    font-family: var(--font-accent);
    font-size: 44px;
    font-weight: 500;
    line-height: normal;
    white-space: nowrap;
}

.geo__caption {
    color: var(--color-caption);
    line-height: 17px;
    font-size: 14px;
}

.geo__badge {
    position: absolute;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--glass-border);
    gap: 4px;
    padding: 12px 16px;
    border-radius: 16px;
    background-color: var(--glass-bg);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.geo__badge_pos_team {
    top: 257px;
    left: 416px;
}

.geo__badge_pos_left {
    top: 319px;
    left: 7px;
}

.geo__badge_pos_bottom {
    top: 414px;
    left: 359px;
}

.geo__badge-title {
    color: var(--color-text);
    font-size: 18px;
    line-height: 27px;
    font-weight: 600;
    white-space: nowrap;
}

.geo__badge-text {
    width: 276px;
    color: var(--color-caption);
    font-size: 14px;
    line-height: 17px;
}

.works__projects {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
}

.works__list {
    display: flex;
    gap: 20px;
    width: 100%;
}

.works__item {
    flex: 1 1 0;
    display: flex;
    min-width: 0;
}

.project-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 438px;
    overflow: hidden;
    border: 1px solid var(--color-white);
    border-radius: 12px;
    background-color: var(--color-surface);
    box-shadow: 0 6px 24px var(--color-shadow);
}

.project-card__media {
    position: relative;
    flex-shrink: 0;
    height: 220px;
    padding: 8px;
}

.project-card__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-card__tags {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    padding: 22px;
}

.project-card__info {
    display: flex;
    gap: 16px;
    flex-direction: column;
    width: 100%;
}

.project-card__title {
    color: var(--color-text-secondary);
    font-family: var(--font-accent);
    font-size: 24px;
    font-weight: 500;
    line-height: 27px;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.project-card__details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: var(--color-text);
    font-size: 14px;
    line-height: 21px;
}

.project-card__label {
    font-weight: 700;
}

.project-card__arrow {
    transition: transform 0.2s;
}

.project-card__link:hover .project-card__arrow {
    transform: translate(2px, -2px);
}

@media (max-width: 1360px) {
    .geo__badge_pos_team {
        left: 340px;
    }

    .geo__badge_pos_bottom {
        left: 300px;
    }
}

@media (max-width: 1180px) {
    .geo {
        gap: 40px;
        grid-template-columns: 1fr;
    }

    .geo__map {
        grid-area: 1 / 1;
        height: auto;
    }

    .geo__map-image {
        position: static;
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    .geo__map::after {
        content: "";
        position: absolute;
        inset: 0;
        background-image: linear-gradient(to left, rgba(244, 244, 244, 0.94) 0, rgba(244, 244, 244, 0.86) 340px, rgba(244, 244, 244, 0) 520px);
        pointer-events: none;
    }

    .geo__info {
        grid-area: 1 / 1;
        align-self: center;
        padding: 32px 0 32px 40px;
        justify-self: end;
    }

    .geo__badge {
        display: none;
    }

    .works__list {
        flex-wrap: wrap;
    }

    .works__item {
        flex-basis: calc(50% - 10px);
    }
}

@media (max-width: 767px) {
    .works {
        padding-top: 64px;
        padding-bottom: 64px;
    }

    .geo__map::after {
        display: none;
    }

    .geo__info {
        grid-area: auto;
        justify-self: stretch;
        padding: 0;
    }

    .geo__title,
    .geo__value {
        font-size: 32px;
        line-height: 34px;
    }

    .works__item {
        flex-basis: 100%;
    }
}
