.frame-6 {
    width: 100%;
    max-width: 1180px;
    justify-content: space-between;
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 0 auto;
    margin-top: clamp(28px, 3.5vw, 48px);
}

.tab-container {
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    display: flex;
}

.tab {
    padding: 12px 20px;
    border-radius: 100px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    display: flex;
}

.tab-active {
    background: #60724F;
    color: #F0EBE6;
}

.tab-inactive {
    outline: 1px #60724F solid;
    outline-offset: -1px;
    color: #60724F;
}

.arrows {
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    display: flex;
}

.arrow {
    width: 44px;
    height: 44px;
    padding: 4px;
    background: white;
    overflow: hidden;
    border-radius: 40px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    display: flex;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.2s ease;
}

.arrow:hover:not([style*="pointer-events: none"]) {
    transform: scale(1.05);
}

.arrow-left {
    width: 20px;
    height: 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arrow-vector {
    width: 0;
    height: 0;
    position: absolute;
    border-style: solid;
}

.arrow-prev .arrow-vector {
    border-width: 6.25px 8px 6.25px 0;
    border-color: transparent #60724F transparent transparent;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.arrow-next .arrow-vector {
    border-width: 6.25px 0 6.25px 8px;
    border-color: transparent transparent transparent #60724F;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.carousel-wrapper {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    padding-right: 40px;
    margin-top: 28px;
}

.card-container {
    width: max-content;
    max-width: none;
    display: flex;
    gap: 20px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    flex: 0 0 auto;
    min-width: 0;
}

.card {
    flex: 0 0 auto;
    min-width: 0;
    padding-bottom: 28px;
    position: relative;
    background: white;
    border-radius: 20px;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 20px;
    display: inline-flex;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.card-link:hover .card {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.card-img {
    align-self: stretch;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    object-fit: cover;
}

.card-text {
    width: 100%;
    max-width: 100%;
    padding: 0 20px;
    flex: 1;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 7px;
    display: flex;
    min-height: 0;
}

.card-title {
    align-self: stretch;
    color: black;
    font-size: clamp(18px, 2.5vw, 20px);
    font-weight: 600;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.4em;
}

.card-desc {
    align-self: stretch;
    color: black;
    font-size: clamp(12px, 2vw, 12px);
    font-weight: 400;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.25em;
}

.card-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 12px 0;
}

.card-icon-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.card-icon-text {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.card-price {
    align-self: stretch;
    color: #60724F;
    font-size: clamp(18px, 2.5vw, 20px);
    font-weight: 600;
    line-height: 1.2;
}

.badge {
    padding: 8px 12px;
    left: 20px;
    top: 20px;
    position: absolute;
    background: white;
    overflow: hidden;
    border-radius: 20px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    display: inline-flex;
}

.badge-text {
    text-align: center;
    color: #60724F;
    font-size: clamp(13px, 1.9vw, 15px);
    font-weight: 700;
    line-height: clamp(16px, 2.2vw, 18px);
}

.tab-text {
    text-align: center;
    font-size: clamp(16px, 2.2vw, 18px);
    font-weight: 700;
    line-height: clamp(19px, 2.7vw, 21.6px);
}

.tab-active .tab-text {
    color: #F0EBE6;
}

.tab-inactive .tab-text {
    color: #60724F;
}

/* Ширина карточек через vw + min() (работает во всех браузерах). Видимая зона секции = min(100vw, 1180px). */
/* Десктоп: 3.5 карточки */
@media (min-width: 992px) {
    .carousel-wrapper .card-link,
    .carousel-wrapper .card {
        width: calc((min(100vw, 1180px) - 40px - 60px) / 3.5);
        flex: 0 0 calc((min(100vw, 1180px) - 40px - 60px) / 3.5);
        min-width: calc((min(100vw, 1180px) - 40px - 60px) / 3.5);
    }
    
    .carousel-wrapper {
        padding-right: 40px;
    }
    
    .carousel-wrapper .card-container {
        width: max-content;
    }
}

/* Планшет: 2.5 карточки */
@media (max-width: 991px) and (min-width: 769px) {
    .carousel-wrapper .card-link,
    .carousel-wrapper .card {
        width: calc((100vw - 30px - 40px) / 2.5);
        flex: 0 0 calc((100vw - 30px - 40px) / 2.5);
        min-width: calc((100vw - 30px - 40px) / 2.5);
    }
    
    .carousel-wrapper {
        padding-right: 30px;
    }
    
    .carousel-wrapper .card-container {
        width: max-content;
    }
}

/* Мобильный: 2.5 карточки */
@media (max-width: 768px) {
    .carousel-wrapper .card-link,
    .carousel-wrapper .card {
        width: calc((100vw - 40px) / 2.5);
        flex: 0 0 calc((100vw - 40px) / 2.5);
        min-width: calc((100vw - 40px) / 2.5);
    }
    
    .carousel-wrapper {
        padding-right: 0;
        overflow: hidden;
    }
    
    .carousel-wrapper .card-container {
        width: max-content;
    }
    
    .frame-6 {
        flex-direction: column;
        align-items: stretch;
    }
    
    .tab-container {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .card-img {
        aspect-ratio: 16 / 9;
    }
    
    .tab {
        padding: clamp(8px, 2vw, 10px) clamp(14px, 3.5vw, 16px);
        font-size: clamp(13px, 3.5vw, 14px);
    }
    
    .badge-text {
        font-size: clamp(12px, 3vw, 13px);
        line-height: clamp(15px, 3.7vw, 16px);
    }
}

/* Отступ между основной частью и кнопкой */
.section:has(.carousel-wrapper) .btn.btn-large {
    margin-top: clamp(24px, 3vw, 40px);
}

/* Дополнительные характеристики в карточке объекта */
.property-amenities {
    padding-top: 16px;
    border-top: 1px solid rgba(96, 114, 79, 0.15);
}.property-amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px 20px;
}.property-amenity-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: #333;
}.property-amenity-item i {
    width: 22px;
    text-align: center;
    color: #60724F;
    font-size: 18px;
}