:root {
    /* Основная палитра */
    --primary: #B26E50; /* терракотовый - главный акцент */
    --primary-dark: #9A5D42; /* тёмный терракотовый */
    --primary-light: #C88B72; /* светлый терракотовый */
    --secondary: #C1A9A2; /* пыльно-розовый */
    --success: #A4AC94; /* светло-оливковый */
    --danger: #B26E50; /* терракотовый для ошибок */
    --warning: #ADA495; /* тёплый серый */
    
    /* Нейтральные цвета */
    --dark: #2C2C2C; /* более глубокий графит */
    --dark-light: #5A5A5A; /* светлее графита */
    --light: #F5F2EC; /* более светлый бежевый фон */
    --white: #FFFFFF;
    --gray: #8B8680; /* более контрастный серый */
    --gray-light: #E8E4D9; /* нежно-бежевый для фонов */
    
    /* Дополнительные */
    --sage: #C0C9B6; /* шалфейный зелёный */
    --dusty-pink: #D4BAB1; /* более светлый пыльно-розовый */
    --warm-gray: #ADA495; /* тёплый серый */
    --beige: #F5F2EC; /* более светлый бежевый */
    
    /* Градиенты */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    --gradient-soft: linear-gradient(135deg, var(--beige) 0%, var(--gray-light) 100%);
    --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 100%);
    
    /* Элементы дизайна */
    --border-radius: 16px; /* увеличиваем для мягкости */
    --border-radius-large: 24px;
    --border-radius-small: 12px;
    --shadow: 0 4px 20px rgba(178, 110, 80, 0.15); /* тёплые тени */
    --shadow-lg: 0 8px 40px rgba(178, 110, 80, 0.2);
    --shadow-card: 0 2px 16px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* плавные переходы */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--gray-light);
    color: var(--dark);
    line-height: 1.6;
    overflow: hidden;
    height: 100vh;
    height: 100dvh; /* Динамическая высота viewport для мобильных */
    margin: 0;
    padding: 0;
}

.container {
    max-width: 420px;
    margin: 0 auto;
    height: 100vh;
    height: 100dvh;
    background: var(--white);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 8px 32px 10px;
    border-radius: 0 0 12px 12px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    margin: 0 16px;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(180deg); }
}

.header-top {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 6px;
}

.logo {
    font-size: 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 4px;
}

.back-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
    display: none;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 20px;
}

.back-btn.visible {
    display: flex;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.welcome-text {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 2px;
    position: relative;
}

.subtitle {
    font-size: 11px;
    opacity: 0.9;
    font-weight: 400;
}

.main-content {
    flex: 1;
    padding: 16px 32px 100px;
    overflow: hidden;
}

#nutrition .main-content,
#workouts .main-content {
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

#active-workout .main-content {
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
    padding-bottom: 100px;
    max-height: calc(100vh - 140px);
    max-height: calc(100dvh - 140px);
}

/* Компактное отображение повторений в одну строку */
.exercise-reps-inline {
    margin-bottom: 8px;
}

.reps-value {
    color: var(--dark);
    font-weight: 500;
    font-size: 14px;
    display: block;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#nutrition .main-content::-webkit-scrollbar,
#workouts .main-content::-webkit-scrollbar,
#active-workout .main-content::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Защита видео от скачивания */
.exercise-video video {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    pointer-events: auto;
}

.exercise-video video::-webkit-media-controls-download-button {
    display: none;
}

.exercise-video video::-webkit-media-controls-fullscreen-button {
    display: none;
}

.section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.primary-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.primary-card {
    border-radius: var(--border-radius);
    padding: 12px;
    color: white;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}


.primary-card.quick-start-action {
    background: var(--white);
    border: 1px solid var(--gray-light);
    box-shadow: var(--shadow);
    color: var(--dark);
    /* Делаем во всю ширину */
    grid-column: 1 / -1;
}

.primary-card.quick-start-action::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.primary-card.quick-start-action:hover::before {
    transform: scaleX(1);
}
.primary-card.quick-start-action:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.primary-card h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

.primary-card p {
    font-size: 11px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.primary-card.quick-start-action h3 {
    color: var(--dark);
}

.primary-card.quick-start-action p {
    color: var(--gray);
    opacity: 1;
}

.primary-badge {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 3px 6px;
    border-radius: 8px;
    font-size: 9px;
    font-weight: 600;
    display: inline-block;
}

.action-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.action-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 12px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--gray-light);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.action-card:hover::before {
    transform: scaleX(1);
}

.action-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.action-icon {
    color: var(--primary);
    margin-bottom: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 24px;
}

.action-icon svg {
    color: inherit;
}

.action-card h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 2px;
}

.action-card p {
    font-size: 10px;
    color: var(--gray);
}

/* =============== ТРЕНИРОВКИ =============== */

.start-workout-section {
    margin-bottom: 20px;
}

.today-workout-card {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: white;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}

.today-workout-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.today-workout-header {
    margin-bottom: 12px;
}

.today-workout-day {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 4px;
    color: white;
}

.today-workout-name {
    font-size: 18px;
    font-weight: 700;
    color: white;
}

.today-workout-info {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 13px;
    opacity: 0.9;
    color: white;
}

.today-workout-card .today-workout-info .workout-duration,
.today-workout-card .today-workout-info .workout-exercises {
    color: white !important;
}

.today-workout-card .workout-duration,
.today-workout-card .workout-exercises {
    color: white !important;
}

.btn-start-workout {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    width: 100%;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    line-height: 1.3;
}

.btn-start-workout:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn-workout-completed {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.9) 0%, rgba(5, 150, 105, 0.9) 100%);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    width: 100%;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    line-height: 1.3;
}

.btn-workout-completed:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 1) 0%, rgba(5, 150, 105, 1) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.btn-continue-workout {
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.9) 0%, rgba(245, 158, 11, 0.9) 100%);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    width: 100%;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    line-height: 1.3;
}

