/* Калькулятор двойного стержневого молниеотвода — 4 Ома */

.lz2-calculator {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 60px;
    color: #111827;
    font-size: 16px;
    line-height: 1.5;
}

.lz2-calculator *,
.lz2-calculator *::before,
.lz2-calculator *::after {
    box-sizing: border-box;
}

/* Описание */

.lz2-intro {
    margin-bottom: 28px;
}

.lz2-intro p {
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}

/* Блоки параметров */

.lz2-panel {
    background: #fff;
    border: 1px solid #dce3f1;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 24px;
}

.lz2-panel h3 {
    font-size: 23px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 26px;
}

/* Сетка полей */

.lz2-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.lz2-field {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 10px;
}

.lz2-field label {
    font-size: 16px;
    font-weight: 500;
    color: #111827;
}

/* Поля ввода */

.lz2-field input {
    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;
}

.lz2-field input:focus {
    border-color: #303b83;
    box-shadow: 0 0 0 3px rgba(48, 59, 131, 0.08);
}

/* Подсказки */

.lz2-hint {
    margin: 20px 0 0;
    font-size: 14px;
    line-height: 1.6;
    color: #64748b;
}

/* Выбор надёжности */

.lz2-reliability {
    margin-top: 28px;
}

.lz2-reliability-title {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 600;
}

.lz2-radio-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.lz2-radio-group label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: #f7f8fc;
    border: 1px solid #dce3f1;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
}

.lz2-radio-group input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #303b83;
}

/* Кнопки */

.lz2-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 30px 0;
}

.lz2-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;
}

#lz2-calc-btn {
    background: #f4511e;
    color: #fff;
}

#lz2-calc-btn:hover {
    background: #dc4518;
}

#lz2-reset-btn {
    background: #f1f3f8;
    color: #303b83;
}

#lz2-reset-btn:hover {
    background: #e5e9f2;
}

/* Ошибки */

.lz2-error {
    padding: 16px 20px;
    margin-bottom: 20px;
    background: #fff1f0;
    border: 1px solid #fecaca;
    border-radius: 12px;
    color: #b91c1c;
}

.lz2-error[hidden] {
    display: none !important;
}

/* Результаты */

.lz2-results {
    background: #f7f8fc;
    border: 1px solid #dce3f1;
    border-radius: 20px;
    padding: 30px;
    margin-top: 30px;
}

.lz2-results[hidden] {
    display: none !important;
}

.lz2-results h3 {
    font-size: 23px;
    font-weight: 700;
    margin: 0 0 24px;
}

/* Статус защищённости */

.lz2-status {
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 13px;
    text-align: center;
    font-size: 23px;
    font-weight: 700;
}

.lz2-status.ok {
    background: #dcfce7;
    color: #166534;
}

.lz2-status.bad {
    background: #fee2e2;
    color: #991b1b;
}

.lz2-note {
    margin: 0 0 20px;
    padding: 14px 18px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 12px;
    color: #9a3412;
}

.lz2-note[hidden] {
    display: none !important;
}

/* Карточки результатов */

.lz2-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.lz2-metric {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    min-width: 0;
    background: #fff;
    border: 1px solid #dce3f1;
    border-radius: 13px;
}

.lz2-metric span {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
}

.lz2-metric strong {
    font-size: 27px;
    font-weight: 700;
    color: #303b83;
    line-height: 1.2;
}

/* Предупреждение */

.lz2-disclaimer {
    margin: 24px 0 0;
    font-size: 13px;
    line-height: 1.6;
    color: #64748b;
}

/* Мобильная версия */

@media (max-width: 767px) {

    .lz2-calculator {
        font-size: 15px;
    }

    .lz2-panel,
    .lz2-results {
        padding: 20px;
        border-radius: 16px;
    }

    .lz2-panel h3,
    .lz2-results h3 {
        font-size: 20px;
    }

    .lz2-grid,
    .lz2-metrics {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .lz2-radio-group {
        gap: 10px;
    }

    .lz2-radio-group label {
        flex: 1;
        justify-content: center;
        padding: 12px;
    }

    .lz2-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .lz2-actions button {
        width: 100%;
    }

    .lz2-status {
        font-size: 19px;
    }

    .lz2-metric strong {
        font-size: 24px;
    }
}