

/* СТИЛИ КАЛЬКУЛЯТОРА */
.calc-wrapper {
    background: #f8f9fa;
    border-radius: 40px;
    padding: 10px;
    max-width: 1200px;
    margin: 0 auto;
    color: #121212;
    box-shadow: 0 20px 60px rgba(0,0,0,0.05);
}

.calc-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
}

.step-box { margin-bottom: 35px; }
.step-label { 
    display: block; 
    font-weight: 700; 
    margin-bottom: 15px; 
    font-size: 14px; 
    text-transform: uppercase; 
    letter-spacing: 1px;
    color: #888;
}

.type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
}

.type-card {
    background: #fff;
    border: 2px solid #eee;
    padding: 20px;
    border-radius: 20px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s var(--ease);
}

.type-card .card-icon { font-size: 24px; margin-bottom: 8px; }
.type-card span { font-weight: 600; font-size: 14px; color: #121212; }
.type-card.active {
    border-color: var(--accent);
    background: rgba(195, 240, 94, 0.05);
    transform: translateY(-5px);
}

.calc-input {
    width: 100%;
    padding: 15px 20px;
    border-radius: 15px;
    border: 2px solid #eee;
    font-size: 16px;
    font-family: inherit;
    font-weight: 600;
    outline: none;
    transition: 0.3s;
    box-sizing: border-box;
}
.calc-input:focus { border-color: var(--accent); }

.toggle-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 15px 20px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #eee;
    transition: .4s;
    border-radius: 34px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 18px; width: 18px;
    left: 4px; bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
input:checked + .slider { background-color: var(--dark); }
input:checked + .slider:before { transform: translateX(24px); }

.hidden-options {
    max-height: 0;
    overflow: hidden;
    transition: 0.5s var(--ease);
    margin-bottom: 10px;
}
.hidden-options.show { max-height: 150px; margin-top: 10px; }

.sub-type-grid {
    display: flex;
    gap: 10px;
    background: #eee;
    padding: 5px;
    border-radius: 15px;
}
.sub-card {
    flex: 1;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    transition: 0.3s;
}
.sub-card.active { background: #fff; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }

.calc-result {
    background: var(--dark);
    color: #fff;
    border-radius: 30px;
    padding: 40px;
    position: sticky;
    top: 100px;
    height: fit-content;
}

.result-inner h4 { margin: 0 0 20px; font-size: 18px; color: rgba(255,255,255,0.5); font-weight: 400; }
.result-price { font-size: 48px; font-weight: 800; margin-bottom: 30px; color: var(--accent); }
.result-details { list-style: none; padding: 0; margin: 0 0 20px; }
.result-details li { 
    padding: 12px 0; 
    border-bottom: 1px solid rgba(255,255,255,0.1); 
    display: flex; 
    justify-content: space-between;
    font-size: 14px;
}
.result-details li span { font-weight: 700; }

.calc-order-btn {
    width: 100%;
    padding: 20px;
    background: var(--accent);
    border: none;
    border-radius: 15px;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}
.calc-order-btn:hover { transform: scale(1.02); filter: brightness(1.1); }
.calc-note { font-size: 11px; text-align: center; margin-top: 15px; color: rgba(255,255,255,0.3); }

@media (max-width: 992px) {
    .calc-grid { grid-template-columns: 1fr; }
    .calc-result { position: static; }
}


