/* --- Специфичные стили для ИМТ (Yellow/Amber Theme) --- */
:root {
    --accent-yellow: #D97706;
    --accent-yellow-light: #FEF3C7;
    --gradient-yellow-card: linear-gradient(135deg, #F59E0B 0%, #D97706 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: 24px; }
.input-group { margin-bottom: 24px; }
.input-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--text-primary); }
.input-wrapper { position: relative; display: flex; align-items: center; }

.input-wrapper input {
    width: 100%; padding: 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-yellow); box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1); }
.suffix { position: absolute; right: 16px; color: var(--text-secondary); pointer-events: none; }
.helper-text { font-size: 12px; color: var(--text-secondary); margin-top: 6px; }
.row-2-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* Выбор пола */
.gender-selector { display: flex; gap: 16px; margin-bottom: 24px; }
.gender-option { flex: 1; cursor: pointer; }
.gender-option input { display: none; }
.gender-card {
    border: 1px solid #E5E7EB; border-radius: 12px; padding: 12px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 8px; transition: all 0.2s; background: #fff; color: var(--text-secondary);
}
.gender-icon { font-size: 24px; }
.gender-option input:checked + .gender-card {
    border-color: var(--accent-yellow); background: #FFFBEB; color: var(--accent-yellow);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.1);
}

/* Результаты (Yellow Card) */
.card--yellow { background: var(--gradient-yellow-card); color: #fff; border: none; }
.card--yellow h2 { color: rgba(255,255,255,0.9); font-size: 16px; margin-bottom: 10px; }

.bmi-score { font-size: 64px; font-weight: 800; line-height: 1; margin-top: 16px; }
.bmi-status {
    font-size: 20px; font-weight: 600; margin-bottom: 32px; opacity: 0.95;
    background: rgba(255,255,255,0.2); display: inline-block; padding: 4px 12px;
    border-radius: 8px; margin-top: 8px;
}

/* --- Шкала (Gauge) - ИСПРАВЛЕНО ЦЕНТРИРОВАНИЕ --- */
.bmi-gauge-container {
    position: relative;
    width: 100%;
    margin-bottom: 8px;
    /* Задаем высоту контейнера по высоте самого большого элемента (ползунка = 24px) */
    height: 24px;
}

.bmi-gauge-bar {
    height: 12px;
    width: 100%;
    border-radius: 99px;
    background: linear-gradient(to right, #3B82F6 0%, #3B82F6 18.5%, #10B981 18.5%, #10B981 50%, #F59E0B 50%, #F59E0B 75%, #EF4444 75%, #EF4444 100%);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
    /* Абсолютно центрируем полосу по вертикали */
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: 0;
}

/* Стрелочка (Ползунок) */
.bmi-pointer {
    position: absolute;
    /* Ставим центр ползунка точно по центру контейнера */
    top: 50%;
    left: 50%; /* Это значение меняется JS */
    /* Центрируем саму точку относительно её координат */
    transform: translate(-50%, -50%);
    
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: left 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1; /* Ползунок поверх полосы */
}

.bmi-pointer::after {
    content: '';
    width: 24px;
    height: 24px;
    background: #fff;
    border: 4px solid var(--accent-yellow);
    border-radius: 50%;
    /* Сделал тень чуть меньше, чтобы он "плотнее" сидел */
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.gauge-legend {
    display: flex; justify-content: space-between; font-size: 10px;
    color: rgba(255,255,255,0.7); margin-bottom: 24px; font-family: monospace;
    position: relative; z-index: 2; /* Чтобы легенда была поверх */
}

.summary-divider { height: 1px; background: rgba(255,255,255,0.2); margin: 20px 0; }
.recommendation { font-size: 14px; line-height: 1.5; background: rgba(0,0,0,0.1); padding: 16px; border-radius: 12px; }