/* Калькулятор плит утеплителя */
.ibd-app {
    max-width: 560px;
}

.ibd-app [hidden] {
    display: none !important;
}

.ibd-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;
}

.ibd-section--price {
    background: linear-gradient(165deg, #f8faff 0%, #fff 55%);
    border-color: #dbe4ff;
}

.ibd-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;
}

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

.ibd-room-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 12px;
    margin-bottom: 12px;
}

.ibd-room-grid .calc-field {
    margin-bottom: 0 !important;
    min-width: 0;
}

.ibd-purpose-hint,
.ibd-material-hint {
    margin: -6px 0 14px;
    font-size: 13px;
    line-height: 1.45;
    color: #6e6e73;
}

.ibd-result-sheet {
    padding: 4px 0 0;
}

.ibd-sheet-meta {
    margin: 0 0 12px;
    font-size: 13px;
    line-height: 1.4;
    color: #6e6e73;
}

.ibd-result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.ibd-action {
    flex: 1 1 auto;
    min-width: 120px;
    padding: 12px 18px;
    border: 1px solid #d2d2d7;
    border-radius: 12px;
    background: #fff;
    color: #1d1d1f;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.ibd-action:hover {
    background: #f5f5f7;
    border-color: #86868b;
}

.ibd-action:disabled {
    opacity: 0.5;
    cursor: default;
}

.ibd-result-hero {
    margin-bottom: 18px;
    text-align: center;
}

.ibd-hero-sub {
    margin: 6px 0 0;
    font-size: 14px;
    color: #6e6e73;
}

.ibd-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.ibd-summary-col {
    padding: 12px;
    background: #f5f5f7;
    border-radius: 12px;
}

.ibd-summary-label {
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #86868b;
}

.ibd-summary-big {
    font-size: 18px;
    font-weight: 700;
    color: #1d1d1f;
    letter-spacing: -0.02em;
}

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

.ibd-cost {
    margin-top: 16px;
    padding: 14px;
    background: #f0f4ff;
    border-radius: 12px;
    text-align: center;
}

.ibd-cost-label {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #86868b;
}

.ibd-cost-total {
    font-size: 22px;
    font-weight: 700;
    color: #1d1d1f;
}

.ibd-app .calc-note a {
    color: #0066cc;
    text-decoration: underline;
}

@media print {
    body.ibd-print-body {
        margin: 16px;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        color: #1d1d1f;
    }

    .ibd-print-title {
        margin: 0 0 16px;
        font-size: 20px;
        font-weight: 700;
    }

    .ibd-print-footer {
        margin-top: 16px;
        font-size: 12px;
        color: #6e6e73;
    }

    .ibd-result-sheet {
        box-shadow: none !important;
    }

    .ibd-result-actions,
    .ibd-cost[hidden] {
        display: none !important;
    }
}

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