/* Настройки хэдеров */
.header-main {
    display: none;
}

.header-cont-1 {
    display: none;
}

.header-cont-2 {
    display: flex;
}
/* Конец настройки хэдеров */
.main {
    padding: calc(20px + 48px) 0 100px;
    width: calc(100vw - 20px * 2);

    display: flex;
    flex-direction: column;
    gap: 40px;
}

.main-title {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.main-title-t {
    color: var(--color-foreground-primary);

    text-transform: lowercase;
    font-size: 64px;
    line-height: 110%;
    font-weight: 500;
    letter-spacing: -0.3px; 
}

/* Основной блок */
.models-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.models-main {
    display: flex;
    gap: 20px;
    width: 100%;
    height: 575px;
}

.models-main-model,
.models-main-model-img {
    flex: 1;
    height: 100%;
}

.models-main-model-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.models-main-model {
    height: 100%;

    display: flex;
    flex-direction: column;
    gap: 20px;
    border: 1px solid var(--color-foreground-primary);

    position: relative;
}

.model-container {
    width: 100%;
    /* height: 465px; */
    flex: 1;

    align-items: center;
    display: flex;
    justify-content: center;
}

/* информация о товаре */
.models-main-info {
    display: flex;
    justify-content: space-between;

    width: 100%;

    border-top: 1px solid var(--color-foreground-primary);
    padding: 20px 16px;
}

.models-main-info-i {
    display: flex;
    gap: 98px;
}

.models-main-info-header {
    display: flex;
    flex-direction: column;

    gap: 10px;
}

.models-main-info-header .models-main-info-status {
    display: none;
}

.models-main-info-name {
    width: 353px;
    font-size: 32px;
    line-height: 110%;
    font-weight: 500;
    letter-spacing: -0.2px;
    color: var(--color-foreground-primary);

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 70px;

    text-transform: lowercase; 
}

/* статусы */
.status-sticker,
.models-main-info-status {
    padding: 6px 8px;
    border-radius: 24px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    font-size: 14px;
    line-height: 110%;
    font-weight: 500;
    letter-spacing: -0.2px;

    text-transform: lowercase; 

    width: fit-content;
}

.status-sticker {
    position: absolute;
    top: 24px;
    left: 24px;
}

.status-sticker.in,
.models-main-info-status.in {
    background-color: var(--color-foreground-primary);
    color: var(--color-background-primary);
}

.models-main-info-status.out,
.status-sticker.out {
    background-color: var(--color-background-primary);
    color: var(--color-foreground-primary);
    border: .8px solid var(--color-foreground-primary);
}

/* группа */
.models-main-info-group {
    display: flex;
    flex-direction: column;
    gap: 16px;

    display: none;
}

.info-group-title {
    font-size: 24px;
    line-height: 110%;
    font-weight: 500;
    letter-spacing: -0.2px;
    color: var(--color-foreground-primary);
}

.specs-list {
    display: flex;
    gap: 15px;
    align-items: center;
}

.spec-item {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 16px;
    height: 38px;
    border: 0.8px solid var(--color-foreground-primary);
    border-radius: 24px;
    font-size: 14px;
    line-height: 110%;
    color: var(--color-foreground-primary);
    font-weight: 500;
    letter-spacing: -0.2px;
    text-transform: lowercase;
}

.desc-text {
    font-size: 16px;
    line-height: 110%;
    color: var(--color-foreground-opacity);
    font-weight: 500;
    letter-spacing: -0.2px;
    text-transform: lowercase;

    width: 623px;
}

.color-item {
    width: 30px;
    height: 30px;
    border-radius: 9999px;
}

/* перейти к товару */
.models-main-info-btn {
    display: flex;
    justify-content: center;
    align-items: center;

    padding: 0 48px;
    height: 48px;
    background-color: var(--color-foreground-primary);
    border-radius: 24px;

    font-size: 16px;
    line-height: 110%;
    color: var(--color-background-primary);
    font-weight: 600;
    letter-spacing: -0.2px;
    text-transform: lowercase;
}

/* подробнее */
.models-main-model-big {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 16px;
    height: 38px;
    border: 0.8px solid var(--color-foreground-primary);
    border-radius: 24px;
    font-size: 16px;
    line-height: 110%;
    color: var(--color-foreground-primary);
    font-weight: 500;
    letter-spacing: -0.2px;
    text-transform: lowercase;
    gap: 8px;

    position: absolute;
    top: 24px;
    right: 24px;

    cursor: pointer;
}

.models-main-model-big img {
    width: 24px;
    height: 24px;

    object-fit: contain;
}

/* стили при подробнее */
.models-container.show .models-main-model-img,
.models-container.show .status-sticker {
    display: none !important;
}

.models-container.show .models-main {
    height: 823px;
}

.models-container.show .models-others {
    max-height: 360px;
}

.models-container.show .models-main-info-status,
.models-container.show .models-main-info-group {
    display: flex;
}

.models-container.show .models-main-info {
    padding: 24px;
}

.models-main-info-group.des.hidden {
    display: none;
}

/* другие */
.models-others-wrapper {
    position: relative;
    width: 100%;
}

.models-others {
    display: flex;
    gap: 32px 20px;
    width: 100%;
    flex-wrap: wrap;
    overflow-y: auto;
    max-height: 752px;
}

.models-others::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.models-others-arrows {
    display: flex;
    gap: 12px;
    padding: 4px;
    border-radius: 150px;
    background-color: var(--color-background-primary);
    position: absolute;
    right: 0;
    top: calc((100% - 80px) / 2);
    transform: rotate(-90deg);
    right: -60px;
}

.arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 60px;
    border-radius: 9999px;
    background-color: var(--color-foreground-primary);
    cursor: pointer;
}

