/* Калькулятор электролитического заземления — 4oma.ru */

.ez3-calculator {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 60px;
    color: #111827;
    font-size: 16px;
    line-height: 1.5;
}

.ez3-calculator *,
.ez3-calculator *::before,
.ez3-calculator *::after {
    box-sizing: border-box;
}

/* Описание калькулятора */

.ez3-intro {
    margin-bottom: 28px;
}

.ez3-intro p {
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}

/* Основной блок */

.ez3-panel {
    background: #fff;
    border: 1px solid #dce3f1;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 24px;
}

.ez3-panel h3 {
    font-size: 23px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 26px;
}

/* Сетка полей */

.ez3-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.ez3-field {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 10px;
}

.ez3-field label {
    font-size: 16px;
    font-weight: 500;
    color: #111827;
}

/* Поля ввода и выпадающие списки */

.ez3-field input,
.ez3-field select {
    display: block;
    width: 100%;
    min-width: 0;
    height: 52px;
    padding: 12px 16px;
    border: 1px solid #d6dfef;
    border-radius: 11px;
    background: #fff;
    color: #111827;
    font-size: 16px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ez3-field input:focus,
.ez3-field select:focus {
    border-color: #303b83;
    box-shadow: 0 0 0 3px rgba(48, 59, 131, 0.08);
}

/* Кнопки */

.ez3-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 30px 0;
}

.ez3-actions button {
    min-height: 58px;
    padding: 16px 30px;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

#ez3-calc-btn {
    background: #f4511e;
    color: #fff;
}

#ez3-calc-btn:hover {
    background: #dc4518;
}

#ez3-reset-btn {
    background: #f1f3f8;
    color: #303b83;
}

#ez3-reset-btn:hover {
    background: #e5e9f2;
}

/* Сообщения об ошибках */

.ez3-error {
    padding: 16px 20px;
    margin-bottom: 20px;
    background: #fff1f0;
    border: 1px solid #fecaca;
    border-radius: 12px;
    color: #b91c1c;
}

.ez3-error[hidden] {
    display: none !important;
}

/* Блок результатов */

.ez3-results {
    background: #f7f8fc;
    border: 1px solid #dce3f1;
    border-radius: 20px;
    padding: 30px;
    margin-top: 30px;
}

.ez3-results[hidden] {
    display: none !important;
}

.ez3-results h3 {
    font-size: 23px;
    font-weight: 700;
    margin: 0 0 24px;
}

/* Карточки результатов */

.ez3-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.ez3-metric {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    min-width: 0;
    background: #fff;
    border: 1px solid #dce3f1;
    border-radius: 13px;
}

.ez3-metric span {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
}

.ez3-metric strong {
    font-size: 27px;
    font-weight: 700;
    color: #303b83;
    line-height: 1.2;
}

/* Предупреждение */

.ez3-disclaimer {
    margin: 24px 0 0;
    font-size: 13px;
    line-height: 1.6;
    color: #64748b;
}

/* Мобильная версия */

@media (max-width: 767px) {

    .ez3-calculator {
        font-size: 15px;
    }

    .ez3-panel,
    .ez3-results {
        padding: 20px;
        border-radius: 16px;
    }

    .ez3-panel h3,
    .ez3-results h3 {
        font-size: 20px;
    }

    .ez3-grid,
    .ez3-metrics {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .ez3-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .ez3-actions button {
        width: 100%;
    }

    .ez3-metric strong {
        font-size: 24px;
    }
}