/* ============================================================
   ДИЗАЙН-СИСТЕМА: Тёплый Glassmorphism
   Палитра: Кремовый + Оранжевый + Мятный
   Типографика: Nunito (дружественный, читаемый, 30+)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800&display=swap');

/* ── Дизайн-токены ─────────────────────────────────────────── */
:root {
  /* Цвета */
  --c-bg-start:       #FFF8F0;
  --c-bg-mid:         #FFF3E5;
  --c-bg-end:         #FFEDE0;

  --c-primary:        #EA580C;
  --c-primary-dark:   #C2410C;
  --c-primary-light:  #FFF7ED;
  --c-primary-glow:   rgba(234, 88, 12, 0.20);

  --c-mint:           #10B981;
  --c-mint-dark:      #059669;
  --c-mint-light:     #ECFDF5;

  --c-text-dark:      #1C1917;
  --c-text-mid:       #57534E;
  --c-text-soft:      #A8A29E;

  --c-white:          #FFFFFF;
  --c-glass:          rgba(255, 255, 255, 0.80);
  --c-glass-border:   rgba(255, 255, 255, 0.65);
  --c-glass-shadow:   rgba(234, 88, 12, 0.08);
  --c-overlay:        rgba(28, 25, 23, 0.45);

  --c-error:          #DC2626;
  --c-error-light:    #FEF2F2;

  /* Типографика */
  --font:             'Nunito', sans-serif;
  --text-xs:          13px;
  --text-sm:          15px;
  --text-base:        17px;
  --text-lg:          20px;
  --text-xl:          24px;
  --text-2xl:         30px;
  --text-3xl:         36px;
  --lh:               1.55;

  /* Скругления */
  --r-sm:     8px;
  --r-md:     16px;
  --r-lg:     24px;
  --r-xl:     32px;
  --r-full:   999px;

  /* Отступы (кратны 4px) */
  --s-1:  4px;
  --s-2:  8px;
  --s-3:  12px;
  --s-4:  16px;
  --s-5:  20px;
  --s-6:  24px;
  --s-8:  32px;
  --s-10: 40px;
  --s-12: 48px;

  /* Тени */
  --shadow-sm:   0 2px 10px var(--c-glass-shadow), 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md:   0 6px 24px var(--c-glass-shadow), 0 2px 8px rgba(0,0,0,0.06);
  --shadow-lg:   0 12px 48px rgba(234,88,12,0.12), 0 4px 16px rgba(0,0,0,0.06);
  --shadow-btn:  0 4px 16px rgba(234,88,12,0.30);

  /* Анимации */
  --t-fast:   150ms ease-out;
  --t-mid:    250ms ease-out;
  --t-slow:   400ms ease-out;
}

/* ── Сброс стилей ──────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  overscroll-behavior: none;
}

body {
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: var(--lh);
  color: var(--c-text-dark);
  background: linear-gradient(150deg, var(--c-bg-start) 0%, var(--c-bg-mid) 55%, var(--c-bg-end) 100%);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  touch-action: manipulation;
}

img { display: block; max-width: 100%; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }
input { font-family: var(--font); }

/* ── Контейнер приложения ──────────────────────────────────── */
#app {
  position: relative;
  width: 100%;
  max-width: 430px;
  min-height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
}

/* ── Экраны ────────────────────────────────────────────────── */
.screen {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  opacity: 1;
  transform: translateX(0);
  transition: opacity var(--t-mid), transform var(--t-mid);
  -webkit-overflow-scrolling: touch;
}

.screen.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(30px);
}

.screen.slide-out {
  opacity: 0;
  transform: translateX(-30px);
}

/* ── Стеклянная карточка ───────────────────────────────────── */
.glass-card {
  background: var(--c-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--c-glass-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: var(--s-6);
}

/* ════════════════════════════════════════════════════════════
   ЭКРАН 1: ПРИВЕТСТВИЕ
   ════════════════════════════════════════════════════════════ */
#screen-welcome {
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: var(--s-6);
  padding-top: var(--s-12);
  padding-bottom: var(--s-12);
}

.welcome-logo {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 100%);
  border-radius: var(--r-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-btn);
  color: white;
  animation: logoPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.welcome-logo svg {
  width: 56px;
  height: 56px;
}

.welcome-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  background: var(--c-mint-light);
  color: var(--c-mint-dark);
  font-size: var(--text-sm);
  font-weight: 700;
  padding: var(--s-1) var(--s-4);
  border-radius: var(--r-full);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.welcome-badge svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.welcome-title {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--c-text-dark);
  line-height: 1.2;
}

.welcome-title span {
  color: var(--c-primary);
}