.btn-continue-workout:hover {
    background: linear-gradient(135deg, rgba(251, 146, 60, 1) 0%, rgba(245, 158, 11, 1) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
}

.workout-stats {
    font-size: 11px;
    opacity: 0.9;
    margin-top: 4px;
    font-weight: 500;
}

.workout-day-card {
    background: var(--white);
    border-radius: var(--border-radius);
    margin-bottom: 8px;
    border: 1px solid var(--gray-light);
    overflow: hidden;
}

.workout-day-header {
    padding: 12px 16px;
    background: var(--gray-light);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 14px;
}

.workout-day-header:hover {
    background: rgba(178, 110, 80, 0.1);
}

.workout-day-header h4 {
    margin: 0;
    font-size: 16px;
    color: var(--dark);
    font-weight: 600;
}

.workout-day-content {
    display: none;
    padding: 8px;
}

.workout-day-card.expanded .workout-day-content {
    display: block;
}

.workout-duration {
    background: rgba(0, 0, 0, 0.25);
    color: black;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}

.workout-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
    line-height: 1.3;
}

.workout-info-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 6px;
}

.workout-duration, .workout-exercises {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 3px;
}

.workout-duration {
    background: rgba(178, 110, 80, 0.1);
    color: var(--primary-dark);
    border: 1px solid rgba(178, 110, 80, 0.2);
}

.workout-exercises {
    background: rgba(164, 172, 148, 0.1);
    color: var(--success);
    border: 1px solid rgba(164, 172, 148, 0.2);
}

.workout-exercises svg {
    color: inherit;
}

/* Workout exercises accordion */
.workout-exercises-content {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--gray-light);
}

.workout-exercise-item {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 6px;
    margin-bottom: 1px;
    overflow: hidden;
}

.workout-exercise-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.workout-exercise-header:hover {
    background: rgba(0, 0, 0, 0.08);
}


.workout-exercise-header .exercise-name {
    font-weight: 600;
    color: var(--dark);
    font-size: 15px;
    line-height: 1;
    margin: 0;
    padding: 0;
}


.workout-exercise-details {
    display: none;
    padding: 0;
    font-size: 13px;
    color: var(--gray);
}

.workout-exercise-item.expanded .workout-exercise-details {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    min-height: 50px !important;
    gap: 4px !important;
    padding: 8px 12px !important;
}

.workout-exercise-item.expanded .exercise-sets-reps,
.workout-exercise-item.expanded .exercise-description {
    margin: 0 !important;
    padding: 0 !important;
}

.exercise-sets-reps {
    font-weight: 600;
    color: var(--primary);
    font-size: 13px;
    line-height: 1;
    margin: 0;
    padding: 0;
}

.exercise-description {
    line-height: 1.3;
    font-size: 12px;
    color: var(--gray);
    margin: 0;
    padding: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.workout-day-card .workout-day-header {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.weekly-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 16px;
}

.day-workout-card {
    background: var(--white);
    border: 2px solid var(--gray-light);
    border-radius: 12px;
    padding: 14px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.day-workout-card:hover {
    border-color: var(--primary);
    transform: translateX(4px);
    box-shadow: var(--shadow-lg);
}

.day-workout-card.today {
    border-color: var(--success);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(16, 185, 129, 0.1) 100%);
}

.day-workout-card.completed {
    border-color: var(--success);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.15) 100%);
}

.day-workout-card.rest-day {
    opacity: 0.6;
    cursor: default;
    background: var(--light);
}

.day-workout-card.rest-day:hover {
    transform: none;
    border-color: var(--gray-light);
    box-shadow: none;
}

.day-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.day-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
}

.today-badge {
    background: var(--success);
    color: white;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 600;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.completed-badge {
    background: var(--success);
    color: white;
    padding: 2px 6px;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.day-card-content {
    flex: 1;
}

.workout-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 2px;
}

.workout-meta {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: var(--gray);
}

.completion-badge {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: white;
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
    margin-top: 4px;
    display: inline-block;
}

.card-arrow {
    color: var(--gray);
    font-size: 16px;
    font-weight: 600;
}

.btn-toggle-details {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 12px;
    cursor: pointer;
    margin-left: 8px;
}

/* =============== АКТИВНАЯ ТРЕНИРОВКА =============== */

.workout-progress-bar {
    width: 100%;
    height: 8px;
    background: var(--gray-light);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 24px;
    position: relative;
}

.workout-progress-bar .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--success) 0%, var(--primary) 100%);
    border-radius: 4px;
    width: 0%;
    position: relative;
}

.workout-progress-bar .progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 20px;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-20px); }
    100% { transform: translateX(20px); }
}

.exercise-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-light);
    margin-bottom: 16px;
}

.exercise-number {
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.exercise-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
    line-height: 1.2;
}

.exercise-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
    padding: 16px;
    background: var(--light);
    border-radius: 12px;
}

.exercise-param {
    text-align: center;
}

.param-label {
    display: block;
    font-size: 11px;
    color: var(--gray);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.param-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.exercise-description {
    margin-bottom: 16px;
}

.exercise-description h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.exercise-description p {
    font-size: 13px;
    color: var(--dark-light);
    line-height: 1.4;
    background: rgba(99, 102, 241, 0.05);
    padding: 12px;
    border-radius: 8px;
    border-left: 3px solid var(--primary);
}

.sets-tracker h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 12px;
}

.sets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.set-btn {
    background: var(--white);
    border: 2px solid var(--gray-light);
    border-radius: 12px;
    padding: 12px 8px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-height: 60px;
    position: relative;
}

.set-btn:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.set-btn.completed {
    background: var(--success);
    border-color: var(--success);
    color: white;
    transform: scale(1.05);
    animation: setCompleted 0.4s ease-out;
}

