.hc-turnkey-apartments {
    box-sizing: border-box;
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 16px;
    padding: 48px 12px 80px;
    background: #fefcf9;
    color: #1f1911;
    font-family: Onest, Arial, sans-serif;
}

.hc-turnkey-apartments *,
.hc-turnkey-apartments *::before,
.hc-turnkey-apartments *::after {
    box-sizing: border-box;
}

.hc-turnkey-apartments__item {
    display: block;
    min-width: 0;
}

.hc-turnkey-card {
    position: relative;
    display: block;
    width: 100%;
    height: 460px;
    overflow: hidden;
    border: 0;
    border-radius: 20px;
    background-color: #1f1911;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
    text-align: left;
}

.hc-turnkey-card:focus-visible {
    outline: 3px solid rgba(255, 85, 0, 0.8);
    outline-offset: 3px;
}

.hc-turnkey-card__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    border-radius: 20px;
    background: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0) 100%);
}

.hc-turnkey-card__content {
    position: absolute;
    right: 24px;
    bottom: 20px;
    left: 24px;
    z-index: 2;
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 20px;
    transition: opacity 300ms ease-in, bottom 300ms ease-in;
}

.hc-turnkey-card__title {
    display: block;
    max-width: 100%;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 2rem;
    letter-spacing: 0;
    overflow-wrap: anywhere;
    text-align: start;
}

.hc-turnkey-card__meta {
    display: flex;
    width: 100%;
    min-width: 0;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.hc-turnkey-card__badge {
    display: inline-flex;
    max-width: 100%;
    align-items: center;
    border-radius: 4px;
    background: #e7e2da;
    color: #423a2e;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25rem;
    padding: 4px 8px;
    white-space: nowrap;
}

.hc-turnkey-apartments__empty {
    width: 100%;
    border-radius: 12px;
    background: #f3f0ec;
    color: #8f867a;
    font-size: 1rem;
    line-height: 1.5rem;
    padding: 24px;
    text-align: center;
}

@media (min-width: 768px) {
    .hc-turnkey-apartments {
        display: grid;
        grid-auto-rows: auto;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
        padding: 80px 120px 40px;
    }
}

@media (max-width: 360px) {
    .hc-turnkey-card__content {
        right: 18px;
        left: 18px;
    }

    .hc-turnkey-card__title {
        font-size: 1.375rem;
        line-height: 1.875rem;
    }
}

.hc-turnkey-modal[hidden] {
    display: none !important;
}

.hc-turnkey-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px 160px;
    color: #1f1911;
    font-family: Onest, Arial, sans-serif;
    letter-spacing: 0;
}

.hc-turnkey-modal.is-open {
    display: flex;
}

.hc-turnkey-modal button {
    font-family: inherit;
}

.hc-turnkey-modal__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
    padding: 0;
}

.hc-turnkey-modal__dialog {
    position: relative;
    z-index: 1;
    display: flex;
    width: 1194px;
    height: auto;
    min-height: 704px;
    max-width: calc(100vw - 320px);
    max-height: calc(100svh - 32px);
    flex-direction: column;
    gap: 40px;
    overflow: hidden;
    border-radius: 32px;
    background: #fff;
    padding: 16px 24px 24px;
}

.hc-turnkey-modal__top {
    display: flex;
    min-width: 0;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
}

.hc-turnkey-modal__tabs {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    padding: 6px;
    scroll-padding-inline: 6px;
    scrollbar-width: none;
}

.hc-turnkey-modal__tabs::-webkit-scrollbar,
.hc-turnkey-modal__benefits::-webkit-scrollbar {
    display: none;
}

.hc-turnkey-modal__tab {
    display: inline-flex;
    min-height: 32px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.6);
    color: #423a2e;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25rem;
    padding: 6px 12px;
    white-space: nowrap;
}

.hc-turnkey-modal__tab.is-active {
    background: rgba(255, 85, 0, 0.6);
    box-shadow: 0 0 0 6px rgba(255, 85, 0, 0.2);
    color: #fff;
}

.hc-turnkey-modal__controls {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 24px;
    padding-left: 10px;
}

.hc-turnkey-modal__room-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hc-turnkey-modal__icon-button,
.hc-turnkey-modal__image-nav {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    background: #e7e2da;
    color: #1f1911;
    cursor: pointer;
    padding: 12px;
}

.hc-turnkey-modal__icon-button:hover,
.hc-turnkey-modal__image-nav:hover {
    background: #dad2c5;
}

.hc-turnkey-modal__icon-button:active,
.hc-turnkey-modal__image-nav:active {
    box-shadow: 0 0 0 4px #f3f0ec;
}

