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

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

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

.fwc-section--price {
    background: linear-gradient(165deg, #f5f8ff 0%, #fff 55%);
    border-color: #d6e4ff;
}

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

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

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

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

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

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

.fwc-range-row output {
    min-width: 42px;
    font-size: 15px;
    font-weight: 600;
    color: #1d1d1f;
}

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

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

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

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

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

.fwc-summary-col {
    padding: 12px;
    background: #fff;
    border: 1px solid #e5e5ea;
    border-radius: 12px;
}

.fwc-summary-col--highlight {
    border-color: #c7d7f7;
    background: #f5f8ff;
}

.fwc-summary-label {
    display: block;
    font-size: 12px;
    color: #6e6e73;
    margin-bottom: 4px;
}

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

.fwc-summary-sub {
    margin-top: 4px;
    font-size: 12px;
    color: #8e8e93;
    line-height: 1.35;
}

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

.fwc-extra-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    font-size: 14px;
    color: #3a3a3c;
}

.fwc-extra-row + .fwc-extra-row {
    border-top: 1px solid #f0f0f5;
}

.fwc-extra-row strong {
    font-weight: 600;
    text-align: right;
    white-space: nowrap;
}

.fwc-warn {
    margin: 0 0 12px;
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.45;
    color: #9a3412;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 10px;
}

.fwc-cost {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed #e5e5ea;
}

.fwc-cost-label {
    margin: 0 0 6px;
    font-size: 13px;
    color: #6e6e73;
}

.fwc-cost-total {
    font-size: 22px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 10px;
}

.fwc-cost-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fwc-cost-list li {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 14px;
    padding: 4px 0;
    color: #3a3a3c;
}

.fwc-cost-list small {
    color: #8e8e93;
}

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

.fwc-action {
    flex: 1;
    min-width: 120px;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 600;
    color: #1d1d1f;
    background: #fff;
    border: 1px solid #e5e5ea;
    border-radius: 12px;
    cursor: pointer;
}

.fwc-action:hover {
    border-color: #4e73df;
    color: #4e73df;
}

.fwc-print-title {
    font-size: 18px;
    margin: 0 0 12px;
}

.fwc-print-footer {
    margin-top: 16px;
    font-size: 12px;
    color: #8e8e93;
}

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