/* Калькулятор */
.calculator {
    display: flex;
    gap: 40px;
    margin-top: 30px;
    padding: 30px;
    background-color: #f3fcfb;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .calculator {
        flex-direction: column;
        padding: 20px;
    }
}

.calculator-section {
    flex: 1;
}

.calculator-section h3 {
    font-size: 1.25rem;
    color: #38ccb5;
    margin-bottom: 20px;
    font-weight: 600;
    margin-top: 0;
}

div.calculator > div:nth-child(2) > div > div:last-child,
.calculator-section > div{
    margin-bottom: 0;
}

.calculator-field {
    margin-bottom: 20px;
}

.calculator-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.slider {
    flex: 1;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    position: relative;
    cursor: pointer;
}

.slider-track {
    position: absolute;
    height: 100%;
    background: #38ccb5;
    border-radius: 3px;
    left: 0;
    right: 0;
}

.slider-thumb {
    width: 16px;
    height: 16px;
    background: #38ccb5;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 2;
}

.slider-values {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #666;
    margin-top: 5px;
}

.input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.input-group input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.input-group input:focus {
    outline: none;
    border-color: #38ccb5;
}

.input-group span.unit {
    display: flex;
    align-items: center;
    padding: 0 10px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.875rem;
    color: #666;
}

.checkbox-group {
    margin-bottom: 15px;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;

}

.checkbox-item input[type="checkbox"] {
    opacity: 0;
    z-index: -1;
    position: absolute;
    visibility: hidden;

    font-size: 20px;
    line-height: 130%;
    color: #111;
    padding: 5px 5px 5px 10px;
    width:auto;
    background: #fff;
    border-radius: 3px;
    border: none;
    border: 1px solid #38ccb5;
    margin-bottom: 15px;
}

.checkbox-item label {
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    display: block;
    left: 0;
    top: 0;
    min-width: 150px;
    line-height: 1.4;
    font-size: 0.95rem;
}

.checkbox-item label:before {
    content: "";
    width: 16px;
    height: 16px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 3px;
    position: absolute;
    left: 0;
    top: 2px;
}



.checkbox-item input:checked+label:before {
    background: #38ccb5;
    border: 1px solid #38ccb5;
}

.checkbox-item label::after {
    content: "✔";
    color: rgb(255, 255, 255);
    position: absolute;
    top: 0px;
    left: 3px;
    opacity: 0;
}

.checkbox-item input:checked+label:after {
    opacity: 1;
}

.result {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-price {
    font-size: 2rem;
    font-weight: bold;
    color: #38ccb5;
}

.submit-btn {
    padding: 12px 24px;
    background-color: #38ccb5;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.submit-btn:hover {
    background-color: #38ccb5;
}

.submit-btn svg {
    width: 18px;
    height: 18px;
}

.sum-form > div {
    border: #38ccb5 1px solid;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 16px;
    font-size: 2rem;
    color: var(--primary-color);
}