/* ========== КАЛЬКУЛЯТОРЫ ========== */
.calculator-page {
    min-height: 80vh;
    padding: 60px 0;
}

.calculator-container {
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(32, 33, 56, 0.8) 0%, rgba(26, 27, 46, 0.9) 100%);
    padding: 50px;
    border-radius: 20px;
    border: 1px solid rgba(2, 204, 203, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.calc-intro {
    text-align: center;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
}

.calc-step {
    margin-bottom: 35px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInStep 0.5s ease forwards;
}

@keyframes fadeInStep {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.calc-step label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #02CCCB;
    margin-bottom: 12px;
}

.calc-step input[type="number"],
.calc-step input[type="text"],
.calc-step select {
    width: 100%;
    padding: 10px 0;
    background-color: rgba(22, 23, 41, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #FFFFFF;
    font-size: 18px;
    transition: all 0.3s ease;
    text-align: center;
}

.calc-step input:focus,
.calc-step select:focus {
    outline: none;
    border-color: #02CCCB;
    background-color: rgba(22, 23, 41, 0.8);
}

.calc-step input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.calc-range-wrapper {
    position: relative;
    margin-top: 10px;
}

.calc-range-value {
    position: absolute;
    right: 0;
    top: -35px;
    background-color: #8785FF;
    color: #FFFFFF;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    min-width: 65px;
    text-align: center;
}

input[type="range"] {
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, rgba(2, 204, 203, 0.3) 0%, rgba(135, 133, 255, 0.3) 100%);
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #02CCCB 0%, #8785FF 100%);
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(2, 204, 203, 0.5);
}

input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #02CCCB 0%, #8785FF 100%);
    cursor: pointer;
    border-radius: 50%;
    border: none;
}

.calc-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #02CCCB 0%, #8785FF 100%);
    border: none;
    border-radius: 12px;
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 30px;
}

.calc-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(2, 204, 203, 0.4);
}

.calc-btn:active {
    transform: translateY(0);
}

.calc-result {
    margin-top: 50px;
    padding: 40px;
    background: linear-gradient(135deg, rgba(2, 204, 203, 0.1) 0%, rgba(135, 133, 255, 0.1) 100%);
    border-radius: 16px;
    border: 2px solid #02CCCB;
    display: none;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.calc-result.show {
    display: block;
}

.calc-result-title {
    font-size: 28px;
    color: #02CCCB;
    margin-bottom: 20px;
    text-align: center;
}

.calc-result-main {
    text-align: center;
    margin: 30px 0;
}

.calc-result-number {
    font-size: 56px;
    font-weight: 800;
    background: linear-gradient(135deg, #02CCCB 0%, #8785FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.calc-result-label {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 10px;
}

.calc-result-breakdown {
    margin-top: 40px;
}

.calc-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.calc-result-item:last-child {
    border-bottom: none;
}

.calc-result-item-label {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
}

.calc-result-item-value {
    font-size: 20px;
    font-weight: 700;
    color: #8785FF;
}

.calc-cta {
    margin-top: 40px;
    text-align: center;
}

.calc-cta p {
    margin-bottom: 20px;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
}

.calc-cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 767px) {
    .calculator-container {
        padding: 30px 20px;
    }
    
    .calc-result-number {
        font-size: 42px;
    }
    
    .calc-cta-buttons {
        flex-direction: column;
    }
    
    .calc-cta-buttons .btn {
        width: 100%;
    }
}

/* ========== КАЛЬКУЛЯТОР НА ГЛАВНОЙ (АККОРДЕОН) ========== */
.calculator-promo-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #1A1B2E 0%, #202138 100%);
    position: relative;
    overflow: hidden;
}

.calculator-promo-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: 10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(2, 204, 203, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.calculator-promo-header {
    background: linear-gradient(135deg, rgba(2, 204, 203, 0.1) 0%, rgba(135, 133, 255, 0.1) 100%);
    border: 2px solid rgba(2, 204, 203, 0.3);
    border-radius: 20px;
    padding: 40px 50px;
    display: flex;
    align-items: center;
    gap: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.calculator-promo-header:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(2, 204, 203, 0.2);
    border-color: #02CCCB;
}

.calc-promo-icon {
    font-size: 72px;
    line-height: 1;
    flex-shrink: 0;
}

.calc-promo-text {
    flex-grow: 1;
}

.calc-promo-text h2 {
    font-size: 32px;
    margin: 0 0 10px;
    background: linear-gradient(135deg, #FFFFFF 0%, #02CCCB 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.calc-promo-text p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.calc-toggle-btn {
    background: linear-gradient(135deg, #02CCCB 0%, #8785FF 100%);
    border: none;
    padding: 15px 35px;
    border-radius: 50px;
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.calc-toggle-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(2, 204, 203, 0.4);
}

.calc-toggle-btn.active {
    background: linear-gradient(135deg, #8785FF 0%, #02CCCB 100%);
}

.toggle-icon {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.calculator-collapse {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    margin-top: 0;
}

.calculator-collapse.show {
    max-height: 3000px;
    margin-top: 30px;
}

#calculator-losses-home .calculator-container {
    margin: 0 auto;
    max-width: 800px;
}

/* ROI CTA Section */
.roi-cta-section {
    padding: 60px 0;
    background: linear-gradient(135deg, rgba(135, 133, 255, 0.1) 0%, rgba(2, 204, 203, 0.1) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.roi-cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 40px 60px;
    background: rgba(32, 33, 56, 0.5);
    border-radius: 20px;
    border: 2px solid rgba(135, 133, 255, 0.3);
}

.roi-cta-text h2 {
    font-size: 32px;
    margin: 0 0 10px;
    color: #FFFFFF;
}

.roi-cta-text p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.btn-lg {
    padding: 18px 45px;
    font-size: 20px;
    white-space: nowrap;
}

@media (max-width: 991px) {
    .calculator-promo-header {
        flex-direction: column;
        text-align: center;
        padding: 35px 30px;
    }
    
    .calc-promo-text h2 {
        font-size: 26px;
    }
    
    .roi-cta-content {
        flex-direction: column;
        text-align: center;
        padding: 35px 30px;
    }
    
    .btn-lg {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .calc-promo-icon {
        font-size: 56px;
    }
    
    .calc-promo-text h2 {
        font-size: 22px;
    }
    
    .calc-toggle-btn {
        padding: 12px 25px;
        font-size: 16px;
    }
    
    .roi-cta-text h2 {
        font-size: 24px;
    }
}