@keyframes setCompleted {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(5deg); }
    100% { transform: scale(1.05) rotate(0deg); }
}

.set-btn.completed:hover {
    transform: scale(1.05) translateY(-2px);
}

.set-number {
    font-size: 12px;
    font-weight: 600;
}

.set-status {
    font-size: 16px;
    font-weight: 700;
}

.exercise-navigation {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--gray-light);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    max-width: 430px;
    margin: 0 auto;
    padding: 16px 20px;
}

.exercise-navigation #nextExerciseBtn,
.exercise-navigation #finishWorkoutBtn {
    margin-left: auto;
}

/* Стили для кнопок навигации без текста */
.exercise-navigation .nav-btn-compact {
    padding: 10px 16px;
    border-radius: 10px;
    min-width: 50px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Правило для активной тренировки перенесено выше к общим правилам прокрутки */

/* Анимация для смены упражнений */
.exercise-card {
    animation: exerciseSlideIn 0.3s ease-out;
}

@keyframes exerciseSlideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* =============== ПЛАН ТРЕНИРОВОК =============== */

#planContent, #workoutPlanContent {
    padding: 0;
    line-height: 1.3;
    font-size: 12px;
}

#planContent h1, #workoutPlanContent h1 {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 2px solid var(--primary);
}

#planContent h2, #workoutPlanContent h2 {
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
    margin: 8px 0 6px 0;
    padding: 4px 8px;
    background: var(--light);
    border-radius: 4px;
    border-left: 3px solid var(--success);
}

#planContent h3, #workoutPlanContent h3 {
    font-size: 12px;
    font-weight: 600;
    color: var(--dark-light);
    margin: 6px 0 4px 0;
}

#planContent strong, #workoutPlanContent strong {
    color: var(--primary);
    font-weight: 600;
    font-size: 12px;
}

#planContent ul, #workoutPlanContent ul {
    margin: 2px 0 6px 0;
    padding-left: 0;
    list-style: none;
}

#planContent li, #workoutPlanContent li {
    margin-bottom: 1px;
    padding: 1px 0 1px 12px;
    position: relative;
    font-size: 11px;
    color: var(--dark-light);
}

#planContent li::before, #workoutPlanContent li::before {
    content: '•';
    color: var(--success);
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 12px;
}

#planContent hr, #workoutPlanContent hr {
    border: none;
    height: 1px;
    background: var(--gray-light);
    margin: 8px 0;
}

#planContent p, #workoutPlanContent p {
    margin-bottom: 6px;
    color: var(--dark);
    font-size: 12px;
}


/* =============== SURVEY STYLES =============== */

.survey-progress {
    background: var(--light);
    padding: 0 20px 12px;
    flex-shrink: 0;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: var(--gray-light);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--success) 100%);
    border-radius: 2px;
    transition: width 0.5s ease;
    width: 8.33%;
}

.survey-container {
    position: relative;
    height: 100%;
    min-height: 400px;
    overflow: hidden;
}

.survey-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
    overflow: hidden;
}

/* Quick Survey specific styles */
#quick-survey .main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0;
}

#quick-survey .survey-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.survey-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 32px 100px;
    z-index: 1;
    overflow-y: hidden;
    overflow-x: hidden;
}

.survey-slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: all;
    z-index: 10;
}

.question-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 10px 0;
    text-align: center;
}

.question-subtitle {
    font-size: 13px;
    color: var(--gray);
    text-align: center;
    margin-bottom: 20px;
}

.survey-input {
    width: calc(100% - 32px);
    padding: 14px 20px;
    border: 2px solid var(--gray-light);
    border-radius: 16px;
    font-size: 16px;
    text-align: center;
    transition: var(--transition);
    background: var(--white);
    box-sizing: border-box;
    margin: 24px 16px 0;
}

.survey-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.choice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 0 16px;
}

.choice-grid.vertical {
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 0 16px;
}

.choice-card {
    background: var(--white);
    border: 2px solid var(--gray-light);
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.choice-card.horizontal {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    padding: 12px 16px;
}

.choice-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.choice-card.selected {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
    animation: cardSelect 0.3s ease-out;
}

@keyframes cardSelect {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

.choice-card.selected::before {
    content: '✓';
    position: absolute;
    top: 6px;
    right: 10px;
    background: var(--primary);
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
}

.choice-icon {
    margin-bottom: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 24px;
}

.choice-icon svg {
    color: var(--primary);
}

.choice-card.horizontal .choice-icon {
    font-size: 22px;
    margin-bottom: 0;
    flex-shrink: 0;
}

.choice-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 2px;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    word-wrap: break-word;
    hyphens: auto;
}

.choice-card.compact .choice-text {
    font-size: 12px;
    padding: 2px;
    min-height: 32px;
}

.choice-card.compact {
    padding: 10px 8px;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.choice-content {
    flex: 1;
}

.number-input-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 16px;
}

.number-btn {
    width: 50px;
    height: 50px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    background: var(--white);
    color: var(--primary);
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.number-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.number-display {
    text-align: center;
    min-width: 100px;
}

.number-display span:first-child {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 2px;
}

.number-unit {
    font-size: 13px;
    color: var(--gray);
}

.days-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin: 0 16px;
}

.day-card {
    background: var(--white);
    border: 2px solid var(--gray-light);
    border-radius: 12px;
    padding: 10px 6px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.day-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.day-card.selected {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
    animation: daySelect 0.4s ease-out;
}

@keyframes daySelect {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(3deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.day-short {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
}

.day-full {
    font-size: 9px;
    opacity: 0.8;
}

#target-weight-input {
    margin: 16px;
    padding: 16px;
    background: var(--light);
    border-radius: 12px;
    border: 2px dashed var(--gray-light);
    transition: var(--transition);
}

#target-weight-input.show {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

/* =============== ПРОФИЛЬ =============== */

.profile-section {
    margin-bottom: 16px;
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 14px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-light);
}

/* Делаем экран редактирования профиля скроллируемым */
#edit-profile .main-content {
    overflow-y: auto;
    height: calc(100vh - 140px);
    padding-bottom: 100px;
}

.profile-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--gray-light);
}

