.task-block__age {
    flex: 1;
}

.task-block__img {
    max-width: 100%;
}

.task-block__img-wrapper {
    box-shadow: 0 0 20px 2px silver;
}

.task-block__img-wrapper-layer {
    z-index: 2;
    cursor: url(/img/paint.png), crosshair;
    width: 100%;
    height: 100%;
}

.rating-block {
    padding: 10px;
    background: var(--color13);
    border-radius: 10px;
}

.rating-title {
    font-weight: 600;
    margin-bottom: 10px;
}

.rating-buttons {
    display: flex;
    gap: 10px;
}

.rating-btn {
    padding: 8px 20px;
    background: #4B76AB;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 16px;
}

.rating-btn:hover {
    background: #365a8a;
}

.rating-btn:disabled {
    background: #aaa;
    cursor: not-allowed;
}

.rating-message {
    margin-top: 10px;
    padding: 10px;
    border-radius: 5px;
    display: none;
}

.rating-message.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.rating-message.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.rating-voted {
    color: #28a745;
    font-weight: 600;
}

.similar-tasks__title {
    font-size: 20px;
}

.similar-tasks__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.similar-tasks__card {
    border: 1px solid #555;
    padding: 10px;
}

.similar-tasks__img {
    width: 100%;
}

.similar-tasks__name {
    text-align: center;
}

#paint {
    touch-action: none; /* Отключает стандартные жесты браузера */
    -webkit-user-select: none; /* Отключает выделение */
    user-select: none;
}

.task-block__paint-wrapper {
    box-shadow: 0 0 20px 2px silver;
    height: 900px;
}

/*pain*/
.p_brush {
    background-size: cover;
    background-repeat: no-repeat;
}

.p_brush_tools {
    position: absolute;
    margin-top: 2px;
    margin-left: 2px;
    z-index: 3;
}

.p_brush_tool {
    border: 1px solid #aaa;
    float: left;
    background-size: cover;
    background-repeat: no-repeat;
    cursor: pointer;
}

.p_brush_tool#tool_0 {
    width: 20px;
    height: 20px;
    margin-left: 1px;
    border: 1px solid black;
}

.p_brush_tool#tool_1 {
    width: 25px;
    height: 25px;
    margin-left: 1px;
}

.p_brush_tool#tool_2 {
    width: 30px;
    height: 30px;
    margin-left: 1px;
}

.p_brush_tool#tool_3 {
    width: 35px;
    height: 35px;
    margin-left: 1px;
}

.p_brush_tool#tool_4 {
    width: 40px;
    height: 40px;
    margin-left: 1px;
}

.p_brush_tool#tool_5 {
    width: 50px;
    height: 50px;
    margin-left: 1px;
}

.p_brush_tool#tool_6 {
    width: 55px;
    height: 55px;
}

#p_palit {
    position: relative;
    cursor: pointer;
    margin: 3px;
    border: 1px solid #aaa;
    z-index: 3;
}

#p_palit_map {
    cursor: pointer;
}

#p_app {
    width: 18px;
    height: 700px;
    position: relative;
    float: left;
    margin-top: 90px;
    left: -19px;
    background: #ddd url(/img/l_open.png) 5px 50% no-repeat;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    border: solid 1px #aaa;
    cursor: default;
    opacity: 1;
    z-index: 1000;
    overflow-y: auto;
    overflow-x: hidden;
}

#p_app table {
    position: relative;
    left: 10px;
    border-collapse: separate;
    border-spacing: 20px;
}

#p_app table td,
#p_app table th {
    padding: 0;
}

.p_dop {
    width: 60px;
    height: 60px;
    background-size: contain;
    background-color: #fff;
    border-radius: 5px;
    opacity: 1;
    cursor: pointer;
    border: solid 1px #aaa;
    background-repeat: no-repeat;
    background-position: 50% 50%;
}

/*pain*/

@media (max-width: 992px) {
    .similar-tasks__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}