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

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

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

.dwl-section--price {
    background: linear-gradient(165deg, #fff8f5 0%, #fff 55%);
    border-color: #ffe4d6;
}

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

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

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

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

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

.dwl-work-chips {
    margin-bottom: 14px;
}

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

.dwl-screw-hint {
    margin: 0 0 12px;
    font-size: 13px;
    color: #6e6e73;
    line-height: 1.45;
}

.dwl-range-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dwl-range-row input[type="range"] {
    flex: 1;
    min-width: 0;
    accent-color: #e85d04;
}

.dwl-range-row output {
    min-width: 42px;
    font-size: 15px;
    font-weight: 700;
    color: #e85d04;
    text-align: right;
}

.dwl-result-sheet {
    padding: 16px 14px;
    background: #fafafa;
    border: 1px solid #e5e5ea;
    border-radius: 16px;
}

.dwl-sheet-meta {
    margin: 0 0 14px;
    font-size: 12px;
    color: #6e6e73;
    text-align: center;
    line-height: 1.45;
}

.dwl-result-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 14px 0 10px;
}

.dwl-action {
    min-height: 40px;
    padding: 8px 16px;
    border: 1px solid #e5e5ea;
    border-radius: 999px;
    background: #fff;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.dwl-action:hover {
    border-color: #e85d04;
    color: #e85d04;
    background: #fff8f5;
}

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

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

.dwl-app .calc-result-value--accent {
    color: #e85d04;
}

.dwl-hero-sub {
    margin: 8px 0 0;
    font-size: 14px;
    color: #6e6e73;
    line-height: 1.45;
}

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

.dwl-summary-col {
    padding: 12px 10px;
    background: #f5f5f7;
    border-radius: 14px;
    text-align: center;
}

.dwl-summary-col--highlight {
    background: linear-gradient(165deg, #fff4ec 0%, #fff8f5 100%);
    border: 1px solid #ffd6bf;
}

.dwl-summary-col--highlight .dwl-summary-big {
    color: #e85d04;
    font-size: 15px;
}

.dwl-summary-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6e6e73;
    margin-bottom: 6px;
}

.dwl-summary-big {
    font-size: 17px;
    font-weight: 700;
    color: #1d1d1f;
    line-height: 1.2;
}

.dwl-summary-sub {
    margin-top: 4px;
    font-size: 11px;
    color: #86868b;
    line-height: 1.35;
}

.dwl-extra {
    margin-bottom: 14px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #e5e5ea;
    border-radius: 12px;
}

.dwl-extra-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    font-size: 13px;
    color: #333;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dwl-extra-row:last-child {
    border-bottom: 0;
}

.dwl-extra-row strong {
    font-weight: 600;
    color: #1d1d1f;
    text-align: right;
}

.dwl-cost {
    margin-top: 16px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #fff4ec 0%, #fff 100%);
    border: 1px solid #ffe4d6;
    border-radius: 14px;
}

.dwl-cost-label {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6e6e73;
}

.dwl-cost-total {
    font-size: 24px;
    font-weight: 700;
    color: #e85d04;
    margin-bottom: 10px;
}

.dwl-cost-list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 13px;
    color: #333;
}

.dwl-cost-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.dwl-cost-list li:last-child {
    border-bottom: 0;
}

.dwl-cost-list small {
    color: #86868b;
}

.dwl-print-body {
    padding: 24px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.dwl-print-title {
    margin: 0 0 16px;
    font-size: 20px;
    text-align: center;
}

.dwl-print-footer {
    margin-top: 16px;
    font-size: 12px;
    color: #86868b;
    text-align: center;
}

@media print {
    .dwl-print-title {
        font-size: 18px;
    }

    .dwl-result-sheet {
        border: 0;
        box-shadow: none;
    }
}

@media (max-width: 380px) {
    .dwl-summary-big {
        font-size: 15px;
    }
}
