.utilcalc-shell {
    max-width: 1180px;
    margin: 2rem auto;
    padding: 0 1rem 2rem;
}

.utilcalc-shell--comparison {
    max-width: 1600px;
}

.utilcalc-card {
    background: #fff;
    border: 1px solid #d7dee6;
    border-radius: 12px;
    box-shadow: 0 16px 34px rgba(16, 43, 67, 0.08);
    overflow: hidden;
}

.utilcalc-header {
    padding: 1.5rem;
    background: linear-gradient(180deg, #5b87b3 0%, #4c75a0 45%, #3f6488 100%);
    color: #fff;
}

.utilcalc-kicker {
    margin: 0 0 0.35rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.82);
}

.utilcalc-header h1 {
    margin: 0;
    color: #fff;
    font-size: 1.7rem;
    line-height: 1.08;
}

.utilcalc-lead {
    margin: 0.75rem 0 0;
    color: rgba(255, 255, 255, 0.92);
}

.utilcalc-intro,
.utilcalc-banner {
    margin: 1.25rem 1.25rem 0;
    padding: 1rem 1.1rem;
    border-radius: 10px;
    border: 1px solid #cbd8e4;
    background: linear-gradient(180deg, #f3f7fb 0%, #edf3f9 100%);
}

.utilcalc-banner {
    border-left: 6px solid #4c75a0;
}

.utilcalc-banner h2 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    color: #16324a;
}

.utilcalc-banner--default {
    border-left-color: #64748b;
}

