.resident__slider-thumb .resident-slider-thumb__link:first-child {
    border-top-left-radius: 4em;
    border-bottom-left-radius: 4em;
}

.resident__slider-thumb .resident-slider-thumb__link:last-child {
    border-top-right-radius: 4em;
    border-bottom-right-radius: 4em;
}

.column-flat__list .column-flat__item:last-child {
    max-width: 7em;
}

.column-flat__seo-text {
    margin-top: 24px;
    color: #5d2c1e;
    line-height: 1.45;
}

/* Apartment detail limited collection prices and compact sticky navigation — 20260728 */
.apartment-price {
    display: grid;
    gap: 14px;
    margin: 28px 0 22px;
    padding: 22px 0;
    border-top: 1px solid rgba(93, 44, 30, 0.28);
    border-bottom: 1px solid rgba(93, 44, 30, 0.28);
    color: #5d2c1e;
}

.apartment-price__offer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 2px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(93, 44, 30, 0.18);
    color: #7b4634;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.apartment-price__offer strong {
    flex: 0 0 auto;
    padding: 5px 9px;
    border-radius: 3px;
    background: #5d2c1e;
    color: #fff;
    font-size: 14px;
}

.apartment-price__row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.apartment-price__label {
    font-size: clamp(20px, 1.55vw, 28px);
    line-height: 1.08;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.apartment-price__values {
    display: flex;
    flex: 0 0 auto;
    align-items: baseline;
    justify-content: flex-end;
    gap: 12px;
}

.apartment-price__old-value {
    color: rgba(93, 44, 30, 0.6);
    font-size: 16px;
    line-height: 1.2;
    white-space: nowrap;
    text-decoration-thickness: 1px;
}

.apartment-price__value {
    flex: 0 0 auto;
    font-size: clamp(24px, 1.8vw, 32px);
    font-weight: 500;
    line-height: 1.08;
    white-space: nowrap;
}

.apartment-price__saving {
    margin: 0;
    color: #7b4634;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    text-align: right;
    text-transform: uppercase;
}

.apartment-price__collection-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    margin-top: 4px;
    padding: 13px 18px;
    border: 1px solid #5d2c1e;
    color: #5d2c1e;
    font-size: 13px;
    line-height: 1.25;
    text-align: center;
    text-transform: uppercase;
    transition: color 0.2s ease, background-color 0.2s ease;
}

@media (any-hover: hover) {
    .apartment-price__collection-link:hover {
        background: #5d2c1e;
        color: #fff;
    }
}

.resident__collection-return {
    margin: 20px 0 6px;
}

.resident__collection-return .apartment-price__collection-link {
    margin-top: 0;
}

.header.fixed .header__logo {
    display: none !important;
}

.header.fixed .header__buttons {
    margin-left: auto;
}

.flat-page {
    scroll-margin-top: 110px;
}

.flat-page__to-top {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 140;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border: 1px solid rgba(93, 44, 30, 0.22);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
    color: #5d2c1e;
    box-shadow: 0 6px 22px rgba(42, 24, 18, 0.16);
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.flat-page__to-top:hover,
.flat-page__to-top:focus-visible {
    background: #5d2c1e;
    color: #fff;
    transform: translateY(-2px);
}

@media (max-width: 767px) {
    .apartment-price {
        gap: 16px;
        margin: 24px 0 20px;
        padding: 20px 0;
    }

    .apartment-price__offer {
        align-items: flex-start;
        gap: 12px;
        padding-bottom: 12px;
        font-size: 12px;
    }

    .apartment-price__row {
        display: grid;
        gap: 7px;
    }

    .apartment-price__label {
        font-size: 20px;
    }

    .apartment-price__values {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 7px 12px;
    }

    .apartment-price__old-value {
        font-size: 15px;
    }

    .apartment-price__value {
        font-size: 28px;
        white-space: normal;
    }

    .apartment-price__saving {
        font-size: 12px;
        text-align: left;
    }

    .apartment-price__collection-link {
        min-height: 50px;
        margin-top: 0;
        font-size: 12px;
    }

    .flat-page__to-top {
        right: 14px;
        bottom: calc(78px + env(safe-area-inset-bottom));
        width: 48px;
        height: 48px;
    }
}

/* Price placement: mobile below plan, desktop in the details column */
.apartment-price--desktop {
    display: none;
}

@media (min-width: 768px) {
    .apartment-price--mobile {
        display: none;
    }

    .apartment-price--desktop {
        display: grid;
        width: 100%;
        margin: 24px 0 28px;
    }

    .column-flat__price .apartment-price__row {
        display: grid;
        gap: 8px;
    }

    .column-flat__price .apartment-price__values {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 7px 12px;
    }

    .column-flat__price .apartment-price__label {
        font-size: 16px;
    }

    .column-flat__price .apartment-price__value {
        font-size: 24px;
    }

    .column-flat__price .apartment-price__saving {
        text-align: left;
    }
}
