.doc-calculator { font-family: 'Blogger Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif; margin: 20px; line-height: 1.6; max-width: 600px; }
.doc-form-group { margin-bottom: 15px; }
.doc-label { display: block; margin-bottom: 5px; font-weight: bold; }
.doc-select, .doc-input { padding: 8px 12px; font-size: 16px; border: 1px solid #ccc; border-radius: 4px; width: 100%; box-sizing: border-box; }
.doc-input:disabled { background-color: #f5f5f5; color: #999; cursor: not-allowed; }
.doc-button { padding: 10px 20px; font-size: 16px; background-color: #d10808; color: white; border: none; border-radius: 4px; cursor: pointer; width: 93%; }
.doc-button:disabled { background-color: #ccc; cursor: not-allowed; }
.doc-button:hover:not(:disabled) { background-color: #d10801; }
.doc-result { margin-top: 20px;margin-bottom: 5px; padding: 15px; border: 1px solid #ddd; border-radius: 4px; background-color: #f9f9f9; display: none; }
.doc-radio-group { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.doc-radio-item { display: flex; align-items: center; }
.doc-radio-item input { margin-right: 5px; }

/* Стили калькуляторов */
.price-calculator-compact {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    max-width: 100%;
    width: 100%;
    background: #ffffff;
    border-radius: 6px;
    padding: clamp(16px, 4vw, 24px);
    box-sizing: border-box;
    color: #3D3D3D;
}

/* Форма */
.compact-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 5px;
    margin-bottom: 5px;
    padding: 0;
    border: 1px solid #3D3D3D;
    border-radius: 6px;
    background: #ffffff;
}

.form-group {
    flex: 1 1 200px;
    min-width: 160px;
    padding: 12px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #3D3D3D;
    margin-bottom: 6px;
    opacity: 0.8;
}

/* Стили для select и input */
.compact-select,
.compact-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #3D3D3D;
    border-radius: 6px;
    font-size: 1rem;
    background: #ffffff;
    color: #3D3D3D;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}

/* Стрелка для select - цвет #D10808 */
.select-wrapper {
    position: relative;
    display: block;
}

.compact-select,
.option-select {
    padding-right: 40px;
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23D10808' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

/* Ховер и фокус с цветом #D10808 */
.compact-select:hover,
.compact-input:hover,
.option-select:hover {
    border-color: #D10808;
}

.compact-select:focus,
.compact-input:focus,
.option-select:focus {
    border-color: #D10808;
    box-shadow: 0 0 0 3px rgba(209, 8, 8, 0.1);
}

/* Блок дополнительных опций */
.additional-options {
    margin-bottom: 5px;
    padding: 12px;
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid #3D3D3D;
}

/* Чекбокс - цвет #D10808 */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin: 0;
    accent-color: #D10808;
}

.checkbox-wrapper label {
    cursor: pointer;
    margin: 0;
    font-weight: 500;
    color: #3D3D3D;
}

.additional-options .hint {
    font-size: 12px;
    color: #666;
    margin-top: 6px;
    margin-left: 26px;
}

/* Панель опций (если используется) */
.options-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
    margin-bottom: 5px;
    padding: 12px;
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid #3D3D3D;
}

.option-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.option-group label {
    color: #3D3D3D;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}

/* Стили для select в опциях */
.option-select {
    width: 160px;
    padding: 8px 32px 8px 12px;
    font-size: 0.95rem;
}

/* Блок с ценами */
.price-summary {
    background: #ffffff;
    border-radius: 6px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border: 1px solid #3D3D3D;
    overflow: hidden;
}

.price-per-item {
    display: flex;
    flex-direction: column;
    min-width: 150px;
    padding: 16px;
    flex: 1;
    background: #ffffff;
}

.price-per-item .label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #3D3D3D;
    opacity: 0.7;
}

.price-per-item .value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #3D3D3D;
    line-height: 1.2;
}

.price-per-item .value small {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.8;
}

/* Детали расчета - бледно-серый фон */
.price-details {
    flex: 1;
    min-width: 250px;
    padding: 16px;
    background: #f6f6f6;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #3D3D3D;
}

.total-row {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 2px solid #3D3D3D;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Итоговая сумма - цвет #D10808 */
.total-row span:last-child {
    color: #D10808;
}

/* Строка с наценкой */
#coverageRow {
    display: none;
}

#coverageSurcharge {
    font-weight: 500;
}

.price-warning {
    background: #fff1e0;
    border-left: 4px solid #D10808;
    padding: 8px 12px;
    border-radius: 6px;
    margin-top: 12px;
    font-size: 0.85rem;
    color: #a23c2c;
}

.calculator-wrapper {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Адаптация */
@media (max-width: 700px) {
    .price-summary {
        flex-direction: column;
    }
    .price-per-item {
        border-bottom: 1px solid #3D3D3D;
    }
    .price-details {
        padding: 16px;
    }
}

@media (max-width: 600px) {
    .compact-form {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    .form-group {
        border-bottom: 1px solid #3D3D3D;
    }
    .form-group:last-child {
        border-bottom: none;
    }
    .options-panel {
        flex-direction: column;
        align-items: flex-start;
    }
    .option-group {
        width: 100%;
    }
    .option-select {
        width: 100%;
    }
}