.welcome-desc {
  font-size: var(--text-lg);
  color: var(--c-text-mid);
  max-width: 320px;
  line-height: 1.6;
}

.welcome-steps {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  width: 100%;
  max-width: 320px;
}

.welcome-step {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  background: var(--c-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--c-glass-border);
  border-radius: var(--r-md);
  padding: var(--s-3) var(--s-4);
  box-shadow: var(--shadow-sm);
  text-align: left;
  animation: slideUpFade 0.5s ease-out both;
}

.welcome-step:nth-child(1) { animation-delay: 0.15s; }
.welcome-step:nth-child(2) { animation-delay: 0.25s; }
.welcome-step:nth-child(3) { animation-delay: 0.35s; }

.step-num {
  width: 36px;
  height: 36px;
  border-radius: var(--r-full);
  background: var(--c-primary);
  color: white;
  font-weight: 800;
  font-size: var(--text-base);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-text {
  font-size: var(--text-base);
  color: var(--c-text-dark);
  font-weight: 500;
}

/* ════════════════════════════════════════════════════════════
   ЭКРАН 2: ЗАГРУЗКА ФОТО
   ════════════════════════════════════════════════════════════ */
#screen-upload {
  gap: var(--s-5);
  padding-top: var(--s-8);
}

.screen-header {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  margin-bottom: var(--s-2);
}

.screen-title {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--c-text-dark);
  line-height: 1.25;
}

.screen-subtitle {
  font-size: var(--text-base);
  color: var(--c-text-mid);
  line-height: 1.5;
}

/* Область загрузки фото */
.upload-zone {
  width: 100%;
  border: 2.5px dashed rgba(234, 88, 12, 0.35);
  border-radius: var(--r-lg);
  background: var(--c-primary-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
  padding: var(--s-8) var(--s-6);
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
  position: relative;
  overflow: hidden;
  min-height: 180px;
}

.upload-zone:active {
  transform: scale(0.98);
  background: rgba(254, 243, 199, 0.8);
}

.upload-zone.has-photo {
  border-style: solid;
  border-color: var(--c-primary);
  background: rgba(255, 251, 235, 0.60);
  padding: var(--s-3);
  min-height: 320px;
  cursor: default;
}

.upload-zone.error-shake {
  animation: shake 0.4s ease-out;
}

.upload-icon {
  color: var(--c-primary);
  opacity: 0.7;
}

.upload-icon svg {
  width: 48px;
  height: 48px;
}

.upload-hint {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--c-primary);
  text-align: center;
}

.upload-subhint {
  font-size: var(--text-sm);
  color: var(--c-text-soft);
  text-align: center;
}

/* Превью фото */
#photo-preview {
  width: 100%;
  height: 100%;
  max-height: 460px;
  object-fit: contain;
  object-position: center;
  image-orientation: from-image;
  border-radius: var(--r-md);
  display: none;
  background: transparent;
}

#photo-preview.visible {
  display: block;
}

.photo-actions {
  display: none;
  gap: var(--s-2);
  margin-top: var(--s-2);
  width: 100%;
  justify-content: center;
}

.photo-actions.visible {
  display: flex;
}

/* Кнопки выбора камеры/галереи */
.source-btns {
  display: flex;
  gap: var(--s-3);
}

.btn-source {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: var(--s-4) var(--s-4);
  background: var(--c-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid var(--c-glass-border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  color: var(--c-text-dark);
  font-size: var(--text-base);
  font-weight: 600;
  transition: all var(--t-fast);
  min-height: 56px;
}

.btn-source svg {
  width: 22px;
  height: 22px;
  color: var(--c-primary);
  flex-shrink: 0;
}

.btn-source:active {
  transform: scale(0.96);
  background: var(--c-primary-light);
  border-color: var(--c-primary);
}

/* Выбор стиля рецепта */
.style-label {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--c-text-dark);
}

.style-pills {
  display: flex;
  gap: var(--s-2);
}

.style-pill {
  flex: 1;
  padding: var(--s-3) var(--s-2);
  background: var(--c-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid var(--c-glass-border);
  border-radius: var(--r-full);
  color: var(--c-text-mid);
  font-size: var(--text-sm);
  font-weight: 600;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--t-fast);
  min-height: 46px;
}

.style-pill.active {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: white;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35);
}

.style-pill:active {
  transform: scale(0.95);
}

/* ════════════════════════════════════════════════════════════
   ЭКРАН 3: ЗАГРУЗКА / ИИ ДУМАЕТ
   ════════════════════════════════════════════════════════════ */
#screen-loading {
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: var(--s-8);
}

.loading-fridge {
  position: relative;
  display: flex;
  justify-content: center;
}