.hc-turnkey-modal__icon-button:disabled,
.hc-turnkey-modal__image-nav:disabled {
    cursor: default;
    opacity: 0.45;
}

.hc-turnkey-modal__icon-button i,
.hc-turnkey-modal__image-nav i,
.hc-turnkey-modal__close i,
.hc-turnkey-modal__consultation i {
    font-size: 24px;
    line-height: 1;
}

.hc-turnkey-modal__close {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 12px;
    background: #1f1e1b;
    color: #fff;
    cursor: pointer;
    padding: 12px;
}

.hc-turnkey-modal__body {
    display: flex;
    min-height: 0;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 24px;
}

.hc-turnkey-modal__copy {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 24px;
}

.hc-turnkey-modal__title {
    margin: 0;
    color: #2f281e;
    font-size: 2.5rem;
    font-weight: 400;
    line-height: 3rem;
}

.hc-turnkey-modal__description {
    width: 95%;
    margin: 0;
    color: #423a2e;
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.5rem;
    white-space: pre-line;
}

.hc-turnkey-modal__content {
    display: grid;
    width: 100%;
    height: 384px;
    min-height: 384px;
    flex: 0 0 384px;
    grid-template-columns: 600px 372px;
    gap: 24px;
}

.hc-turnkey-modal__gallery {
    position: relative;
    min-width: 0;
    height: 384px;
    min-height: 384px;
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(
            90deg,
            #efebe5 0%,
            #faf8f4 22%,
            #fff 50%,
            #faf8f4 78%,
            #efebe5 100%
    );
}

.hc-turnkey-modal__gallery::before,
.hc-turnkey-modal__gallery::after {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 2;
    width: 0;
    content: "";
    opacity: 0;
    pointer-events: none;
    transition: width 700ms ease, opacity 700ms ease;
}

.hc-turnkey-modal__gallery::before {
    left: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0));
}

.hc-turnkey-modal__gallery::after {
    right: 0;
    background: linear-gradient(to left, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0));
}

.hc-turnkey-modal__gallery:hover::before,
.hc-turnkey-modal__gallery:hover::after {
    width: 30%;
    opacity: 1;
}

.hc-turnkey-modal__track {
    display: flex;
    width: 100%;
    height: 100%;
    overflow: visible;
    border-radius: 20px;
    transition: transform 0.4s ease-in-out;
    will-change: transform;
}

.hc-turnkey-modal__slide {
    display: flex;
    width: 100%;
    min-width: 100%;
    height: 100%;
    flex: 0 0 100%;
    align-items: center;
    justify-content: center;
}

.hc-turnkey-modal__slide img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    object-fit: contain;
    user-select: none;
}

.hc-turnkey-modal__image-nav {
    position: absolute;
    top: 50%;
    z-index: 3;
    opacity: 0;
    transform: translateY(-50%);
    transition: opacity 250ms ease, left 250ms ease, right 250ms ease;
}

.hc-turnkey-modal__image-nav--prev {
    left: -64px;
}

.hc-turnkey-modal__image-nav--next {
    right: -64px;
}

.hc-turnkey-modal__gallery:hover .hc-turnkey-modal__image-nav--prev:not(:disabled) {
    left: 24px;
    opacity: 1;
}

.hc-turnkey-modal__gallery:hover .hc-turnkey-modal__image-nav--next:not(:disabled) {
    right: 24px;
    opacity: 1;
}

.hc-turnkey-modal__dots {
    position: absolute;
    top: 20px;
    left: 24px;
    z-index: 4;
    display: flex;
    width: fit-content;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 4px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
    padding: 6px;
}

.hc-turnkey-modal__dot {
    width: 6px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    padding: 0;
}

.hc-turnkey-modal__dot.is-active {
    background: #fff;
}

.hc-turnkey-modal__benefits {
    display: flex;
    min-width: 0;
    min-height: 0;
    gap: 12px;
    flex-flow: row wrap;
    overflow: hidden;
    scrollbar-width: none;
}

.hc-turnkey-modal__benefit {
    display: flex;
    width: 100%;
    height: auto;
    max-width: 170px;
    min-width: 0;
    min-height: 0;
    flex-direction: column;
    gap: 8px;
    border-radius: 16px;
    background: #f3f0ec;
    color: #423a2e;
    padding: 20px;
}

.hc-turnkey-modal__benefit i {
    color: #0f0f0f;
    font-size: 16px;
    line-height: 1;
}

.hc-turnkey-modal__benefit-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.hc-turnkey-modal__benefit h3 {
    margin: 0;
    color: #423a2e;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.25rem;
}

.hc-turnkey-modal__consultation {
    display: none;
}

