.calculator {
    background-color: #fff;
    padding: 40px 60px;
    border: 2px solid #AB844A;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 560px;
    max-width: 100%;
    margin: 80px auto;
}

.calculator__title {
    text-align: center;
    font-size: 28px!important;
    line-height: 32px!important;
    margin-bottom: 42px!important;
    color: #000!important;
    font-weight: 600!important;

}

.calculator__form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.calculator__field-group {
    display: flex;
    flex-direction: column;
}

.calculator__label {
    margin-bottom: 0!important;
    color: #000!important;
    font-weight: 600!important;
}

.calculator__input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}


.calculator__input,
.calculator__input-field {
    padding: 8px!important;
    font-size: 16px!important;
    border: 1px solid #ccc!important;
    box-sizing: border-box;
}


.calculator__input {
    flex: 1;
    margin: 0!important;
    padding: 0!important;
    border: none!important;
}

.calculator__input-field {
    width: 95px!important;
    color: #000!important;
}
.calculator__input-wrapper .calculator__input-field::-webkit-input-placeholder {
    color: #808285!important;
}

.calculator__unit {
    font-size: 16px;
    width: 34px;
    text-align: right;
    color: #000;
    word-wrap: normal;
}

.calculator__button {
    padding: 14px 32px;
    font-size: 18px;
    background-color: #AB844A!important;
    color: white!important;
    border: none!important;
    cursor: pointer;
    align-self: center;
    transition: background-color 0.3s;
}

.calculator__button:hover {
    background-color: #9A6A3A!important;
}

.calculator__result {
    margin-top: 24px;
    border-radius: 5px;
    background-color: #FFFFFF;
    color: #000000;
    font-size: 16px;
}

.calculator__result table {
    width: 100%;
    border-collapse: collapse;
}

.calculator__result tr:nth-child(even) {
    background-color: #f2f2f2;
}

.calculator__result td {
    padding: 15px;
}

.calculator__result td:last-child {
    text-align: right;
    white-space: nowrap;
}

.calculator__result tr:first-child td:last-child {
    color: black;
    font-weight: 600;
}

.calculator__result tr:last-child td:last-child {
    color: red;
    font-weight: 600;

}

.calculator__result tr:not(:first-child):not(:last-child) td:last-child {
    color: green;
    font-weight: 600;

}

@media (max-width: 576px) {
    .calculator {
        padding: 40px 30px;
        width: 100%;
    }
    .calculator__unit{
        font-size: 14px;
        width: 20px;
    }
    .calculator__input-wrapper{
        gap: 10px;
    }
    .calculator__input-field{
        font-size: 14px!important;
        width: 70px!important;
    }
    .calculator__title{
        font-size: 24px!important;
    }
}