
.calculator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
    width: 200px;
    text-align: center;
}

.calculator h2 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

#calc-display {
    width: 100%;
    height: 40px;
    font-size: 18px;
    text-align: right;
    padding: 5px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
}

button {
    padding: 10px;
    font-size: 16px;
    background-color: #f4f4f4;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

button:hover {
    background-color: #ddd;
}

/* Стиль для операторов */
button:nth-child(4),
button:nth-child(8),
button:nth-child(12),
button:nth-child(16) {
    background-color: #ff9500;
    color: white;
}

button:nth-child(4):hover,
button:nth-child(8):hover,
button:nth-child(12):hover,
button:nth-child(16):hover {
    background-color: #e08c00;
}