.loading-fridge-icon {
  color: var(--c-primary);
  animation: fridgePulse 1.8s ease-in-out infinite;
}

.loading-fridge-icon svg {
  width: 80px;
  height: 80px;
}

.loading-glow {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--c-primary-glow) 0%, transparent 70%);
  animation: glowPulse 1.8s ease-in-out infinite;
}

.loading-dots {
  display: flex;
  gap: var(--s-2);
  justify-content: center;
  margin-top: -var(--s-4);
}

.loading-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c-primary);
}

.loading-dot:nth-child(1) { animation: dotBounce 1.2s ease-in-out infinite 0.0s; }
.loading-dot:nth-child(2) { animation: dotBounce 1.2s ease-in-out infinite 0.2s; }
.loading-dot:nth-child(3) { animation: dotBounce 1.2s ease-in-out infinite 0.4s; }

.loading-text-block {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.loading-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--c-text-dark);
}

#loading-phrase {
  font-size: var(--text-base);
  color: var(--c-text-mid);
  min-height: 26px;
  transition: opacity var(--t-mid);
}

/* ════════════════════════════════════════════════════════════
   ЭКРАН 4: РЕЦЕПТЫ
   ════════════════════════════════════════════════════════════ */
#screen-recipes {
  gap: var(--s-5);
  padding-bottom: var(--s-10);
}

.recipes-header {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  margin-bottom: var(--s-2);
}

.recipes-title {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--c-text-dark);
}

.recipes-subtitle {
  font-size: var(--text-sm);
  color: var(--c-text-soft);
}

/* Карточка рецепта */
.recipe-card {
  background: var(--c-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--c-glass-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  animation: slideUpFade 0.45s ease both;
}

.recipe-card:nth-child(2) { animation-delay: 0.12s; }
.recipe-card:nth-child(3) { animation-delay: 0.24s; }

.recipe-top {
  padding: var(--s-5) var(--s-6);
  border-bottom: 1px solid rgba(234, 88, 12, 0.10);
}

.recipe-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--s-2);
}

.recipe-emoji {
  font-size: 32px;
  line-height: 1;
}

.recipe-time-badge {
  display: flex;
  align-items: center;
  gap: var(--s-1);
  background: var(--c-primary-light);
  color: var(--c-primary-dark);
  font-size: var(--text-sm);
  font-weight: 700;
  padding: var(--s-1) var(--s-3);
  border-radius: var(--r-full);
  border: 1px solid rgba(234, 88, 12, 0.20);
}

.recipe-time-badge svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.recipe-name {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--c-text-dark);
  line-height: 1.25;
}

/* Ингредиенты */
.recipe-ingredients {
  padding: var(--s-4) var(--s-6);
  border-bottom: 1px solid rgba(234, 88, 12, 0.08);
}

.ingredients-title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--c-text-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--s-3);
}

.ingredients-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}

.ingredient-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  background: rgba(16, 185, 129, 0.10);
  color: var(--c-mint-dark);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 4px var(--s-3);
  border-radius: var(--r-full);
  border: 1px solid rgba(16, 185, 129, 0.20);
}

.ingredient-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-mint);
  flex-shrink: 0;
}

/* Шаги приготовления */
.recipe-steps-section {
  overflow: hidden;
}

.recipe-steps-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-4) var(--s-6);
  color: var(--c-primary);
  font-size: var(--text-base);
  font-weight: 700;
  background: none;
  transition: background var(--t-fast);
  min-height: 52px;
}

.recipe-steps-toggle:active {
  background: rgba(234, 88, 12, 0.06);
}

.toggle-arrow {
  color: var(--c-primary);
  transition: transform var(--t-mid);
  flex-shrink: 0;
}

.toggle-arrow svg {
  width: 20px;
  height: 20px;
}

.recipe-steps-toggle.open .toggle-arrow {
  transform: rotate(180deg);
}

.recipe-steps-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.recipe-steps-body.open {
  max-height: 800px;
}

.recipe-steps-list {
  padding: 0 var(--s-6) var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.recipe-step-item {
  display: flex;
  gap: var(--s-3);
  align-items: flex-start;
}

.step-counter {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--c-primary-light);
  color: var(--c-primary-dark);
  font-size: var(--text-xs);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-text-body {
  font-size: var(--text-base);
  color: var(--c-text-mid);
  line-height: 1.5;
  flex: 1;
}

/* ════════════════════════════════════════════════════════════
   МОДАЛЬНОЕ ОКНО: ПОДПИСКА
   ════════════════════════════════════════════════════════════ */
#modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--c-overlay);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: flex-end;
  padding: var(--s-4);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-mid);
}

#modal-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

