<style>
 .centered-block {
            margin: 0;
            
            display: flex;
            justify-content: center; /* Центр по горизонтали */
            align-items: center; /* Центр по вертикали */
            text-align: center;
        }
        .containerQ {
            display: flex;
            justify-content: center;
	    align-items: center
            margin: 20px;
        }
        
        .gridQ {
            display: inline-grid;
            grid-template-rows: auto auto; /* 2 строки */
            grid-template-columns: repeat(4, auto); /* 5 столбцов */
            gap: 10px; /* промежуток между ячейками */
            border: 1px solid #ccc; /* граница для наглядности */
            padding: 10px;
        }
        
        .cellQ {
            padding: 8px;
            border: 1px solid #eee;
            white-space: nowrap; /* предотвращаем перенос текста */
        }
    </style>