.utilcalc-banner--success {
    background: linear-gradient(180deg, #f2faf3 0%, #e9f6eb 100%);
    border-color: #bfdcc5;
    border-left-color: #4f8f61;
}

.utilcalc-banner--warning {
    background: linear-gradient(180deg, #fff8ee 0%, #fff2df 100%);
    border-color: #ecd1a6;
    border-left-color: #d18a32;
}

.utilcalc-banner--danger {
    background: linear-gradient(180deg, #fff4f2 0%, #fee8e3 100%);
    border-color: #efc0b4;
    border-left-color: #c2513f;
}

.utilcalc-richtext p,
.utilcalc-richtext ul,
.utilcalc-richtext ol {
    color: #274862;
}

.utilcalc-richtext p:last-child,
.utilcalc-richtext ul:last-child,
.utilcalc-richtext ol:last-child {
    margin-bottom: 0;
}

.utilcalc-surface {
    display: grid;
    grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
    gap: 1.25rem;
    padding: 1.25rem;
    align-items: start;
}

.utilcalc-panel {
    border: 1px solid #dde6ee;
    border-radius: 10px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    padding: 1.15rem;
}

.utilcalc-panel-heading {
    margin-bottom: 1rem;
}

.utilcalc-panel-kicker {
    margin: 0 0 0.3rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #5a7084;
}

.utilcalc-panel-heading h2 {
    margin: 0;
    font-size: 1.2rem;
    color: #16324a;
}

.utilcalc-panel-heading p:last-child {
    margin: 0.35rem 0 0;
    color: #5a7084;
}

.utilcalc-panel--controls {
    display: grid;
    gap: 1rem;
}

.utilcalc-field {
    display: grid;
    gap: 0.55rem;
}

.utilcalc-field label {
    font-weight: 700;
    color: #16324a;
}

.utilcalc-field input,
.utilcalc-field select {
    width: 100%;
    border: 1px solid #b9c7d3;
    border-radius: 8px;
    padding: 0.8rem 0.9rem;
    font: inherit;
    color: #16324a;
    background: #fff;
}

.utilcalc-field input:focus,
.utilcalc-field select:focus {
    outline: none;
    border-color: #4c75a0;
    box-shadow: 0 0 0 3px rgba(76, 117, 160, 0.15);
}

.utilcalc-note {
    margin: 0;
    color: #4f6478;
    font-size: 0.94rem;
    line-height: 1.45;
}

.utilcalc-input-summary {
    display: grid;
    gap: 0.6rem;
    padding: 0.95rem 1rem;
    border-radius: 9px;
    background: linear-gradient(180deg, #f7fafc 0%, #eef4f8 100%);
    border: 1px solid #d8e2eb;
}

.utilcalc-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: #274862;
}

.utilcalc-summary-row strong {
    color: #16324a;
}

.utilcalc-actions {
    display: grid;
    gap: 0.7rem;
}

.utilcalc-actions .uk-button {
    width: 100%;
}

.utilcalc-results-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.utilcalc-results-grid.utilcalc-results-grid--single {
    grid-template-columns: 1fr;
}

.utilcalc-result-card {
    border: 1px solid #dce6ee;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

.utilcalc-result-card--emergency {
    border-color: #e4c8c3;
    box-shadow: inset 0 0 0 1px rgba(193, 72, 54, 0.06);
}

.utilcalc-result-card-header {
    padding: 0.95rem 1rem;
    background: linear-gradient(180deg, #f1f6fa 0%, #e8f0f6 100%);
    border-bottom: 1px solid #dce6ee;
}

.utilcalc-result-card--emergency .utilcalc-result-card-header {
    background: linear-gradient(180deg, #f8f1f0 0%, #f3e6e4 100%);
    border-bottom-color: #e4c8c3;
}

.utilcalc-result-card-header h3 {
    margin: 0;
    font-size: 1.08rem;
    color: #16324a;
}

.utilcalc-result-card--emergency .utilcalc-result-card-header h3 {
    color: #7f3126;
}

.utilcalc-result-card--emergency .utilcalc-section h4 {
    background: linear-gradient(180deg, #f6ecea 0%, #efdedd 100%);
    border-bottom-color: #e1c1bb;
    color: #7f3126;
}

.utilcalc-result-body {
    display: grid;
    gap: 0.9rem;
    padding: 1rem;
}

.utilcalc-total {
    padding: 0.95rem 1rem;
    border-radius: 10px;
    background: linear-gradient(180deg, #16324a 0%, #102c43 100%);
    color: #fff;
}

.utilcalc-total-label {
    display: block;
    font-size: 0.88rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
}

.utilcalc-total-value {
    display: block;
    margin-top: 0.3rem;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.utilcalc-section {
    border: 1px solid #e1e8ef;
    border-radius: 10px;
    overflow: hidden;
}

.utilcalc-section h4 {
    margin: 0;
    padding: 0.8rem 0.95rem;
    background: linear-gradient(180deg, #dce8f2 0%, #c9d9e7 100%);
    border-bottom: 1px solid #b9cbdc;
    font-size: 1rem;
    color: #102c43;
    letter-spacing: 0.01em;
}

.utilcalc-table {
    width: 100%;
    border-collapse: collapse;
}

.utilcalc-table td {
    padding: 0.72rem 0.95rem;
    vertical-align: top;
    border-bottom: 1px solid #eef3f7;
    color: #274862;
}

.utilcalc-table tr:last-child td {
    border-bottom: 0;
}

.utilcalc-table tr.utilcalc-row--total td {
    background: linear-gradient(180deg, #f6f9fc 0%, #edf3f8 100%);
    border-top: 2px solid #c4d3e1;
    border-bottom: 0;
    font-weight: 700;
}

.utilcalc-table tr.utilcalc-row--total td:first-child strong {
    color: #102c43;
}

.utilcalc-table tr.utilcalc-row--total td:last-child {
    color: #102c43;
    font-size: 1.02rem;
}

.utilcalc-table td:last-child {
    text-align: right;
    white-space: nowrap;
    color: #16324a;
    font-weight: 600;
}

.utilcalc-table small {
    display: block;
    margin-top: 0.22rem;
    color: #5a7084;
}

.utilcalc-footer-note {
    margin-top: 1rem;
}

.utilcalc-footer-note p {
    margin: 0;
    color: #5a7084;
}

@media print {
    body {
        background: #fff;
    }

    .utilcalc-shell {
        margin: 0;
        padding: 0;
        max-width: none;
    }

    .utilcalc-card {
        box-shadow: none;
        border: 0;
    }
}

@media (max-width: 960px) {

    .utilcalc-surface,
    .utilcalc-results-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .utilcalc-shell {
        margin-top: 1rem;
        padding: 0 0.75rem 1.5rem;
    }

    .utilcalc-header,
    .utilcalc-surface {
        padding: 1rem;
    }

    .utilcalc-intro,
    .utilcalc-banner {
        margin: 1rem 1rem 0;
    }
}