/* Настройки хэдеров */
.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;
    max-width: 100%;
    transition: max-width 0.3s ease, flex 0.3s ease;
    height: 100%;
}

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

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

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

    position: relative;
}

.model-container {
    width: 100%;
    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: 0;
}

.models-main-info-group-cont {
    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: 451px;
    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);
    text-transform: lowercase;
}

.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 {
    margin: 6px;
    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-info-btn span {
    display: contents;
}

/* подробнее */
.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 .status-sticker {
    display: none !important;
}

.models-container.show .models-main-model-img {
    flex: 0;
    max-width: 0;
    opacity: 0;
    overflow: hidden;
}

.models-container.show .models-main-info-i {
    gap: 98px;
}

.models-container.show .models-main-info-name {
    width: 353px;
}

.models-container.show .models-main {
    height: 974px;
    gap: 0;
}

.models-container.show .models-others {
    max-height: calc(360px + 5px);
}

.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: calc(360px * 2 + 32px + 5px * 2);
}

.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: calc((100% - 20px * 3) / 4);
    height: 360px;

    position: relative;
    cursor: pointer;
}

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

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

    object-fit: cover;
}

.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; 
    position: absolute;
    left: 0;
    bottom: 0;
}

.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) {
    /* Основной блок */
    .models-main {
        height: 515px;
    }

    /* информация о товаре */
    .models-container.show .models-main-info-i {
        gap: 55px;
    }

    .models-main-info-group-cont {
        gap: 55px;
    }

    /* статусы */
    .status-sticker {
        top: 20px;
        left: 20px;
    }

    /* группа */
    .specs-list {
        flex-wrap: wrap;
    }

    .desc-text {
        font-size: 14px;
        line-height: 110%;

        width: 348px;
    }

    .models-main-info-name {
        font-size: 24px;
        line-height: 110%;

        height: 52px;
        width: 264px;
    }

    /* подробнее */
    .models-main-model-big {
        top: 20px;
        right: 20px;
    }

    /* стили при подробнее */
    .models-container.show .models-main {
        height: 1008px;
    }

    .models-container.show .models-main-info-name {
        width: 353px;
    }

    /* другие */
    .models-others-arrows {
        top: calc((100% - 64px) / 2);
        right: -48px;
    }

    .arrow {
        width: 64px;
        height: 48px;
    }
}


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

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

    /* информация о товаре */
    .models-main-info-name {
        font-size: 24px;
        line-height: 110%;

        height: 52px;
        width: 291px;
    }

    /* статусы */
    .status-sticker {
        top: 16px;
        left: 16px;
    }

    /* группа */
    .models-main-info-group {
        gap: 16px;
    }

    .specs-list {
        gap: 8px;
    }

    /* подробнее */
    .models-main-model-big {
        top: 16px;
        right: 16px;
    }

    /* стили при подробнее */
    .models-container.show .models-main {
        height: 1001px;
    }

    .models-container.show .models-others {
        max-height: calc(330px + 5px);
    }

    .models-container.show .models-main-info-name {
        width: 265px;
    }

    /* другие */
    .models-others {
        max-height: calc(330px * 2 + 32px + 5px);
    }

    .model-card {
        width: calc((100% - 20px * 3) / 4);
        height: 330px;
    }
}

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

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

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

    .main {
        gap: 32px;
    }

    .main-title-t {
        font-size: 48px;
        line-height: 110%;
    }

    /* Основной блок */
    .models-container {
        gap: 32px;
    }

    /* информация о товаре */
    .models-main-info {
        padding: 20px 12px;
    }

    .models-main-info-i {
        flex-direction: column;
        gap: 0;
    }

    .models-main-info-group-cont {
        justify-content: space-between;
        flex-direction: row-reverse;
    }

    .models-main-info-header {
        gap: 8px;
    }

    .models-main-info-name {
        width: 160px;
        font-size: 20px;
        line-height: 110%;
        height: 66px;
        -webkit-line-clamp: 3;
    }

    .models-container.show .models-main-info-name {
        width: 407px;
        -webkit-line-clamp: 2;
        height: 70px;
        font-size: 32px;
        height: 110%;
    }

    /* статусы */
    .status-sticker {
        top: 12px;
        left: 12px;
    }

    /* группа */
    .info-group-title {
        font-size: 20px;
        line-height: 110%;
    }

    .desc-text {
        width: 348px;
    }

    /* перейти к товару */
    .models-main-info-btn {
        padding: 0 21.5px;
    }

    .models-main-info-btn span {
        display: none;
    }

    /* подробнее */
    .models-main-model-big {
        top: 24px;
        right: 24px;
        background-color: var(--color-background-primary);
    }

    /* стили при подробнее */
    .models-container.show .models-main {
        height: 864px;
    }

    .models-container.show .models-main-info-i {
        gap: 20px;
    }

    .models-container.show .models-others {
        max-height: calc(250px + 5px);
    }

    .models-container.show .models-main-info {
        padding: 24px;
        flex-direction: column;
        gap: 24px;
    }

    .models-container.show .models-main-info-btn {
        width: 100%;
    }

    .models-container.show .models-main-info-btn span {
        display: contents;
    }

    /* другие */
    .models-others {
        gap: 24px 20px;
        max-height: 399px;
    }

    .models-others-arrows {
        display: none;
    }

    .model-card {
        width: calc((100% - 20px * 2) / 3);
        height: 250px;
    }

    .model-card-info {
        padding: 11px 12px;

        font-size: 16px;
        line-height: 110%;
    }

    .model-card-name {
        height: 18px;
    }

    .models-main-model-big {
        top: 12px;
        right: 12px;
    }

    body.models-expanded .header-cont-2,
    body.models-expanded .main-title {
        display: none;
    }

    body.models-expanded .main {
        padding: 20px 0 100px;
    }

}

/* 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%;
    }

    /* Блок 'Пустая 3Д галерея' */
    .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%;
    }
    /* Конец блока 'Пустая 3Д галерея' */

    .main {
        width: calc(100vw - 12px * 2);

        gap: 24px;
    }

    /* Основной блок */
    .models-container {
        gap: 20px;
    }

    .models-main {
        flex-direction: column;
        gap: 20px;
        height: fit-content;
    }

    .models-main-model-img  {
        flex: none;
        height: 184px;
    }

    .models-main-model {
        height: 515px;
        flex: none;
    }

    /* группа */
    .models-main-info-group {
        gap: 12px;
    }

    .models-main-info-group-cont {
        flex-direction: column-reverse;
        gap: 24px;
    }

    .desc-text {
        width: 100%;
    }

    /* подробнее */
    .models-main-model-big {
        top: 24px;
        right: 24px;
    }

    /* стили при подробнее */
    .models-container.show .models-main {
        height: 877px;
    }

    .models-container.show .models-main-info-name {
        width: 100%;

        height: 52px;
        font-size: 24px;
        height: 110%;
    }

    .models-container.show .models-others {
        max-height: calc(198px + 5px);
    }

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

    .models-container.show .models-main-model {
        flex: 1;
    }

    /* другие */
    .models-others {
        gap: 24px 8px;
        width: 100%;
        max-height: 321px;
    }

    .model-card {
        width: calc((100% - 8px) / 2);
        height: 198px;
    }

    .model-card-info {
        padding: 9px 8px;

        font-size: 14px;
        line-height: 110%;
    }

    .model-card-name {
        height: 15px;
    }

    .models-main-model-big {
        top: 12px;
        right: 12px;
    }
}