/* Калькулятор зарядки электромобиля */
.evc-app {
    max-width: 560px;
}

.evc-section {
    margin-bottom: 22px;
    padding: 18px 16px;
    background: #fff;
    border: 1px solid #e5e5ea;
    border-radius: 18px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.evc-section--gas {
    background: linear-gradient(165deg, #fffaf5 0%, #fff 55%);
    border-color: #fde8d0;
}

.evc-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 700;
    color: #1d1d1f;
    letter-spacing: -0.02em;
}

.evc-icon {
    font-size: 1.15em;
    line-height: 1;
}

.evc-dual-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 12px;
    align-items: start;
    width: 100%;
}

.evc-field-full {
    grid-column: 1 / -1;
}

.evc-dual-grid .calc-field {
    margin-bottom: 0 !important;
    min-width: 0;
    width: 100%;
}

.evc-dual-grid .calc-input-wrap {
    width: 100%;
    min-width: 0;
    min-height: 52px;
    box-sizing: border-box;
}

.evc-dual-grid .calc-input-wrap input {
    font-size: 18px;
    width: 100%;
    min-width: 0;
}

.evc-dual-grid .evc-range-row {
    padding: 0;
    width: 100%;
    min-width: 0;
}

#evc-single-tariff-wrap {
    display: block;
    width: 100%;
}

#evc-single-tariff-wrap[hidden] {
    display: none !important;
}

#evc-dual-grid[hidden] {
    display: none !important;
}

@media (max-width: 520px) {
    .evc-dual-grid {
        grid-template-columns: 1fr;
    }
}

.evc-range-row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 4px 0;
}

.evc-range-row input[type="range"] {
    flex: 1;
    height: 6px;
    accent-color: #4e73df;
    cursor: pointer;
}

.evc-range-row output {
    min-width: 44px;
    font-size: 15px;
    font-weight: 700;
    color: #4e73df;
    text-align: right;
}

.evc-range-hint {
    margin: 6px 0 0;
    font-size: 12px;
    color: #6e6e73;
}

.evc-period-chips {
    margin-bottom: 12px;
}

#evc-result {
    margin-top: 8px;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

#evc-result.calc-result {
    background: transparent;
    border: none;
    box-shadow: none;
}

.evc-result-hero {
    padding: 22px 18px;
    margin-bottom: 14px;
    text-align: center;
    background: linear-gradient(155deg, #eef3ff 0%, #fff 50%, #f0fdf4 100%);
    border: 1px solid #dce4f8;
    border-radius: 20px;
    box-shadow: 0 10px 32px rgba(78, 115, 223, 0.12);
}

.evc-hero-sub {
    margin: 8px 0 0;
    font-size: 14px;
    line-height: 1.45;
    color: #3a3a3c;
}

.evc-compare-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
    position: relative;
    z-index: 0;
}

@media (max-width: 420px) {
    .evc-compare-cards {
        grid-template-columns: 1fr;
    }
}

.evc-card {
    position: relative;
    padding: 14px 12px;
    background: #fff;
    border: 1px solid #e5e5ea;
    border-radius: 16px;
    text-align: center;
    transition: box-shadow 0.15s;
}

.evc-card--best {
    border-color: #16a34a;
    box-shadow: 0 4px 20px rgba(22, 163, 74, 0.15);
}

.evc-card--home {
    border-top: 3px solid #16a34a;
}

.evc-card--dc {
    border-top: 3px solid #2563eb;
}

.evc-card--mix {
    border-top: 3px solid #4e73df;
}

.evc-card--gas {
    border-top: 3px solid #ea580c;
}

.evc-card-badge {
    display: block;
    min-height: 18px;
    margin-bottom: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #16a34a;
}

.evc-card:not(.evc-card--best) .evc-card-badge {
    visibility: hidden;
}

.evc-card-title {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 600;
    color: #6e6e73;
}

.evc-card-cost {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #1d1d1f;
    line-height: 1.1;
}

.evc-card--best .evc-card-cost {
    color: #15803d;
}

.evc-card-km {
    margin: 4px 0 0;
    font-size: 13px;
    font-weight: 600;
    color: #4e73df;
}

.evc-card-meta {
    margin: 6px 0 0;
    font-size: 11px;
    color: #9ca3af;
    line-height: 1.3;
}

.evc-bars {
    margin-bottom: 14px;
    padding: 14px;
    background: #fafafa;
    border-radius: 14px;
    border: 1px solid #ececf0;
}

.evc-bar-row {
    display: grid;
    grid-template-columns: 72px 1fr 72px;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 12px;
}

.evc-bar-row:last-child {
    margin-bottom: 0;
}

.evc-bar-label {
    font-weight: 600;
    color: #3a3a3c;
}

.evc-bar-track {
    height: 10px;
    background: #ececf0;
    border-radius: 999px;
    overflow: hidden;
}

.evc-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: #4e73df;
    transition: width 0.35s ease;
}

.evc-bar-row--home .evc-bar-fill {
    background: linear-gradient(90deg, #22c55e, #16a34a);
}

.evc-bar-row--dc .evc-bar-fill {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
}

.evc-bar-row--gas .evc-bar-fill {
    background: linear-gradient(90deg, #fb923c, #ea580c);
}

.evc-bar-row--mix .evc-bar-fill {
    background: linear-gradient(90deg, #6b8cef, #4e73df);
}

.evc-bar-val {
    font-weight: 700;
    color: #1d1d1f;
    text-align: right;
    white-space: nowrap;
}

#evc-details {
    padding: 4px 4px 0;
}

#evc-note {
    margin-top: 12px;
    text-align: left;
    font-size: 12px;
}

.evc-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 14px;
    padding: 0;
}

.evc-summary-col {
    padding: 12px 12px;
    background: #fff;
    border: 1px solid #e5e5ea;
    border-radius: 16px;
    text-align: center;
}

.evc-summary-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #6e6e73;
    margin-bottom: 6px;
}

.evc-summary-big {
    font-size: 1.45rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: #1d1d1f;
    line-height: 1.1;
}

.evc-summary-sub {
    margin-top: 4px;
    font-size: 12px;
    color: #6e6e73;
    line-height: 1.3;
}

.evc-summary-col--gas .evc-summary-big {
    color: #ea580c;
}

.evc-summary-col--save .evc-summary-big {
    color: #16a34a;
}

.evc-summary-col--save.is-negative .evc-summary-big {
    color: #dc2626;
}

.evc-share {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 0 10px;
    padding: 12px 12px;
    background: #fafafa;
    border: 1px solid #ececf0;
    border-radius: 16px;
    position: relative;
    z-index: 2;
}

.evc-share-btn {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: center;
    text-decoration: none;
    box-sizing: border-box;
}

.evc-share-btn.is-disabled {
    opacity: 0.45;
    pointer-events: none;
    cursor: default;
}

.evc-share-label {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    color: #6e6e73;
}

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