.days-grid-edit {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 8px;
}

.day-card-edit {
    background: var(--white);
    border: 2px solid var(--gray-light);
    border-radius: 12px;
    padding: 8px 4px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    user-select: none;
}

.day-card-edit:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.day-card-edit.selected {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-lg);
}

.day-card-edit .day-short {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 2px;
}

.day-card-edit .day-full {
    font-size: 8px;
    opacity: 0.8;
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 6px;
}

.form-input, .form-select {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--gray-light);
    border-radius: 10px;
    font-size: 14px;
    transition: var(--transition);
    background: var(--white);
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* =============== NAVIGATION & BUTTONS =============== */

/* Отступ для текста под кнопкой назад в анкетах */
#quick-survey .welcome-text {
    margin-top: 20px;
}

#quick-survey .subtitle {
    margin-top: 8px;
}


.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #B26E50 0%, #E8E4D9 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #9A5D42 0%, #D4CFC2 100%);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--gray-light);
    color: var(--dark);
}

.btn-secondary:hover {
    background: var(--gray);
    color: white;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #DC2626;
    transform: translateY(-2px);
}

.btn-group {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.btn-group .btn {
    flex: 1;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 16px;
    right: 16px;
    background: var(--white);
    border-top: 1px solid var(--gray-light);
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: space-around;
    padding: 8px 16px 16px;
    flex-shrink: 0;
    transition: var(--transition);
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 0;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px; /* Уменьшили отступ */
    padding: 3px 6px; /* Уменьшили отступы */
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.nav-item.active {
    background: var(--primary);
    color: white;
}

.nav-item:not(.active):hover {
    background: var(--light);
}

.nav-icon {
    font-size: 16px; /* Уменьшили размер иконок */
}

.nav-label {
    font-size: 8px; /* Еще меньше текст */
    font-weight: 600;
}

/* =============== SCREEN MANAGEMENT =============== */

.screen {
    display: none;
    height: 100vh;
    flex-direction: column;
}

.screen.active {
    display: flex;
    animation: slideIn 0.3s ease-out;
}


@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

#dashboard {
    background: #E8E4D9 !important;
}

#workouts {
    background: #E8E4D9 !important;
}

#ai-chat {
    background: #E8E4D9 !important;
}

#nutrition {
    background: #E8E4D9 !important;
}

#nutrition-survey {
    background: #E8E4D9 !important;
}

#profile {
    background: #E8E4D9 !important;
}

#quick-survey {
    background: #E8E4D9 !important;
}

#health-restrictions-survey {
    background: #E8E4D9 !important;
}

#active-workout {
    background: #E8E4D9 !important;
}

.profile-header {
    text-align: center;
    margin-bottom: 12px;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    margin: 0 auto 8px;
}

.profile-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 2px;
}

.profile-subtitle {
    color: var(--gray);
    font-size: 13px;
}

.profile-item {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 14px;
    margin-bottom: 6px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-light);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.profile-item:hover {
    border-color: var(--primary);
    transform: translateX(4px);
}

.profile-item-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-item-icon svg {
    color: var(--primary);
}

.profile-item-text {
    flex: 1;
}

.profile-item-title {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1px;
    font-size: 14px;
}

.profile-item-subtitle {
    font-size: 11px;
    color: var(--gray);
}

.profile-item-arrow {
    color: var(--gray);
    font-size: 16px;
}

/* =============== LOADING & TOASTS =============== */

/* Overlay для затемнения */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(245, 242, 236, 0.95) 0%, 
        rgba(232, 228, 217, 0.98) 100%);
    backdrop-filter: blur(8px);
    z-index: 999;
    display: none;
}

.loading-overlay.active {
    display: block;
}

.loading {
    display: none;
    text-align: center;
    padding: 48px 32px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    background: var(--gradient-card);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-lg);
    min-width: 320px;
    max-width: 400px;
    border: 1px solid var(--gray-light);
}

.loading.active {
    display: block;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--gray-light);
    border-top: 4px solid var(--primary);
    border-right: 4px solid var(--primary-light);
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
    margin: 0 auto 24px;
    box-shadow: 0 2px 8px rgba(178, 110, 80, 0.2);
}

.loading .section-title {
    color: var(--dark);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    text-align: center;
    display: block;
}

.loading .text-gray {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.5;
    max-width: 280px;
    margin: 0 auto;
    text-align: center;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.toast {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--success);
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    z-index: 1001;
    animation: slideDown 0.3s ease-out;
    max-width: 90%;
    text-align: center;
    line-height: 1.3;
}

