/* --- Стили для Штор (Indigo Theme) --- */
:root {
    --accent-indigo: #4F46E5;
    --accent-indigo-light: #E0E7FF;
    --gradient-indigo-card: linear-gradient(135deg, #6366F1 0%, #4338CA 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); }

/* FIX: Позиционирование контейнера */
.input-wrapper { 
    position: relative; 
    display: flex; 
    align-items: center; 
    width: 100%;
}

.input-wrapper input {
    width: 100%; 
    padding: 12px 16px; 
    padding-right: 40px; /* Отступ под суффикс */
    font-size: 18px; 
    font-weight: 500;
    border: 1px solid #E5E7EB; 
    border-radius: 12px;
    outline: none; 
    transition: border 0.2s;
    font-family: var(--font-main);
    box-sizing: border-box; /* Чтобы паддинг не ломал ширину */
}
.input-wrapper input:focus { border-color: var(--accent-indigo); box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15); }

/* FIX: Абсолютное позиционирование суффикса */
.suffix { 
    position: absolute; 
    right: 16px; 
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary); 
    pointer-events: none; 
    font-size: 16px;
    font-weight: 500;
}

.helper-text { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }

.row-2-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Табы (Режимы) */
.mode-switcher {
    display: flex; background: #F3F4F6; padding: 4px;
    border-radius: 12px; margin-bottom: 24px; gap: 4px;
}
.mode-btn {
    flex: 1; padding: 10px 4px; border: none; background: transparent;
    color: var(--text-secondary); font-size: 13px; font-weight: 600;
    border-radius: 8px; cursor: pointer; transition: all 0.2s; text-align: center;
}
.mode-btn.active { background: #fff; color: var(--text-primary); box-shadow: 0 2px 8px rgba(0,0,0,0.05); }

/* Карточки сборки (Fullness) */
.fullness-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.fullness-option { cursor: pointer; }
.fullness-option input { display: none; }

.fullness-card {
    border: 1px solid #E5E7EB; border-radius: 10px; padding: 10px 4px;
    display: flex; flex-direction: column; align-items: center; text-align: center;
    transition: all 0.2s; background: #fff; height: 100%;
}
.f-val { font-weight: 800; font-size: 14px; color: var(--text-primary); margin-bottom: 2px; }
.f-desc { font-size: 10px; color: var(--text-secondary); }

.fullness-option input:checked + .fullness-card {
    border-color: var(--accent-indigo); background: var(--accent-indigo-light);
    color: var(--accent-indigo); box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.fullness-option input:checked + .fullness-card .f-val { color: var(--accent-indigo); }

/* Результаты (Indigo Card) */
.card--indigo { background: var(--gradient-indigo-card); color: #fff; border: none; }
.card--indigo h2 { color: rgba(255,255,255,0.95); 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; opacity: 0.8; font-weight: 600; }

.details-list { display: flex; flex-direction: column; gap: 10px; }
.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; white-space: nowrap; }

.summary-divider { height: 1px; background: rgba(255,255,255,0.2); margin: 20px 0; }

/* FIX: Текст подсказки (белый, читаемый) */
.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; }