.main_type_product{
    min-height: 80vh;
    /*padding: 15px 30px;*/
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 100%;
    background: transparent;
    padding: 70px 100px;
}

.product__wrapper{
    width: 100%;
    display: grid;
    gap: 30px;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: max-content 1fr 1fr;
}

.product {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, max-content);
    -moz-column-gap: 20px;
    column-gap: 20px;
    color: #fff;

}

.product__display {
    grid-row: 2/3;
    grid-column: 1/2;
}

.product__title {
    text-align: center;
    grid-row: 1/2;
    grid-column: 1/-1;
    text-transform: uppercase;
    font-size: 20px;
    /*text-align: left;*/
}

.product__code {
    font-size: 17px;
    text-align: left;
}

/*price*/
.price {
    grid-row: 2/3;
    grid-column: -2/-1;
    margin-top: 43px;
    border-radius: 12px;
    padding: 6px;
    /*box-shadow: 4px 4px 8px 0px rgba(34, 60, 80, 0.2);*/
    /*height: 400px;*/
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-info {
    display: flex;
    /*font-size: 14px;*/
    justify-content: space-between;
    align-items: center;
    /*border-bottom: 1px solid #ffffff54;*/
}


/*.product-info__name {*/
/*    font-size: 14px;*/
/*}*/


/*calculator*/
.calculator {
    display: flex;
    flex-direction: column;
}

.calculator__price {
    display: flex;
    flex-direction: column;
    padding: 15px 0;
}

.calculator--regular-price {
    font-size: 17px;
    text-decoration: line-through;
    text-decoration-color: #666;
    text-align: left;
    font-weight: 700;
}

.calculator__special-price {
    font-size: 24px;
    text-align: left;
    font-weight: 700;
}

.calculator__form {
    display: flex;
    gap: 12px;
}

.calculator__count {
    color: #fff;
    max-width: 80px;
    border-radius: var(--main-border);
    background: transparent;
    padding: 7px;
    font-size: 17px;
    font-weight: 600;
    outline: none;
}

.calculator__submit {
    font-size: 16px;
    padding: 10px 15px;
    color: #fff;
    background-color: inherit;
    /* border: 1px solid #666; */
    border: none;
    border-radius: 5px;
    text-align: center;
    /*box-shadow:*/
    /*        inset 0 0 10px rgba(255, 224, 102, 0.2),*/
    /*        inset 0 0 5px rgba(255, 224, 102, 0.15),*/
    /*        inset 0 0 2px rgba(255, 224, 102, 0.05),*/
    /*        0 2px 14px rgba(0, 0, 0, 0.25),*/
    /*        0 5px 5px rgba(0, 0, 0, 0.22);*/
}

.description-info{
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    gap: 12px;
}

.characters {
    grid-row: 2/-2;
    grid-column: 2/4;
}

.description {
    grid-row: 3/-1;
    grid-column: 2/4;
    margin-top: 24px;
    max-width: 100%;
    border-top: 2px solid #ffffff54;
    padding: 15px 2%;
    margin-bottom: 30px;
}

.description p {
    margin: 0;
}

.description h4 {
    text-transform: uppercase;
}

.series__products {
    grid-column: 1/-1;
    padding: 0 2%;
    width: 100%;
}

.series__products-title {
    margin-bottom: 35px;
}

.category-container {
    display: grid;
    grid-template-columns: 1fr; /* Два столбца */
    gap: 20px; /* Промежутки между категориями */
    align-items: stretch; /* Растягиваем элементы по высоте */
}

.category-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%; /* Делаем все карточки одинаковыми по высоте */
    padding: 20px;
    border-radius: 12px; /* Закругленные углы */
    /*box-shadow: inset 0 0 20px rgba(255, 224, 102, 0.2),*/
    /*inset 0 0 10px rgba(255, 224, 102, 0.15),*/
    /*inset 0 0 5px rgba(255, 224, 102, 0.05),*/
    /*0 5px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);*/
}

.category-item h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.information__group {
    flex-grow: 1; /* Заполняет доступное пространство, выравнивая высоту */
}

.information__item-wrapper {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    border-bottom: 1px solid #fff;
}

.info__value-wrapper {
    display: flex;
    flex-wrap: wrap;
    max-width: 50%;
    justify-content: flex-end;
}

.information__item-wrapper {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    /*border-bottom: 1px solid rgba(255, 255, 255, 0.3); !* Прозрачный белый *!*/
    /*box-shadow: 0 4px 5px rgba(34, 60, 80, 0.2); !* Мягкая тень вниз *!*/
    /*padding-bottom: 4px; !* Немного отступа перед границей *!*/
}

.to-back{
    border: 2px solid var(--whiteLight);
    margin: 0 auto;
    padding: 10px;
}

/*модалка*/

.modal_type_characters {
    position: fixed;           /* фиксируем на экране */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;             /* по умолчанию скрыта */
    justify-content: center;   /* центрируем контент */
    align-items: center;
    background: rgba(0, 0, 0, .7); /* оверлей */
    z-index: 1000;             /* поверх контента */
}

.modal_type_characters__content {
    background: #fff;
    color: #000;
    border-radius: var(--main-border);
    min-width: 50%;
    max-width: 80%;
    max-height: 80%;
    overflow-y: auto;          /* если контент длинный */
    padding: 20px;
    box-sizing: border-box;
    position: relative;
}

.modal_type_characters__params {
    display: flex;
    flex-direction: column;
    gap: 8px; /* расстояние между строками */
}
.modal_type_characters__row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.modal_type_characters__name {
    display: flex;
    flex-direction: column;
    justify-content: end;
    max-width: 50%;
    position: relative;
    padding-right: 10px; /* небольшой отступ до значения */
}

.modal_type_characters__dots {
    flex-grow: 1; /* растягиваем точки на оставшееся место */
    border-bottom: 1px dotted #666; /* имитация точек */
    margin-right: 8px;
}

.modal_type_characters__value {
    flex-shrink: 0;
    margin-left: 10px;
    max-width: 50%;
    text-align: right;
}

.modal_type_characters__header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal_type_characters__title{
    flex: 1;
    text-align: center;
    color: var(--font-black);
}

.modal_type_characters__close{
    width: 20px;
    height: 20px;
    background-color: transparent;
    border-radius: var(--main-border);
    border: 1px solid black;
}
.modal_type_characters__close:hover {
    cursor: pointer;
}

.modal_type_characters__value,
.modal_type_characters__name,
.modal_type_characters__dots,
.modal_type_characters__close
{
    color: var(--font-black)
}


@media (max-width: 768px) {
    .main_type_product{
        padding: 15px;
    }
    .product__wrapper{
        width: 100%;
        display: flex;
        gap: 12px;
        flex-direction: column;
        justify-content: center;
    }

}