.toast.error {
    background: var(--danger);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* =============== UTILITY CLASSES =============== */

.hidden {
    display: none !important;
}

.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-gray { color: var(--gray); }

/* =============== АДАПТИВНОСТЬ =============== */

@media (max-width: 380px) {
    .exercise-details {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .exercise-name {
        font-size: 20px;
    }
    
    .param-value {
        font-size: 18px;
    }
    
    .sets-grid {
        grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
        gap: 6px;
    }
    
    .set-btn {
        padding: 8px 4px;
        min-height: 50px;
    }
    
    .day-card-header {
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .workout-stats {
        font-size: 10px;
    }
    
    .days-grid-edit {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
    
    .day-card-edit {
        padding: 6px 2px;
    }
    
    .day-card-edit .day-short {
        font-size: 11px;
    }
    
    .day-card-edit .day-full {
        font-size: 7px;
    }
    
    .profile-section {
        padding: 12px;
        margin-bottom: 16px;
    }
    
    .choice-grid {
        gap: 8px;
    }
    
    .choice-grid.vertical {
        gap: 6px;
    }
    
    .container {
        max-width: 100%;
    }
    
    .number-input-container {
        gap: 12px;
    }
    
    .number-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .number-display {
        min-width: 80px;
    }
    
    .number-display span:first-child {
        font-size: 24px;
    }
    
    .choice-card.horizontal {
        padding: 10px 12px;
        gap: 10px;
    }
    
    .choice-card.horizontal .choice-icon {
        font-size: 20px;
    }
    
    .question-title {
        font-size: 18px;
    }
}

@media (max-width: 320px) {
    .workout-progress-bar {
        height: 6px;
    }
    
    .exercise-card {
        padding: 16px;
    }
    
    .sets-grid {
        grid-template-columns: repeat(auto-fit, minmax(45px, 1fr));
        gap: 4px;
    }
    
    .exercise-navigation {
        padding: 10px 16px;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .survey-input {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .choice-card {
        padding: 12px;
    }
    
    .choice-card.horizontal {
        padding: 8px 10px;
    }
    
    .question-title {
        font-size: 16px;
        margin-bottom: 4px;
    }
    
    .question-subtitle {
        font-size: 12px;
        margin-bottom: 20px;
    }
}

/* =============== CHAT NAV & CHAT STYLES =============== */

/* Единообразные стили для всех иконок навигации */
.nav-icon svg {
    color: var(--gray);
    transition: var(--transition);
}

.nav-item.active .nav-icon svg {
    fill: white;
}

/* Чат экран */
.chat-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 388px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    z-index: 1000;
    height: 60px;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}

/* Специальный стиль для кнопки назад в чате */
.chat-header .back-btn {
    position: static;
    margin-right: 16px;
}

.chat-title {
    display: flex;
    align-items: center;
    margin-left: 16px;
}

.trainer-avatar {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-right: 12px;
    color: var(--primary);
}

.trainer-name {
    font-weight: 600;
    font-size: 16px;
    color: white;
}

.trainer-status {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
}

.chat-container {
    padding-top: 60px;
    padding-bottom: 140px; /* Увеличенный отступ чтобы текст не скрывался за полем ввода */
    height: 100vh;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

.chat-messages::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.message {
    display: flex;
    margin-bottom: 16px;
    animation: messageSlide 0.3s ease-out;
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-message {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    color: white;
}

.ai-message .message-avatar {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    margin-right: 8px;
}

.user-message .message-avatar {
    background: var(--primary);
    margin-left: 8px;
}

.message-content {
    max-width: 70%;
    background: var(--primary);
    color: white;
    border: 1px solid var(--primary);
    padding: 12px 16px;
    border-radius: 18px;
    position: relative;
}

.user-message .message-content {
    background: var(--primary);
    color: white;
    border: 1px solid var(--primary);
}

.message-content p {
    margin: 0;
    font-size: 14px !important;
    line-height: 1.4;
}

/* Настройка размеров для разных элементов */
.message-content h1 {
    font-size: 18px !important;
    font-weight: 600;
    margin: 8px 0 4px 0;
}

.message-content h2 {
    font-size: 16px !important;
    font-weight: 600;
    margin: 6px 0 3px 0;
}

.message-content h3 {
    font-size: 15px !important;
    font-weight: 600;
    margin: 4px 0 2px 0;
}

.message-content strong {
    font-size: 14px !important;
    font-weight: 600;
}

.message-content li {
    font-size: 14px !important;
    margin: 2px 0;
}

/* Дополнительные правила для переопределения системных стилей */
.message-content span, 
.message-content div {
    font-size: 14px !important;
    -webkit-text-size-adjust: none !important;
    text-size-adjust: none !important;
}

.message-content p + p {
    margin-top: 8px;
}

.message-time {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 4px;
    align-self: flex-end;
}

/* Быстрые действия */
.chat-quick-actions {
    position: fixed;
    bottom: 150px; /* Над полем ввода */
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 388px;
    padding: 16px 20px;
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto; /* Прокрутка если кнопки не помещаются */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
    background: transparent;
    z-index: 999;
}

/* Скрываем скроллбар в WebKit браузерах (Chrome, Safari) */
.chat-quick-actions::-webkit-scrollbar {
    display: none;
}

.quick-action {
    background: var(--primary);
    border: 1px solid var(--primary);
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: white;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.quick-action svg {
    color: inherit;
}

/* Поле ввода */
.chat-input-container {
    position: fixed;
    bottom: 85px; /* Навигация (~41px) + зазор (~30px) + отступ (~14px) */
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 20px);
    max-width: 400px;
    background: transparent;
    border: none;
    padding: 8px 16px;
    z-index: 1000;
}

.chat-input-wrapper {
    display: flex;
    align-items: center;
    background: var(--white);
    border: 1px solid var(--primary);
    border-radius: 20px;
    padding: 4px 8px;
    box-shadow: 0 2px 8px rgba(178, 110, 80, 0.1);
}

#chatInput {
    flex: 1;
    border: none;
    background: none;
    padding: 8px 12px;
    font-size: 14px;
    outline: none;
}

.send-btn {
    width: 32px;
    height: 32px;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.send-btn:disabled {
    background: var(--gray);
    cursor: not-allowed;
}

.send-icon {
    color: white;
    font-size: 16px;
}

/* Индикатор печатания */
.typing-indicator {
    display: flex;
    align-items: center;
    margin-top: 8px;
    color: var(--text-secondary);
    font-size: 12px;
}

.typing-dots {
    display: flex;
    align-items: center;
    margin-right: 8px;
}

.typing-dots span {
    width: 4px;
    height: 4px;
    background: var(--text-secondary);
    border-radius: 50%;
    margin: 0 1px;
    animation: typingDot 1.4s infinite;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingDot {
    0%, 60%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    30% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* ====================== NUTRITION STYLES ====================== */

.nutrition-stats {
    display: flex;
    justify-content: space-around;
    padding: 16px;
    background: white;
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.nutrition-stats .stat-item {
    text-align: center;
    flex: 1;
}

.nutrition-stats .stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
}

.nutrition-stats .stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.meals-container {
    padding: 0 16px;
}

.meal-card {
    background: white;
    border-radius: 16px;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.meal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.meal-header:active {
    background: var(--background);
}

.meal-title {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.meal-icon {
    font-size: 24px;
}

.meal-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
}

.meal-calories {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    margin-right: 8px;
}

.meal-toggle {
    color: var(--text-secondary);
    transition: transform 0.3s;
}

.meal-header.expanded .meal-toggle {
    transform: rotate(180deg);
}

.meal-details {
    padding: 0 16px 16px;
    border-top: 1px solid var(--background);
}

.meal-content-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark);
    margin: 12px 0;
}

.meal-ingredients,
.meal-instructions {
    margin-bottom: 12px;
}

.meal-ingredients strong,
.meal-instructions strong {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.meal-ingredients div,
.meal-instructions div {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
}

.meal-macros {
    display: flex;
    gap: 20px;
    padding-top: 12px;
    border-top: 1px solid var(--background);
    font-size: 14px;
    color: var(--text-secondary);
}

.meal-macros span {
    font-weight: 500;
}

#snacksList {
    padding: 12px 0;
}

.snack-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--background);
}

.snack-item:last-child {
    border-bottom: none;
}

.snack-name {
    font-size: 14px;
    color: var(--text-primary);
}

.snack-calories {
    font-size: 14px;
    color: var(--primary);
    font-weight: 500;
}

/* Week Navigation for Nutrition */
.week-navigation {
    padding: 16px;
    background: white;
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.week-days {
    display: flex;
    justify-content: space-between;
    gap: 4px;
}

.week-day {
    flex: 1;
    text-align: center;
    padding: 12px 4px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--background);
}

.week-day:active {
    transform: scale(0.95);
}

.week-day.active {
    background: linear-gradient(135deg, var(--primary) 0%, #3B82F6 100%);
    color: white;
}

.week-day-short {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
}

.week-day-date {
    font-size: 10px;
    opacity: 0.7;
}

.week-day.active .week-day-short,
.week-day.active .week-day-date {
    color: white;
}

/* Empty state for nutrition */
#nutritionEmptyState {
    text-align: center;
    padding: 40px 20px;
}

#nutritionEmptyState .empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

#nutritionEmptyState .empty-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

#nutritionEmptyState .empty-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

#nutritionEmptyState .primary-btn {
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--primary) 0%, #3B82F6 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

/* =============== СЛАЙДЕРЫ ДЛЯ БЫСТРОЙ АНКЕТЫ =============== */

.slider-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin: 12px 0;
    width: 100%;
}

.age-slider, .height-slider, .weight-slider, .slider {
    width: 100%;
    height: 8px;
    border-radius: 6px;
    background: var(--primary);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    position: relative;
}

.slider-wrapper {
    width: 100%;
    position: relative;
    padding: 0 20px;
}

.slider-scale {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--gray);
    margin-top: 8px;
    padding: 0 10px;
}

.slider-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: center;
    margin-top: 12px;
}

.slider-value-with-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: center;
    margin-bottom: 16px;
}

.slider-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.slider-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.slider-btn:active {
    transform: scale(0.95);
}

.age-slider::-webkit-slider-thumb,
.height-slider::-webkit-slider-thumb, 
.weight-slider::-webkit-slider-thumb,
.slider::-webkit-slider-thumb {
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
}

.age-slider::-webkit-slider-thumb:hover,
.height-slider::-webkit-slider-thumb:hover,
.weight-slider::-webkit-slider-thumb:hover,
.slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    background: var(--primary-dark);
}