.arrow.dis {
    opacity: 25%;
}

.arrow div {
    width: 31px;
    height: 15px;
    background-image: url(/static/img/general/arrow-right-light-icon.svg);
    background-position: 50%;
    background-repeat: no-repeat;
    background-size: cover;
}

.arrow.pred {
    transform: rotate(-180deg);
}

.model-card {
    display: flex;
    flex-direction: column;
    width: 360px;
    height: 360px;

    position: relative;
    cursor: pointer;
}

.model-card-img {
    width: 100%;
    height: 100%;
}

.model-card-img img {
    width: 100%;
    height: 100%;
}

.model-card-info {
    background-color: var(--color-background-primary);
    border: 1px solid var(--color-foreground-primary);
    padding: 13px 12px;

    width: 100%;
    font-size: 20px;
    line-height: 110%;
    font-weight: 500;
    letter-spacing: -0.2px;
    color: var(--color-foreground-primary);

    text-transform: lowercase; 
}

.model-card-name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 22px;
}

/* Блок 'Пустая 3Д галерея' */
.models-null {
    display: flex;
    justify-content: space-between;
}

.models-null-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.models-null-info-title {
    color: var(--color-foreground-primary);
    text-transform: lowercase;
    font-size: 64px;
    line-height: 110%;
    font-weight: 500;
    letter-spacing: -0.3px; 
}

.models-null-btn {
    width: fit-content;
    padding: 0 48px;
}

.models-null-img {
    width: 590px;
    height: 320px;
}

.models-null-img img {
    width: 100%;
    height: 100%;

    object-fit: contain;
}
/* Конец блока 'Пустая 3Д галерея' */

/* Адаптация на маленькие экраны (< 1920)*/
/* 1440 */
@media screen and (max-width: 1575px) {

}


/* 1280 */
@media screen and (max-width: 1390px) {
    /* Блок 'Пустая корзина' */
    .models-null-info-title {
        font-size: 48px;
        line-height: 110%;
    }

    .models-null-img {
        width: 450px;
        height: 280px;
    }
    /* Конец блока 'Пустая корзина' */
}

/* 768 */
@media screen and (max-width: 1200px) {
    .main {
        gap: 32px;
    }

    /* Блок 'Пустая корзина' */
    .models-null-img {
        width: 313px;
        height: 180px;
    }

    .models-null-info {
        max-width: 379px;
    }
    /* Конец блока 'Пустая корзина' */
}

/* 375 */
@media screen and (max-width: 725px) {
    .main {
        padding: 48px 0;
        width: calc(100vw - 12px * 2);

        gap: 32px;
    }

    .main-title {
        gap: 16px;
    }

    .to-catalog-t {
        font-size: 14px;
        line-height: 110%;
    }

    /* Блок 'Пустая корзина' */
    .models-null {
        flex-direction: column;
        gap: 48px;
    }

    .models-null-info {
        max-width: 100%;
    }

    .models-null-info-title {
        font-size: 32px;
        line-height: 110%;
    }

    .models-null-btn {
        width: 100%;
    }

    .models-null-img {
        width: 100%;
    }
    /* Конец блока 'Пустая корзина' */
}