.modal-card {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  background: var(--c-white);
  border-radius: var(--r-xl);
  padding: var(--s-8) var(--s-6);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
  transform: translateY(60px);
  transition: transform var(--t-slow) cubic-bezier(0.34, 1.2, 0.64, 1);
}

#modal-overlay.visible .modal-card {
  transform: translateY(0);
}

.modal-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-dark));
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 6px 20px rgba(234,88,12,0.30);
}

.modal-icon svg {
  width: 34px;
  height: 34px;
}

.modal-title {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--c-text-dark);
  line-height: 1.3;
}

.modal-body {
  font-size: var(--text-base);
  color: var(--c-text-mid);
  line-height: 1.6;
}

.modal-public-name {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  background: var(--c-primary-light);
  color: var(--c-primary-dark);
  font-weight: 700;
  font-size: var(--text-sm);
  padding: var(--s-1) var(--s-3);
  border-radius: var(--r-full);
  border: 1px solid rgba(234,88,12,0.20);
  margin-top: var(--s-2);
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

/* ════════════════════════════════════════════════════════════
   КНОПКИ
   ════════════════════════════════════════════════════════════ */
.btn-primary {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: var(--s-4) var(--s-6);
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 100%);
  color: white;
  font-size: var(--text-lg);
  font-weight: 700;
  border-radius: var(--r-full);
  box-shadow: var(--shadow-btn);
  min-height: 58px;
  transition: transform var(--t-fast), box-shadow var(--t-fast), opacity var(--t-fast);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--t-fast);
}

.btn-primary:active {
  transform: scale(0.97);
  box-shadow: 0 2px 8px rgba(234,88,12,0.20);
}

.btn-primary:active::after {
  background: rgba(255,255,255,0.10);
}

.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-primary:disabled:active {
  transform: none;
}

.btn-primary svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.btn-secondary {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-6);
  background: var(--c-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(234,88,12,0.25);
  color: var(--c-primary);
  font-size: var(--text-base);
  font-weight: 700;
  border-radius: var(--r-full);
  min-height: 52px;
  transition: transform var(--t-fast), background var(--t-fast);
}

.btn-secondary:active {
  transform: scale(0.97);
  background: var(--c-primary-light);
}

.btn-secondary svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn-ghost {
  background: none;
  border: none;
  color: var(--c-text-soft);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--s-3);
  min-height: 44px;
  transition: color var(--t-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-ghost:active {
  color: var(--c-text-dark);
}

.btn-change-photo {
  background: rgba(234,88,12,0.08);
  border: 1px solid rgba(234,88,12,0.20);
  border-radius: var(--r-full);
  color: var(--c-primary);
  font-size: var(--text-sm);
  font-weight: 700;
  padding: var(--s-2) var(--s-4);
  min-height: 36px;
  transition: all var(--t-fast);
  display: flex;
  align-items: center;
  gap: var(--s-1);
}

.btn-change-photo svg {
  width: 14px;
  height: 14px;
}

.btn-change-photo:active {
  transform: scale(0.96);
  background: rgba(234,88,12,0.15);
}

/* Спиннер на кнопке */
.btn-spinner {
  width: 22px;
  height: 22px;
  border: 3px solid rgba(255,255,255,0.40);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: none;
}

.btn-primary.loading .btn-label { display: none; }
.btn-primary.loading .btn-spinner { display: block; }
.btn-primary.loading svg { display: none; }

/* Блок ошибки */
.error-block {
  background: var(--c-error-light);
  border: 1px solid rgba(220, 38, 38, 0.20);
  border-radius: var(--r-md);
  padding: var(--s-4);
  display: flex;
  gap: var(--s-3);
  align-items: flex-start;
  display: none;
}

.error-block.visible {
  display: flex;
}

.error-icon {
  color: var(--c-error);
  flex-shrink: 0;
}

.error-icon svg {
  width: 20px;
  height: 20px;
}

.error-text {
  font-size: var(--text-sm);
  color: var(--c-error);
  font-weight: 600;
  line-height: 1.4;
  flex: 1;
}

/* Вертикальный спейсер */
.spacer { flex: 1; }

/* ════════════════════════════════════════════════════════════
   АНИМАЦИИ
   ════════════════════════════════════════════════════════════ */

@keyframes logoPop {
  from {
    opacity: 0;
    transform: scale(0.5) rotate(-10deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

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

@keyframes fridgePulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.06); }
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(1.15); }
}

@keyframes dotBounce {
  0%, 80%, 100% { transform: scale(0.8); opacity: 0.4; }
  40%           { transform: scale(1.2); opacity: 1; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-8px); }
  40%       { transform: translateX(8px); }
  60%       { transform: translateX(-6px); }
  80%       { transform: translateX(6px); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Поддержка reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