.age-slider::-moz-range-thumb,
.height-slider::-moz-range-thumb,
.weight-slider::-moz-range-thumb,
.slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.slider-value {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 16px;
    padding: 12px 20px;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    min-width: 100px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* =============== НАВИГАЦИЯ В СЛАЙДАХ =============== */

/* Компактная навигация */
.slide-navigation-compact {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #E8E4D9;
    border-top: 1px solid var(--gray-light);
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    z-index: 100;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    max-width: 420px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.nav-btn-compact {
    padding: 10px 28px;
    border-radius: 10px;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    flex: 1;
    max-width: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.nav-btn-compact.primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.nav-btn-compact.primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

.nav-btn-compact.primary:disabled {
    background: var(--gray-light);
    color: var(--gray);
    cursor: not-allowed;
    box-shadow: none;
}

.nav-btn-compact.secondary {
    background: var(--bg-color);
    color: var(--text-color);
    border: 2px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-btn-compact.secondary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: var(--gray-light);
}



/* Добавляем отступ снизу для основного контента быстрой анкеты */
#quick-survey .main-content {
    padding-bottom: 70px; /* Уменьшен отступ для лучшего использования пространства */
    flex: 1;
    overflow-y: auto; /* Включаем прокрутку для анкеты */
    max-height: calc(100vh - 120px); /* Оптимизированная высота */
    max-height: calc(100dvh - 120px);
    padding-top: 16px; /* Увеличен верхний отступ для баланса */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

#quick-survey .main-content::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Success Modal */
.success-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 99999 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.modal-content {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 32px 24px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 400px;
    width: 100%;
}

.modal-icon {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: var(--text-dark);
}

.modal-message {
    font-size: 16px;
    line-height: 1.5;
    margin: 0 0 24px 0;
    color: var(--gray);
}

.modal-btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 500;
}


/* =============== ЭКРАН РАЦИОНА =============== */

.nutrition-container {
    padding: 0;
}

.nutrition-week-container {
    margin-bottom: 20px;
}

.nutrition-day {
    background: var(--white);
    border-radius: var(--border-radius);
    margin-bottom: 8px;
    border: 1px solid var(--gray-light);
    overflow: hidden;
}

.nutrition-day-header {
    padding: 12px 16px;
    background: var(--gray-light);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 14px;
}

.nutrition-day-header:hover {
    background: rgba(178, 110, 80, 0.1);
}

.nutrition-day-content {
    display: none;
    padding: 8px;
}

.nutrition-day.expanded .nutrition-day-content {
    display: block;
}

.nutrition-meal {
    background: var(--light);
    border-radius: 8px;
    margin-bottom: 6px;
    border: 1px solid rgba(178, 110, 80, 0.2);
}

.nutrition-meal-header {
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    font-size: 13px;
}

.nutrition-meal-header:hover {
    background: rgba(178, 110, 80, 0.1);
}

.nutrition-meal-content {
    display: none;
    padding: 6px 12px 12px;
}

.nutrition-meal.expanded .nutrition-meal-content {
    display: block;
}


.nutrition-dish {
    background: var(--white);
    border-radius: 6px;
    margin-bottom: 4px;
    border: 1px solid rgba(178, 110, 80, 0.15);
    padding: 6px 10px;
}

.nutrition-dish-header {
    cursor: pointer;
    font-weight: 500;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nutrition-dish-header .expand-icon {
    margin-left: 8px;
}

.nutrition-dish-details {
    display: none;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid var(--gray-light);
    font-size: 11px;
    color: var(--gray);
}

.nutrition-dish.expanded .nutrition-dish-details {
    display: block;
}


.nutrition-calories {
    font-size: 11px;
    color: var(--primary);
    font-weight: 600;
}

.nutrition-ingredients {
    margin-bottom: 4px;
}

.nutrition-instructions {
    font-style: italic;
}

.expand-icon {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
    background: rgba(178, 110, 80, 0.1);
    border: 1px solid rgba(178, 110, 80, 0.2);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


.expand-icon:hover {
    background: rgba(178, 110, 80, 0.15);
    border-color: rgba(178, 110, 80, 0.3);
    transform: scale(1.05);
}

.nutrition-day.expanded > .nutrition-day-header > .expand-icon,
.nutrition-meal.expanded > .nutrition-meal-header > .expand-icon,
.nutrition-dish.expanded > .nutrition-dish-header > .expand-icon,
.nutrition-dish-header.expanded .expand-icon,
.nutrition-meal-header.expanded .expand-icon,
.meal-header.expanded > .expand-icon,
.workout-exercise-item.expanded .workout-exercise-header .expand-icon {
    transform: rotate(90deg) !important;
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.workout-day-card.expanded > .workout-day-header > .expand-icon {
    transform: rotate(90deg) !important;
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* =============== ЭКРАН БЫСТРОЙ АНКЕТЫ =============== */

#quick-survey {
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
}

#quick-survey .header {
    flex-shrink: 0;
    padding-bottom: 12px;
}

/* Компактная строка заголовка */
.quick-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.quick-header-row .welcome-text {
    font-size: 18px;
    font-weight: 600;
    color: white;
}

.quick-header-row .subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* Компактный прогресс-бар */
.progress-bar-compact {
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 -20px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffffff, #f0f0f0);
    border-radius: 2px;
    transition: width 0.3s ease;
}

#quick-survey .survey-container {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    max-height: none;
}

#quick-survey .survey-content {
    flex: 1;
}

#quick-survey .quick-slide {
    padding: 0;
    min-height: auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#quick-survey .question-title {
    font-size: 26px;
    margin-bottom: 16px;
    text-align: center;
    line-height: 1.2;
}

#quick-survey .question-subtitle {
    font-size: 16px;
    color: var(--gray);
    margin-bottom: 32px;
    text-align: center;
}

