/* ===== КАЛЬКУЛЯТОР ИМПОРТА ===== */
.comparison-calculator {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 0;
}

.calculator-header {
    text-align: center;
    margin-bottom: 60px;
}

.calculator-header h2 {
    font-size: 2.5rem;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.calculator-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.calculator-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 60px;
}

@media (max-width: 992px) {
    .calculator-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Левая часть - контролы */
.calculator-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.calculator-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #eaeaea;
}

.calculator-card h3 {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.calc-field {
    margin-bottom: 30px;
}

.calc-field:last-child {
    margin-bottom: 0;
}

.calc-field label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
    margin-bottom: 15px;
}

.calc-field label i {
    color: #3498db;
    width: 20px;
    text-align: center;
}

/* Селектор страны */
.country-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.country-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.country-option:hover {
    border-color: #3498db;
    background: #f0f7ff;
}

.country-option.active {
    background: #3498db;
    border-color: #3498db;
    color: white;
}

.country-option img {
    opacity: 1;
    border-radius: 50%;
}

.country-option.active img {
    opacity: 0.65;
}

/* Слайдер стоимости */
.price-input {
    position: relative;
    margin-bottom: 15px;
}

.price-input input[type="range"] {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    background: linear-gradient(to right, #2ecc71, #f39c12, #e74c3c);
    border-radius: 4px;
    outline: none;
}

.price-input input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: white;
    border: 3px solid #3498db;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(52, 152, 219, 0.3);
}

.price-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-top: 15px;
}

.price-presets {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.preset-btn {
    padding: 8px 15px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #555;
}

.preset-btn:hover {
    border-color: #3498db;
    color: #3498db;
}

.preset-btn.active {
    background: #3498db;
    border-color: #3498db;
    color: white;
}

/* Селектор мощности */
.power-selector {
    display: flex;
    gap: 10px;
}

.power-option {
    flex: 1;
    padding: 15px;
    text-align: center;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.power-option:hover {
    border-color: #3498db;
    background: #f0f7ff;
}

.power-option.active {
    background: #2ecc71;
    border-color: #27ae60;
    color: white;
}

/* Слайдер года */
.year-selector {
    position: relative;
}

.year-selector input[type="range"] {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    background: linear-gradient(to right, #3498db, #9b59b6);
    border-radius: 4px;
    outline: none;
}

.year-selector input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: white;
    border: 3px solid #9b59b6;
    border-radius: 50%;
    cursor: pointer;
}

.year-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-top: 15px;
}

/* Дополнительные опции */
.options-grid {
    display: grid;
    gap: 12px;
}

.option-checkbox {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 0!important;
}

.option-checkbox:hover {
    background: #f0f7ff;
    transform: translateY(-2px);
}

.option-checkbox input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.option-checkbox input:checked + .checkmark {
    background: #3498db;
    border-color: #3498db;
}

.option-checkbox input:checked + .checkmark::after {
    content: "✓";
    color: white;
    font-size: 14px;
}

.option-label {
    font-weight: 500;
    color: #2c3e50;
}

.option-price {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

/* Информационная карточка */
.calculator-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    padding: 25px;
    color: white;
    margin-top: 10px;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.info-card i {
    font-size: 1.5rem;
    margin-top: 5px;
}

.info-card p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.95;
    color: white;
}

/* Правая часть - результаты */
.results-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #eaeaea;
    height: 100%;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.results-header h3 {
    font-size: 1.4rem;
    color: #2c3e50;
    margin: 0;
}

.total-amount {
    text-align: right;
    margin-top: 15px;
}

.total-label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

.total-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2ecc71;
}

/* Детализация расходов */
.breakdown-item {
    margin-bottom: 20px;
}

.breakdown-item:last-child {
    margin-bottom: 0;
}

.breakdown-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.breakdown-label span:first-child {
    font-weight: 500;
    color: #2c3e50;
}

.breakdown-price {
    font-weight: 600;
    color: #3498db;
}

.breakdown-bar {
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 4px;
    transition: width 0.5s ease;
    position: relative;
}

.bar-fill::after {
    content: attr(data-percent);
    position: absolute;
    right: 5px;
    top: -20px;
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
}

.breakdown-item.additional .breakdown-price {
    color: #9b59b6;
}

.breakdown-item.additional .bar-fill {
    background: linear-gradient(90deg, #9b59b6, #e74c3c);
}

/* Сводка */
.results-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 15px;
}

@media (max-width: 768px) {
    .results-summary {
        grid-template-columns: 1fr;
    }
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.summary-icon {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3498db;
    font-size: 1.2rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.summary-content {
    flex: 1;
}

.summary-label {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 3px;
}

.summary-value {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1rem;
}

.summary-value.savings {
    color: #2ecc71;
}

/* Кнопки действий */
.results-actions {
    display: flex;
    gap: 15px;
    margin: 30px 0;
}

.results-actions .btn {
    flex: 1;
    padding: 15px;
    font-weight: 600;
    font-size: 1rem;
    justify-content: center;
}

.results-note {
    padding: 15px;
    background: #fff8e1;
    border-radius: 10px;
    font-size: 0.9rem;
    color: #5d4037;
}

.results-note p {
    margin: 0;
    line-height: 1.5;
}

/* Финальное сравнение */
.comparison-final {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 40px 0;
}

@media (max-width: 768px) {
    .comparison-final {
        grid-template-columns: 1fr;
    }
}

.savings-final {
    text-align: center;
    margin-top: 40px;
}

.savings-badge-large {
    display: inline-flex;
    align-items: end;
    gap: 20px;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    padding: 25px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(46, 204, 113, 0.3);
    width: 100%;
    justify-content: center;
}

.savings-icon {
    font-size: 2.5rem;
}

.savings-content {
    text-align: left;
}

.savings-amount-large {
    display: block;
    font-size: 1rem;
    opacity: 0.9;
}

.savings-value-large {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
}

.savings-percent {
    background: white;
    color: #27ae60;
    padding: 3px 10px;
    border-radius: 15px;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Анимации */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.total-value {
    animation: pulse 2s infinite;
}

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

.results-card {
    animation: slideIn 0.6s ease-out;
}

/* Стили для калькулятора утильсбора */
.utilization-fee-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeIn 0.5s ease;
}

.utilization-fee-info i {
    font-size: 1.2em;
}

.utilization-fee-tip {
    background-color: #f0f9ff;
    border-left: 4px solid #3b82f6;
    padding: 12px 16px;
    margin: 15px 0;
    border-radius: 0 8px 8px 0;
    animation: slideIn 0.5s ease;
}

.utilization-fee-tip strong {
    color: #1e40af;
}

/* Выделение выгодного варианта */
.power-option[data-power="low"] {
    position: relative;
    overflow: hidden;
}

.power-option[data-power="low"]::after {
    content: 'Выгодно';
    position: absolute;
    top: 3px;
    right: 3px;
    background: #10b981;
    color: white;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 10px;
    font-weight: bold;
    z-index: 99;
}

.power-option.active[data-power="low"] {
    border-color: #10b981;
    background: #2ecc71;
}