/* --- Стили для Затирки (Stone Theme) --- */
:root {
    --accent-stone: #78716C; /* Stone 500 */
    --accent-stone-light: #F5F5F4;
    --gradient-stone-card: linear-gradient(135deg, #52525B 0%, #27272A 100%);
}

.calc-header { margin-bottom: 32px; }
.subtitle { color: var(--text-secondary); margin-top: 8px; }

/* Сетка */
.calc-grid { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
@media (min-width: 900px) { .calc-grid { grid-template-columns: 1.2fr 0.8fr; } }

/* Inputs */
.calc-inputs { gap: 16px; }
.input-group { margin-bottom: 16px; }
.input-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--text-primary); }
.input-wrapper { position: relative; display: flex; align-items: center; }

.input-wrapper input {
    width: 100%; padding: 14px 16px; padding-right: 40px;
    font-size: 18px; font-weight: 500;
    border: 1px solid #E5E7EB; border-radius: 12px;
    outline: none; transition: border 0.2s, box-shadow 0.2s;
    font-family: var(--font-main);
}
.input-wrapper input:focus { border-color: var(--accent-stone); box-shadow: 0 0 0 3px rgba(120, 113, 108, 0.15); }
.suffix { position: absolute; right: 16px; color: var(--text-secondary); pointer-events: none; }

/* Сетки полей */
.row-3-col { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.row-2-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Выбор плотности */
.density-selector { display: flex; gap: 8px; }
.density-option { flex: 1; cursor: pointer; }
.density-option input { display: none; }
.density-card {
    border: 1px solid #E5E7EB; border-radius: 12px; padding: 10px;
    display: flex; flex-direction: column; align-items: center; text-align: center;
    transition: all 0.2s; background: #fff; height: 100%;
}
.density-card span { font-weight: 600; font-size: 13px; color: var(--text-primary); margin-bottom: 2px; }
.density-card small { font-size: 11px; color: var(--text-secondary); }

.density-option input:checked + .density-card {
    border-color: var(--accent-stone); background: var(--accent-stone-light);
    color: var(--accent-stone); box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Результаты (Stone Card) */
.card--stone { 
    background: var(--gradient-stone-card); 
    color: #fff; 
    border: none; 
}
.card--stone h2 { color: rgba(255,255,255,0.9); margin-bottom: 20px; font-size: 16px; }
@media (min-width: 900px) { .sticky-card { position: sticky; top: 24px; } }

.big-result {
    font-size: 56px; font-weight: 800; line-height: 1; margin-bottom: 24px;
    display: flex; align-items: baseline; gap: 12px; white-space: nowrap;
}
.big-result small { font-size: 24px; font-weight: 600; opacity: 0.8; }

/* Визуализация ведер */
.buckets-visual { 
    display: flex; align-items: center; justify-content: space-between; 
    background: rgba(255,255,255,0.15); 
    padding: 16px; 
    border-radius: 12px;
    margin-bottom: 20px;
    backdrop-filter: blur(4px);
}
.bucket-item { display: flex; align-items: center; gap: 12px; }

.bucket-icon { 
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    color: #fff; opacity: 0.9; flex-shrink: 0;
}
.bucket-icon svg { width: 100%; height: 100%; display: block; }

.bucket-info { display: flex; flex-direction: column; line-height: 1.2; }
.bucket-info strong { font-size: 20px; font-weight: 700; color: #fff; }
.bucket-info span { font-size: 11px; opacity: 0.8; white-space: nowrap; }
.bucket-or { font-size: 10px; opacity: 0.5; font-weight: 700; text-transform: uppercase; margin: 0 4px; }

.summary-divider { height: 1px; background: rgba(255,255,255,0.2); margin: 20px 0; }

.details-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.detail-row {
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 10px; font-size: 14px;
}
.detail-row:last-child { border-bottom: none; }
.detail-row strong { font-size: 16px; font-weight: 700; }

/* ИСПРАВЛЕНО: Белый текст подсказки */
.tip-box {
    font-size: 13px; line-height: 1.4; 
    color: #ffffff; /* Принудительно белый */
    
    background: rgba(255, 255, 255, 0.15); 
    padding: 14px; 
    border-radius: 12px;
    backdrop-filter: blur(4px); 
    margin-top: 16px;
}

.tip-box p {
    margin: 0;
    color: rgba(255, 255, 255, 0.95);
}

.tip-box strong {
    font-weight: 700;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    padding: 0 4px;
    border-radius: 4px;
}