@media (max-width: 1279px) and (min-width: 768px) {
    .hc-turnkey-modal {
        padding: 18px;
    }

    .hc-turnkey-modal__dialog {
        width: calc(100vw - 36px);
        max-width: none;
        min-height: 0;
        height: min(704px, calc(100svh - 36px));
    }

    .hc-turnkey-modal__content {
        grid-template-columns: minmax(0, 1fr) minmax(300px, 34%);
    }

    .hc-turnkey-modal__benefit {
        width: 100%;
        max-width: 170px;
    }
}

@media (max-width: 767px) {
    .hc-turnkey-modal {
        align-items: stretch;
        justify-content: stretch;
        padding: 0;
    }

    .hc-turnkey-modal__backdrop {
        display: none;
    }

    .hc-turnkey-modal__dialog {
        width: 100vw;
        height: 100svh;
        min-height: 0;
        max-width: none;
        max-height: none;
        gap: 0;
        border-radius: 0;
        background: #000;
        padding: 0;
    }

    .hc-turnkey-modal__dialog::before,
    .hc-turnkey-modal__dialog::after {
        position: absolute;
        left: 0;
        right: 0;
        z-index: 2;
        display: block;
        content: "";
        pointer-events: none;
    }

    .hc-turnkey-modal__dialog::before {
        top: 0;
        height: 40%;
        background: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0) 100%);
    }

    .hc-turnkey-modal__dialog::after {
        bottom: 0;
        height: 50%;
        background: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0) 100%);
    }

    .hc-turnkey-modal__top {
        position: absolute;
        top: 60px;
        right: 0;
        left: 0;
        z-index: 5;
        align-items: center;
        gap: 16px;
        padding: 0 12px;
    }

    .hc-turnkey-modal__tabs {
        flex: 1 1 auto;
        gap: 10px;
        padding: 20px 6px;
        scroll-padding-inline: 6px;
    }

    .hc-turnkey-modal__controls {
        padding-left: 0;
    }

    .hc-turnkey-modal__room-controls {
        display: none;
    }

    .hc-turnkey-modal__close {
        width: 48px;
        height: 48px;
        flex: 0 0 auto;
        border: 1px solid #fff;
        border-radius: 8px;
        background: transparent;
        color: #fff;
    }

    .hc-turnkey-modal__body,
    .hc-turnkey-modal__content {
        display: block;
        position: absolute;
        inset: 0;
        height: auto;
        min-height: 0;
        flex: none;
    }

    .hc-turnkey-modal__copy {
        display: none;
    }

    .hc-turnkey-modal__gallery {
        position: absolute;
        inset: 0;
        height: auto;
        min-height: 0;
        border-radius: 0;
        background: #000;
        padding: 0;
    }

    .hc-turnkey-modal__gallery::before,
    .hc-turnkey-modal__gallery::after {
        display: none;
    }

    .hc-turnkey-modal__track {
        border-radius: 0;
    }

    .hc-turnkey-modal__slide img {
        border-radius: 0;
        object-fit: cover;
    }

    .hc-turnkey-modal__image-nav {
        display: none;
    }

    .hc-turnkey-modal__dots {
        top: 30px;
        right: 12px;
        left: 12px;
        width: auto;
        gap: 8px;
        background: transparent;
        padding: 0;
    }

    .hc-turnkey-modal__dot {
        width: 100%;
        height: 3px;
        flex: 1 1 0;
        border-radius: 2px;
        background: rgba(255, 255, 255, 0.4);
    }

    .hc-turnkey-modal__dot.is-active {
        background: rgba(255, 255, 255, 0.4);
    }

    .hc-turnkey-modal__dot.is-complete {
        background: #fff;
    }

    .hc-turnkey-modal__benefits {
        position: absolute;
        right: 0;
        bottom: 124px;
        left: 0;
        z-index: 5;
        display: flex;
        gap: 8px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0 12px;
    }

    .hc-turnkey-modal__benefit {
        width: 160px;
        height: auto;
        max-width: 160px;
        min-width: 160px;
        min-height: 116px;
        border-radius: 16px;
        padding: 16px;
    }

    .hc-turnkey-modal__benefit h3 {
        color: #1f1911;
    }

    .hc-turnkey-modal__consultation {
        position: absolute;
        right: 12px;
        bottom: 36px;
        left: 12px;
        z-index: 5;
        display: flex;
        min-height: 56px;
        align-items: center;
        justify-content: center;
        gap: 8px;
        border: 0;
        border-radius: 8px;
        background: #ff5500;
        color: #fff;
        cursor: pointer;
        font-size: 1rem;
        font-weight: 500;
        line-height: 1.25rem;
        padding: 18px 40px;
    }

    .hc-turnkey-modal__consultation:active {
        box-shadow: 0 0 0 4px rgba(255, 85, 0, 0.4);
    }
}
