/* --- Стили для Алкоголя (Red Theme) --- */
:root {
    --accent-red: #DC2626;
    --accent-red-light: #FEF2F2;
    --gradient-red-card: linear-gradient(135deg, #EF4444 0%, #B91C1C 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, .drink-select, .drink-vol {
    width: 100%; 
    padding: 12px 16px; 
    padding-right: 40px; /* Отступ под суффикс */
    font-size: 16px; 
    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, .drink-select:focus, .drink-vol:focus { 
    border-color: var(--accent-red); 
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15); 
}

/* Суффикс (FIX: Абсолютное позиционирование) */
.suffix, .currency { 
    position: absolute; 
    right: 16px; 
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary); 
    pointer-events: none; 
    font-size: 16px;
    font-weight: 500;
}

.row-2-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.divider { border: 0; border-top: 1px solid #E5E7EB; margin: 20px 0; }

/* Пол */
.gender-switch { display: flex; gap: 8px; }
.g-option { flex: 1; cursor: pointer; }
.g-option input { display: none; }
.g-option span {
    display: flex; align-items: center; justify-content: center; height: 46px;
    border: 1px solid #E5E7EB; border-radius: 12px; font-weight: 600; color: var(--text-secondary);
    transition: all 0.2s;
}
.g-option input:checked + span {
    border-color: var(--accent-red); background: var(--accent-red-light); color: var(--accent-red);
}

/* Добавление напитков */
.add-drink-row { display: grid; grid-template-columns: 2fr 1fr auto; gap: 8px; }
.drink-select { padding: 10px; font-size: 14px; cursor: pointer; background: #fff; }
.drink-vol { padding: 10px; }
.add-btn {
    width: 46px; border: none; background: var(--accent-red); color: #fff;
    border-radius: 12px; font-size: 24px; cursor: pointer; transition: 0.2s;
    display: flex; align-items: center; justify-content: center; padding: 0;
}
.add-btn:hover { background: #B91C1C; }

/* Список напитков */
.drinks-list { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.empty-state { text-align: center; color: var(--text-secondary); font-size: 13px; opacity: 0.7; padding: 10px; }

.drink-item {
    display: flex; justify-content: space-between; align-items: center;
    background: #F9FAFB; padding: 8px 12px; border-radius: 10px; font-size: 14px;
}
.drink-name { font-weight: 600; }
.drink-remove { cursor: pointer; color: var(--text-secondary); padding: 4px; font-size: 18px; line-height: 1; }
.drink-remove:hover { color: var(--accent-red); }

/* Результаты (Red Card) */
.card--red { background: var(--gradient-red-card); color: #fff; border: none; }

.card--red h2 { 
    color: rgba(255,255,255,0.95); margin-bottom: 16px; font-size: 18px; font-weight: 700;
}
@media (min-width: 900px) { .sticky-card { position: sticky; top: 24px; } }

.big-result {
    font-size: 56px; font-weight: 800; line-height: 1; margin-bottom: 20px;
    display: flex; align-items: baseline; gap: 8px; white-space: nowrap;
}
.big-result small { font-size: 20px; opacity: 0.8; }

/* Блок "Полное отрезвление" */
.sober-time-box {
    display: flex; align-items: flex-start; gap: 12px;
    background: rgba(255,255,255,0.15); padding: 12px; border-radius: 12px;
    backdrop-filter: blur(4px); margin-bottom: 16px;
}
.sober-icon { font-size: 20px; line-height: 1.4; }
.sober-info { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.sober-info span { font-size: 12px; opacity: 0.9; margin-bottom: 2px; }
.sober-info strong { font-size: 16px; color: #fff; white-space: normal; }

.details-list { margin-bottom: 16px; display: flex; flex-direction: column; gap: 8px; }
.detail-row {
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.2); 
    padding-bottom: 8px; font-size: 14px;
}
.detail-row:last-child { border-bottom: none; }
.detail-row strong { font-size: 16px; font-weight: 700; text-align: right; }

.summary-divider { height: 1px; background: rgba(255,255,255,0.2); margin: 16px 0; }

/* Подсказка (Белый текст) */
.tip-box {
    font-size: 12px; line-height: 1.4; color: #ffffff;
    background: rgba(255, 255, 255, 0.15); padding: 12px; border-radius: 12px;
    backdrop-filter: blur(4px); margin-top: 12px;
}
.tip-box p { margin: 0; color: rgba(255, 255, 255, 0.95); }
.tip-box strong { font-weight: 700; color: #fff; }