/* =============== АДАПТИВНОСТЬ ДЛЯ МОБИЛЬНЫХ =============== */

@media (max-width: 480px) {
    .slide-navigation-compact {
        padding: 10px 16px;
    }
    
    .nav-btn-compact {
        min-width: 120px;
        padding: 10px 24px;
        font-size: 15px;
    }
    
    .quick-header-row .welcome-text {
        font-size: 16px;
    }
    
    .quick-header-row .subtitle {
        font-size: 13px;
    }
    
    .slider-container {
        margin: 15px 0;
    }
    
    .age-slider, .height-slider, .weight-slider {
        max-width: 100%;
    }
    
    #quick-survey .question-title {
        font-size: 22px;
    }
    
    #quick-survey .question-subtitle {
        font-size: 14px;
    }
    
    .slider-value {
        font-size: 18px;
        padding: 10px 16px;
    }
}

@media (max-height: 700px) {
    #quick-survey .quick-slide {
        padding: 12px 0;
    }
    
    #quick-survey .question-title {
        font-size: 20px;
        margin-bottom: 8px;
    }
    
    #quick-survey .question-subtitle {
        margin-bottom: 16px;
    }
    
    .slider-container {
        margin: 12px 0;
    }
}


/* Nutrition Plan Styles */
.nutrition-summary {
    background: linear-gradient(135deg, var(--primary) 0%, #3B82F6 100%);
    color: white;
    padding: 20px;
    border-radius: var(--border-radius);
    text-align: center;
    margin: 16px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.calories-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.calories-number {
    font-size: 32px;
    font-weight: 700;
}

.calories-label {
    font-size: 14px;
    opacity: 0.9;
}

.macros-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
}

.meal-card {
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius);
    margin: 16px 0;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.meal-header {
    background: linear-gradient(135deg, var(--secondary) 0%, #F59E0B 100%);
    color: white;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.meal-header h3 {
    margin: 0;
    font-size: 18px;
}

.meal-calories {
    font-weight: 700;
    font-size: 16px;
}

.meal-content {
    padding: 20px;
}

.meal-content h4 {
    margin: 0 0 12px 0;
    color: var(--dark);
    font-size: 16px;
}

.meal-macros {
    display: flex;
    gap: 16px;
    margin: 12px 0;
    font-size: 14px;
    color: var(--gray);
}

.meal-ingredients, .meal-instructions {
    margin: 16px 0;
}

.meal-ingredients strong, .meal-instructions strong {
    color: var(--dark);
    display: block;
    margin-bottom: 8px;
}

.meal-ingredients ul {
    list-style: none;
    padding: 0;
}

.meal-ingredients li {
    padding: 4px 0;
    padding-left: 16px;
    position: relative;
}

.meal-ingredients li::before {
    content: "•";
    color: var(--primary);
    position: absolute;
    left: 0;
}

.meal-instructions p {
    color: var(--gray);
    line-height: 1.5;
}

.snack-card {
    background: var(--light);
    border: 1px solid var(--gray-light);
    border-radius: 12px;
    padding: 16px;
    margin: 8px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.snack-name {
    font-weight: 600;
    color: var(--dark);
}

.snack-calories {
    font-weight: 700;
    color: var(--primary);
}

.snack-macros {
    font-size: 12px;
    color: var(--gray);
}

.recommendations {
    background: linear-gradient(135deg, var(--success) 0%, #10B981 100%);
    color: white;
    margin: 20px 0;
}

.recommendations h4 {
    margin: 0 0 8px 0;
}

.recommendations p {
    margin: 0;
    line-height: 1.6;
}

/* =============== СТАТУСЫ ВЫПОЛНЕНИЯ ТРЕНИРОВОК =============== */

.workout-day-title {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.workout-status {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.workout-status.completed {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.workout-status.partial {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.workout-day-card.completed {
    border-color: rgba(34, 197, 94, 0.2);
    background: rgba(34, 197, 94, 0.02);
}

.workout-day-card.completed .workout-day-header {
    background: rgba(34, 197, 94, 0.05);
}

/* =============== СТИЛИ ДЛЯ РАСШИРЕННОЙ АНКЕТЫ ТРЕНИРОВОК =============== */

/* Стили для слайдера целевого веса */
.number-input-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.number-btn {
    width: 50px;
    height: 50px;
    border: 2px solid var(--primary);
    background: transparent;
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.number-btn:hover {
    background: var(--primary);
    color: white;
}

.number-display {
    text-align: center;
    gap: 8px;
    font-size: 36px;
    font-weight: bold;
    color: var(--primary);
}

.number-display .unit {
    font-size: 18px;
    color: var(--gray);
    font-weight: normal;
}

/* Стили для контейнера дней недели */
.days-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px auto;
    max-width: 320px;
    align-items: center;
}

.days-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    width: 100%;
}

.days-row-bottom {
    justify-content: center;
    gap: 12px;
    width: 100%;
}

.day-card {
    aspect-ratio: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    border-radius: 16px;
    padding: 16px;
    min-height: 60px;
    width: 60px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.day-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Стили для описаний в карточках выбора */
.choice-desc {
    font-size: 12px;
    color: var(--dark);
    margin-top: 4px;
    line-height: 1.3;
}

.choice-card.selected .choice-desc {
    color: rgba(255, 255, 255, 0.8);
}

/* Вертикальное расположение карточек для некоторых вопросов */
.choice-grid.vertical {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 320px;
    margin: 0 auto;
}

.choice-grid.vertical .choice-card {
    width: 100%;
    padding: 16px;
    text-align: left;
}

/* Компактные варианты в анкете по здоровью */
.health-slide .choice-card {
    padding: 12px 16px;
    min-height: auto;
}

.health-slide .choice-text {
    font-size: 15px;
    line-height: 1.3;
    margin: 0;
}

/* Сетка вариантов для анкеты по здоровью */
.health-choices-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.health-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.health-row-center {
    display: flex;
    justify-content: center;
    margin-top: 4px;
}

.health-row-center .choice-card {
    max-width: 200px;
    width: 100%;
}

/* Сетка вариантов для анкеты по питанию */
.nutrition-choices-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nutrition-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.nutrition-row-center {
    display: flex;
    justify-content: center;
    margin-top: 4px;
}

.nutrition-row-center .choice-card {
    max-width: 200px;
    width: 100%;
}

/* Компактные варианты в анкете по питанию */
.nutrition-slide .choice-card {
    padding: 12px 16px;
    min-height: auto;
}

.nutrition-slide .choice-text {
    font-size: 15px;
    line-height: 1.3;
    margin: 0;
}

/* Сетка нелюбимых продуктов */
.disliked-foods-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.disliked-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.disliked-row .choice-card {
    padding: 10px 12px;
    min-height: auto;
    font-size: 14px;
}

/* Сетка оборудования в профиле */
.equipment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 8px;
}

.equipment-item {
    background: var(--white);
    border: 2px solid var(--gray-light);
    border-radius: 12px;
    padding: 10px 8px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 13px;
    font-weight: 500;
    color: var(--dark);
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.equipment-item:hover {
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.equipment-item.selected {
    border-color: var(--primary);
    background: rgba(178, 110, 80, 0.05);
    color: var(--primary);
    font-weight: 600;
}


.profile-disliked-foods-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-disliked-foods-grid .disliked-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.profile-disliked-item {
    padding: 10px 12px;
    min-height: auto;
    font-size: 14px;
}

/* Стили для видео-модала */
.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.video-modal {
    background: var(--white);
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.video-header {
    background: var(--primary);
    color: white;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.video-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.close-video-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: var(--transition);
}

.close-video-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.video-content {
    padding: 20px;
}
