@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto-Regular.ttf') format('ttf');
  }
body {
    background-color: rgb(212 217 255);
}
body.modal-open {
    overflow: hidden;
}
.fade-out {
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}
.fade-in {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.show{
    opacity: 1;
    transition: opacity 0.3s ease;
}
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); 
    z-index: 500;
}
.modal-block {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #5e80cb;
    width: 30%;
    height: 230px;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: 0.4s ease;
}

.modal-block__input{
    display: flex;
    flex-direction: column;
    width: 70%;
    margin: 0 auto;
}
.modal-block__input .main-input {
    margin-right: 0px;
    margin-bottom: 5px;
}
.modal-block__input .main-btn {
    width: 70%;
    margin: 0 auto;
}
.icon-block{
    display: flex;
    justify-content: flex-end;
}
.modal-block i {
    font-size: 25px;
    cursor: pointer;
    color: white;
    transition: 0.2s;
}
.modal-block i:hover {
    color: #a8afc9;
}
.main-title {
    font-size: 43px;
    letter-spacing: 10px;
    color: #5e80cb;
    font-family: 'IBM Plex Serif', serif;
}
.main-block{
    position: relative;
    margin: 0 auto;
    text-align: center;
    padding: 0px 0px 10px;
    width: 100%;

}
.main-input{
    padding: 10px 15px;
    margin-right: 10px;
    border-radius: 15px;
    border: 2px solid rgb(148, 148, 148);
    font-size: 16px;
}
.main-input:last-child {
    margin-right: 0px;
}
.main-input::placeholder {
    font-size: 15px;
}
.main-input:focus {
    border-color: rgb(58, 161, 27);
    outline: none;
}

.main-btn{
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 15px;
    font-family: Arial, Helvetica, sans-serif;
    color: white;
    border: none;
    background-color: green;
    transition: 0.3s ease;
    font-size: 15px;
}
.main-btn:hover {
    background-color: rgb(4, 202, 4);
}
.block-input{
    display: flex;
    justify-content: center;
    align-items: center;
}
.cell-name{
    color: rgb(113, 140, 205);
    font-weight: 600;
    font-family: Arial, Helvetica, sans-serif;
}
.table-btn{
    cursor: pointer;
    padding: 7px 15px;
    border-radius: 10px;
    font-family: Arial, Helvetica, sans-serif;
    color: white;
    border: none;
    background-color: green;
    transition: 0.3s ease;
    font-size: 15px;
    margin-right: 5px;
}
.table-btn:hover {
    background-color: rgb(4, 202, 4);
}
.table-btn__color{
    cursor: pointer;
    padding: 7px 8px;
    border-radius: 10px;
    font-family: Arial, Helvetica, sans-serif;
    color: white;
    border: none;
    background-color: rgb(191, 0, 0);
    transition: 0.3s ease;
    font-size: 15px;
}
.table-btn__color:hover {
    background-color: rgb(255, 6, 6);
}
.text-block{
    font-family: 'IBM Plex Serif', serif;
    font-size: 30px;
    color: #5e80cb;
    margin-top: 80px;
}
.total-block {
    background-color: #5e80cb;
    border-radius: 15px;
    display: flex;
    width: 43%;
    margin: 30px auto;
    padding: 0px 10px;
    align-items: center;
    justify-content: space-between;
}
.total-text{
    color: white;
    font-family: 'IBM Plex Serif', serif;
    margin: 10px 0px;
    font-size: 28px;
}
.table-container {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0px;
    padding: 0px;
    background-color: white;
    border-radius: 4px;
    width: 44%;
    margin: 0 auto;
    box-shadow: 0px 0px 13px 0px rgba(0,0,0,0.75);
    margin-top: 40px;
}

.table-cell {
    border: 1px solid #ddd;
    padding: 5px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgb(113, 140, 205);
    font-weight: 600;
    font-family: Arial, Helvetica, sans-serif;
}
.cell-product{
    border: 1px solid #ddd;
    padding: 5px;
    font-size: 20px;
    display: flex;
    color: black;
    font-weight: 600;
    font-family: 'Roboto';
    justify-content: center;
    align-items: center;
}
.table-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* Задаем 6 столбцов для каждой строки */
    text-align: center;
}
@media (max-width: 1648px) {
    .table-container {
        width: 50%;
    }
}
@media (max-width: 1320px) {
    .table-container {
        width: 62%;
    }
}
@media (max-width: 1012px) {
    .table-container {
        width: 100%;
    }
    .total-block{
        width: 70%;
    }
    .modal-block {
        width: 40%;
    }
}
@media (max-width: 830px) {
    .block-input {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }
    .main-input {
        padding: 10px 88px 10px 8px;
        margin-bottom: 6px;
    }
    .main-btn {
        padding: 10px 83px;
        font-size: 18px;
    }
    .total-block {
        width: 95%;
    }
    .cell-product{
        flex-direction: column;
    }
    .table-btn {
        padding: 7px 0px;
        margin-right: 0px;
        margin-bottom: 3px;
        width: 77px;
    }
    .table-btn__color {
        padding: 7px 0px;
        width: 77px;
    }
    .modal-block {
        width: 58%;
    }
    .modal-block__input .main-btn {
        width: 80%;
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}
@media (max-width: 616px) {
    .table-container {
        display:unset;
    }
    .table-container__mobile{
        background-color: white;
        border-radius: 4px;
        margin: 0 auto;
        box-shadow: 0px 0px 13px 0px rgba(0,0,0,0.75);
        margin-top: 40px;
    }
    .table-cell__mobile {
        display: flex;
        align-items: center;
        justify-content: space-between;
        border: 1px solid #ddd;
        padding: 5px;
        color: rgb(113, 140, 205);
        font-size: 17px;
        letter-spacing: 0.9px;
        font-weight: 600;
        font-family: Arial, Helvetica, sans-serif;
    }
    .cell-product__mobile{
        font-size: 20px;
        color: black;
        font-weight: 600;
        font-family: 'Roboto';
    }
    .cell-product__btn{
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto;
    }
    .table-btn{
        width: 200px;
        margin-right: 8px;
        margin-bottom: 0px;
    }
    .table-btn__color {
        width: 200px;
    }
    .total-text{
        font-size: 22px;
    }
    .total-block{
        width: 90%;
    }
    .modal-block {
        width: 74%;
    }
}
@media (max-width: 470px) {
    .table-btn{
        width: 140px;
    }
    .table-btn__color {
        width: 140px;
    }
    .total-text{
        font-size: 21px;
    }
    .main-input {
        padding: 10px 2px 10px 10px;
        width: 98%;
        margin-right: 0px;
        margin-bottom: 6px;
    }
    .modal-block__input {
        width: 100%;
    }
    .modal-block__input .main-input {
        width: unset;
    }
    .icon-block{
        margin-bottom: 13px;
    }
}
@media (max-width: 370px) {
    .table-btn{
        width: 100px;
    }
    .table-btn__color {
        width: 100px;
    }
    .total-text{
        font-size: 17px;
    }
}