/* ============================================
   components.css — компоненты интерфейса
   Кнопки, поля, модалки, день дневника, упражнения
   ============================================ */

/* ============================================
   Кнопки
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 13px 22px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
  text-decoration: none;
  text-align: center;
  line-height: 1.2;
  position: relative;
  overflow: hidden;
}

.btn:active {
  transform: scale(0.98);
}


/* Основная — голубая */
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  box-shadow: 0 3px 10px rgba(126, 196, 220, 0.35);
}
.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(126, 196, 220, 0.5);
}

/* Вторичная — мягкая голубая */
.btn-secondary {
  background: var(--primary-soft);
  color: var(--text-heading);
  border: 1px solid rgba(126, 196, 220, 0.3);
}
.btn-secondary:hover {
  background: #d8ecf5;
  color: var(--text-heading);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(126, 196, 220, 0.25);
}

/* Опасная — мягкая розовая */
.btn-danger {
  background: var(--pink-soft);
  color: #b94a6b;
  border: 1px solid rgba(245, 198, 214, 0.5);
}
.btn-danger:hover {
  background: #fce4ee;
  color: #a63f5d;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 198, 214, 0.4);
}

/* ВК — нежный синий */
.btn-vk {
  background: linear-gradient(135deg, #8db8dd 0%, #6d9bc7 100%);
  color: #fff;
  box-shadow: 0 3px 10px rgba(109, 155, 199, 0.35);
}
.btn-vk:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(109, 155, 199, 0.5);
}

/* Отправить — нежная мята */
.btn-send {
  background: linear-gradient(135deg, var(--mint) 0%, var(--mint-dark) 100%);
  color: #2e5a48;
  box-shadow: 0 3px 10px rgba(184, 230, 208, 0.5);
}
.btn-send:hover {
  color: #2e5a48;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(184, 230, 208, 0.7);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* Группа кнопок */
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* ============================================
   Поля ввода
   ============================================ */
.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 7px;
  letter-spacing: 0.2px;
}

.field input[type="text"],
.field input[type="number"],
.field input[type="email"],
.field input[type="password"],
.field input[type="date"],
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 15px;
  font-family: inherit;
  background: #fbfdfe;
  transition: all var(--transition);
  color: var(--text-main);
}

.field input:hover,
.field textarea:hover {
  border-color: #c8e0eb;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(126, 196, 220, 0.15);
}

.field textarea {
  resize: vertical;
  min-height: 70px;
  line-height: 1.55;
}

/* ============================================
   Настроение — иконки + подписи
   ============================================ */
.mood-row {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  width: 100%;
}

.mood-btn {
  flex: 1;
  min-width: 0;
  padding: 10px 6px 8px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  background: #fbfdfe;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: relative;
  overflow: hidden;
}

.mood-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mood-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
  transition: transform 0.3s ease;
}

.mood-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-soft);
  text-align: center;
  line-height: 1.2;
  transition: color 0.25s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Hover */
.mood-btn:hover {
  background: var(--primary-soft);
  border-color: var(--primary);
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 8px 20px rgba(126, 196, 220, 0.35);
}

.mood-btn:hover .mood-img-wrap {
  transform: scale(1.1) rotate(-5deg);
}

.mood-btn:hover .mood-label {
  color: var(--text-heading);
}

/* Активное — с "дышащей" анимацией */
.mood-btn.active {
  background: linear-gradient(135deg, var(--pink-soft) 0%, var(--primary-soft) 100%);
  border-color: var(--primary);
  box-shadow: 0 10px 24px rgba(126, 196, 220, 0.5);
  animation: moodBreath 1.8s ease-in-out infinite;
}
.mood-btn.active .mood-img-wrap {
  animation: moodBounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mood-btn.active .mood-label {
  color: var(--text-heading);
  font-weight: 700;
}

/* Точка-подсветка под активной иконкой */
.mood-btn.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--pink) 100%);
  animation: fadeIn 0.3s ease both;
}

@keyframes moodBreath {
  0%, 100% {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 24px rgba(126, 196, 220, 0.5);
  }
  50% {
    transform: translateY(-8px) scale(1.12);
    box-shadow: 0 14px 32px rgba(126, 196, 220, 0.75);
  }
}

@keyframes moodBounce {
  0% { transform: scale(1); }
  40% { transform: scale(1.25); }
  70% { transform: scale(0.95); }
  100% { transform: scale(1.08); }
}
/* ============================================
   Переключатели (галочки) — режим, вода, массаж
   ============================================ */
.toggle-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.toggle {
  flex: 1;
  min-width: 110px;
  padding: 12px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: #fbfdfe;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  transition: all var(--transition);
  user-select: none;
  color: var(--text-soft);
}

.toggle:hover {
  background: var(--primary-soft);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.toggle.active {
  background: linear-gradient(135deg, var(--mint-soft) 0%, #d8f0e4 100%);
  border-color: var(--mint-dark);
  color: #2e5a48;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(184, 230, 208, 0.5);
}

/* ============================================
   Язык («грибок») — варианты
   ============================================ */
.tongue-field {
  background: linear-gradient(135deg, var(--primary-soft) 0%, #f4fbfd 100%);
  border: 1.5px dashed rgba(126, 196, 220, 0.6);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 14px;
  transition: all var(--transition);
}

.tongue-field:hover {
  border-color: var(--primary);
  background: linear-gradient(135deg, #e0f1f8 0%, #eaf7fb 100%);
}

.tongue-field label {
  color: var(--text-heading);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}

.tongue-field label::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 22px;
  background-image: url('../assets/images/icons/tongue.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

.tongue-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.tongue-opt {
  flex: 1;
  min-width: 105px;
  padding: 11px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  transition: all var(--transition);
  user-select: none;
  color: var(--text-soft);
}

.tongue-opt:hover {
  background: var(--primary-soft);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.tongue-opt.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-color: var(--primary-dark);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 3px 12px rgba(126, 196, 220, 0.4);
}

/* ============================================
   День дневника — шапка карточки
   ============================================ */
.day-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 18px;
  color: var(--text-heading);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-soft);
  flex-wrap: wrap;
  gap: 10px;
  letter-spacing: -0.01em;
}

.day-header .date-input {
  font-size: 13.5px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  color: var(--text-heading);
  background: var(--surface-soft);
  font-family: inherit;
  transition: all var(--transition);
}

.day-header .date-input:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(126, 196, 220, 0.15);
}

/* ============================================
   Тост-уведомление о сохранении
   ============================================ */
.save-status {
  position: fixed;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, var(--mint) 0%, var(--mint-dark) 100%);
  color: #2e5a48;
  padding: 14px 22px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(149, 212, 183, 0.5);
  z-index: 9999;
  opacity: 0;
  transform: translateY(-12px) scale(0.95);
  transition: all 0.3s ease;
  pointer-events: none;
  max-width: 320px;
}

.save-status.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.save-status.error {
  background: linear-gradient(135deg, #f5c6d6 0%, #e8a8bd 100%);
  color: #a63f5d;
  box-shadow: 0 8px 24px rgba(232, 168, 189, 0.5);
}

/* ============================================
   Сводка результатов
   ============================================ */
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px dashed var(--border-soft);
  font-size: 14.5px;
  transition: all var(--transition);
}

.summary-row:hover {
  padding-left: 6px;
  background: linear-gradient(90deg, var(--primary-soft) 0%, transparent 100%);
  border-radius: 6px;
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-label {
  color: var(--text-soft);
  font-weight: 500;
}

.summary-value {
  font-weight: 700;
  color: var(--text-heading);
  font-size: 15px;
}

/* ============================================
   Модальные окна
   ============================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(44, 62, 80, 0.5);
  backdrop-filter: blur(6px);
  z-index: 100;
  padding: 16px;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
}

.modal-overlay.show {
  display: flex;
  animation: fadeIn 0.25s ease both;
}

.modal {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 28px 26px;
  max-width: 620px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(44, 62, 80, 0.25);
  animation: modalIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.modal h2 {
  font-size: 21px;
  color: var(--text-heading);
  margin: 0 0 16px;
  font-weight: 800;
}

.modal h3 {
  font-size: 15px;
  color: var(--text-heading);
  margin: 20px 0 10px;
  font-weight: 700;
}

.modal p, .modal li {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-main);
}

.modal ul, .modal ol {
  padding-left: 22px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--primary-soft);
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-soft);
  line-height: 1;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: var(--pink-soft);
  color: #b94a6b;
  transform: rotate(90deg);
}

/* Цена в модалке */
.price-big {
  text-align: center;
  font-size: 30px;
  font-weight: 800;
  color: var(--gold-dark);
  margin: 20px 0;
  letter-spacing: -0.02em;
}

/* Кнопка покупки — золотая */
.btn-buy {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #fff;
  border-radius: var(--radius-md);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 4px 14px rgba(245, 201, 140, 0.5);
  margin-bottom: 12px;
}

.btn-buy:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(245, 201, 140, 0.7);
}

.btn-vk-personal {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #8db8dd 0%, #6d9bc7 100%);
  color: #fff;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: all var(--transition);
  box-shadow: 0 4px 14px rgba(109, 155, 199, 0.35);
}

.btn-vk-personal:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(109, 155, 199, 0.5);
}

.team-sign {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed var(--border-soft);
  font-size: 14px;
  color: var(--text-soft);
  text-align: center;
  line-height: 1.7;
}

/* Баннер-анкета */
.anketa-banner {
  background: linear-gradient(135deg, var(--pink-soft) 0%, var(--primary-soft) 100%);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin: 16px 0;
  font-size: 14px;
  color: var(--text-heading);
  text-align: left;
  line-height: 1.6;
  border: 1px solid rgba(245, 198, 214, 0.5);
}

.anketa-banner a {
  color: var(--primary-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.anketa-banner a:hover {
  color: var(--text-heading);
}

/* ============================================
   Упражнения — аккордеон
   ============================================ */
.exercise {
  background: var(--surface);
  border-radius: var(--radius-lg);
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
  transition: all var(--transition);
  animation: fadeInUp 0.5s ease both;
}

.exercise:hover {
  box-shadow: var(--shadow-md);
}

.exercise-head {
  padding: 20px 22px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: var(--text-heading);
  font-size: 16px;
  user-select: none;
  transition: background var(--transition);
}

.exercise-head:hover {
  background: linear-gradient(90deg, var(--primary-soft) 0%, transparent 100%);
}

.exercise-head .arrow {
  transition: transform 0.35s ease;
  font-size: 14px;
  color: var(--primary);
  flex-shrink: 0;
}

.exercise.open .exercise-head .arrow {
  transform: rotate(180deg);
}

.exercise-body {
  max-height: 0;
  overflow: hidden;
  padding: 0 22px;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              padding 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.4s ease;
  opacity: 0;
}

.exercise.open .exercise-body {
  max-height: 1500px;
  padding: 0 22px 22px;
  opacity: 1;
}

.exercise-body ul, .exercise-body ol {
  margin: 0 0 12px;
  padding-left: 22px;
  font-size: 14.5px;
  line-height: 1.6;
}

.exercise-body li {
  margin-bottom: 7px;
}

.exercise-body h4 {
  font-size: 13px;
  color: var(--text-heading);
  margin: 16px 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 700;
}

.video-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px; /* Чуть больше отступ между текстом и иконкой */
  background: var(--pink-soft);
  color: #b94a6b;
  font-size: 12px; /* Немного увеличили шрифт */
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  margin-left: 12px;
  border: 1px solid rgba(245, 198, 214, 0.6);
  vertical-align: middle;
  white-space: nowrap;
  position: relative;
  top: -2px;
}

/* Настройка картинки ВНУТРИ плашки */
.video-badge img {
  width: 20px !important;  /* Сделали иконку больше (было 16px) */
  height: 20px !important;
  object-fit: contain;
  display: block !important;
  margin: 0 !important;
}

/* ============================================
   Всплывающая плашка "Диагностика" (баннер сбоку)
   ============================================ */
.diagnostic-popup {
  position: fixed;
  right: -400px; /* Изначально спрятана за экраном справа */
  top: 50%;
  transform: translateY(-50%);
  width: 300px;
  background: linear-gradient(135deg, #ffffff 0%, var(--primary-soft) 100%);
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  box-shadow: -4px 8px 24px rgba(90, 140, 170, 0.25);
  padding: 20px;
  z-index: 9998;
  transition: right 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
}

/* Класс для показа плашки */
.diagnostic-popup.show {
  right: 20px; /* Выезжает на экран */
}

.diagnostic-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: none;
  font-size: 20px;
  color: var(--text-soft);
  cursor: pointer;
  transition: color 0.2s;
}
.diagnostic-close:hover {
  color: #b94a6b;
}

.diagnostic-icon {
  font-size: 36px;
  text-align: center;
  margin-bottom: 10px;
}

.diagnostic-content h3 {
  text-align: center;
  color: var(--text-heading);
  font-size: 18px;
  margin-bottom: 8px;
}

.diagnostic-content p {
  font-size: 13px;
  color: var(--text-soft);
  text-align: center;
  line-height: 1.4;
  margin-bottom: 12px;
}

.diagnostic-price {
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 14px;
}

.diagnostic-content .btn-consult {
  display: block;
  text-align: center;
  padding: 10px;
  font-size: 14px;
}

@media (max-width: 768px) {
  .diagnostic-popup {
    width: 260px;
    right: -300px;
  }
  .diagnostic-popup.show {
    right: 15px;
  }
}

.consult-block:hover {
  box-shadow: 0 12px 32px rgba(126, 196, 220, 0.3);
  transform: translateY(-2px);
}

.consult-block .consult-icon {
  font-size: 42px;
  display: block;
  margin-bottom: 10px;
  animation: pulse 3s ease-in-out infinite;
}

.consult-block h2 {
  font-size: 20px;
  color: var(--text-heading);
  margin: 0 0 10px;
  font-weight: 800;
}

.consult-block p {
  font-size: 14.5px;
  color: var(--text-soft);
  margin: 0 0 16px;
  line-height: 1.6;
}

.consult-block .price {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-heading);
  margin: 10px 0 18px;
  letter-spacing: -0.02em;
}

.btn-consult {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 4px 14px rgba(126, 196, 220, 0.4);
}

.btn-consult:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(126, 196, 220, 0.6);
}

/* ============================================
   Блок «Полная версия»
   ============================================ */
.upgrade-block {
  .upgrade-block {
  background: linear-gradient(135deg, var(--gold-soft) 0%, #fde8c8 50%, #fcdcbc 100%);
  border: 2px solid var(--gold);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  margin: 24px auto; /* auto центрирует по горизонтали */
  max-width: 700px;  /* Ограничиваем ширину, чтобы не была на весь экран */
  text-align: center;
  box-shadow: 0 8px 24px rgba(245, 201, 140, 0.25);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.5s ease both;
}
  background: linear-gradient(135deg, var(--gold-soft) 0%, #fde8c8 50%, #fcdcbc 100%);
  border: 2px solid var(--gold);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  margin-top: 24px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(245, 201, 140, 0.25);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.5s ease both;
}

/* Мягкое свечение */
.upgrade-block::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0%, transparent 70%);
  pointer-events: none;
}

.upgrade-block .upgrade-icon {
  font-size: 44px;
  display: block;
  margin-bottom: 12px;
  animation: pulse 2.5s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

.upgrade-block h2 {
  font-size: 21px;
  color: #8a5a00;
  margin: 0 0 12px;
  line-height: 1.3;
  font-weight: 800;
  position: relative;
  z-index: 1;
}

.upgrade-block p {
  font-size: 14.5px;
  color: #8a5a00;
  margin: 0 0 18px;
  line-height: 1.65;
  position: relative;
  z-index: 1;
  opacity: 0.9;
}

.upgrade-block .price-line {
  font-size: 30px;
  font-weight: 800;
  color: var(--gold-dark);
  margin: 16px 0 20px;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}

.btn-upgrade {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #fff;
  border-radius: var(--radius-md);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition);
  box-shadow: 0 4px 14px rgba(245, 201, 140, 0.5);
  border: none;
  cursor: pointer;
  font-family: inherit;
  position: relative;
  z-index: 1;
}

.btn-upgrade:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(245, 201, 140, 0.7);
}

.btn-details {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  padding: 12px 26px;
  background: transparent;
  color: #8a5a00;
  border: 2px solid var(--gold);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
  font-family: inherit;
  position: relative;
  z-index: 1;
}

.btn-details:hover {
  background: rgba(255, 255, 255, 0.6);
  color: #8a5a00;
  transform: translateY(-2px);
}

.apply-note {
  background: rgba(255, 255, 255, 0.7);
  border-left: 4px solid var(--gold-dark);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  margin: 16px 0;
  text-align: left;
  font-size: 14px;
  color: #8a5a00;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* ============================================
   Премиум-заглушка
   ============================================ */
.premium-stub {
  .upgrade-block {
  background: linear-gradient(135deg, var(--gold-soft) 0%, #fde8c8 50%, #fcdcbc 100%);
  border: 2px solid var(--gold);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  margin: 24px auto; /* auto центрирует по горизонтали */
  max-width: 700px;  /* Ограничиваем ширину, чтобы не была на весь экран */
  text-align: center;
  box-shadow: 0 8px 24px rgba(245, 201, 140, 0.25);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.5s ease both;
}
  background: linear-gradient(135deg, var(--gold-soft) 0%, #fde8c8 100%);
  border: 2px solid var(--gold);
  border-radius: var(--radius-xl);
  padding: 36px 26px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(245, 201, 140, 0.25);
  margin-bottom: 16px;
  animation: fadeInUp 0.5s ease both;
}

.premium-stub .stub-icon {
  font-size: 52px;
  display: block;
  margin-bottom: 14px;
  animation: pulse 2.5s ease-in-out infinite;
}

.premium-stub h2 {
  font-size: 22px;
  color: #8a5a00;
  margin: 0 0 14px;
  font-weight: 800;
}

.premium-stub p {
  font-size: 14.5px;
  color: #8a5a00;
  line-height: 1.65;
  margin: 0 0 14px;
}

.premium-stub .price-line {
  font-size: 30px;
  font-weight: 800;
  color: var(--gold-dark);
  margin: 18px 0;
  letter-spacing: -0.02em;
}

/* ============================================
   Анимация модалки
   ============================================ */
@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ============================================
   Адаптив
   ============================================ */
@media (max-width: 768px) {
  .btn {
    padding: 12px 18px;
    font-size: 14px;
  }

  .actions {
    gap: 8px;
  }

  .actions .btn {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
  }

  .day-header {
    font-size: 16px;
  }

  .mood-btn {
    font-size: 22px;
    padding: 10px 4px;
    min-width: 48px;
  }

  .modal {
    padding: 22px 18px;
    border-radius: var(--radius-lg);
  }

  .modal h2 {
    font-size: 18px;
  }

  .exercise-head {
    font-size: 15px;
    padding: 16px 18px;
  }

  .exercise-body {
    padding: 0 18px;
  }

  .exercise.open .exercise-body {
    padding: 0 18px 18px;
  }

  .consult-block,
  .upgrade-block,
  .premium-stub {
    padding: 22px 18px;
    border-radius: var(--radius-lg);
  }

  .save-status {
    top: 12px;
    right: 12px;
    left: 12px;
    max-width: none;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .mood-row {
    gap: 6px;
  }

  .mood-btn {
    padding: 8px 4px 6px;
    gap: 4px;
  }

  .mood-img-wrap {
    max-width: 44px;
  }

  .mood-label {
    font-size: 10px;
  }
}

@media (max-width: 420px) {
  .mood-row {
    gap: 4px;
    flex-wrap: wrap;
  }

  .mood-btn {
    flex: 1 1 calc(33.333% - 4px);
    min-width: calc(33.333% - 4px);
    padding: 8px 4px;
  }

  .mood-img-wrap {
    max-width: 40px;
  }

  .mood-label {
    font-size: 9.5px;
  }
  /* ============================================
   Иконки в кнопках
   ============================================ */
.btn-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
  vertical-align: middle;
  margin-right: 4px;
  display: inline-block;
}

/* Большие иконки в блоках (премиум, видео) */
.stub-icon-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
  margin: 0 auto 14px;
  animation: pulse 2.5s ease-in-out infinite;
}

.upgrade-icon-img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  display: block;
  margin: 0 auto 12px;
  animation: pulse 2.5s ease-in-out infinite;
}

.video-icon-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  display: block;
  margin: 0 auto 10px;
  opacity: 0.8;
  animation: pulse 3s ease-in-out infinite;
}

/* Мобильные размеры */
@media (max-width: 768px) {
  .btn-icon {
    width: 18px;
    height: 18px;
  }

  .stub-icon-img {
    width: 52px;
    height: 52px;
  }

  .upgrade-icon-img {
    width: 48px;
    height: 48px;
  }

  .video-icon-img {
    width: 44px;
    height: 44px;
  }
  }
}
/* ============================================
   Иконки в кнопках (уменьшенные)
   ============================================ */
.btn {
  padding: 8px 16px; /* Уменьшили сами кнопки */
  font-size: 14px;
}

.btn-icon {
  width: 60px;            /* Было 90px, стало 60px */
  height: 60px;
  object-fit: contain;
  transform: scale(1.2);  /* Саму картинку внутри немного увеличили */
  flex-shrink: 0;
  vertical-align: middle;
  margin-right: 4px;
  display: inline-block;
  transition: transform 0.2s ease;
}

.btn:hover .btn-icon {
  transform: scale(1.3) rotate(-3deg);
}

.stage-btn.premium {
  display: flex;
  flex-direction: row-reverse; /* Ставит иконку в конец, за текст */
  align-items: center;
  justify-content: center;
  gap: 8px; /* Отступ между текстом и короной */
}

.stage-btn.premium::before {
  content: "";
  display: inline-block;
  width: 24px;  /* Уменьшили размер */
  height: 24px;
  background-image: url('../assets/images/icons/premium.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transform: scale(1); /* Убрали лишнее увеличение */
  flex-shrink: 0;
}
/* Иконка видео в плейсхолдерах */
.video-icon-img {
  width: 160px;           
  height: 160px;
  object-fit: cover;
  transform: scale(1.4);
  display: block;
  margin: -30px auto -10px;
  opacity: 0.9;
  animation: pulse 3s ease-in-out infinite;
}

/* Большие иконки в блоках */
.stub-icon-img, .upgrade-icon-img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  transform: scale(1.3);
  display: block;
  margin: -20px auto -10px;
  animation: pulse 2.5s ease-in-out infinite;
}

/* Иконка языка */
.tongue-field label::before {
  content: "";
  display: inline-block;
  width: 45px;            
  height: 45px;
  background-image: url('../assets/images/icons/tongue.png');
  background-size: 160%;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
  margin-right: 2px;
  margin-left: -5px;
}

/* Стили для плеера */
.exercise-video {
  margin: 18px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #1a2b3c;
  box-shadow: 0 6px 20px rgba(26, 43, 60, 0.25);
  aspect-ratio: 16 / 9;
}
.exercise-video video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

/* Стили для плеера */
.exercise-video {
  margin: 18px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #1a2b3c;
  box-shadow: 0 6px 20px rgba(26, 43, 60, 0.25);
  aspect-ratio: 16 / 9;
}
.exercise-video video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
/* ============================================
   Плавающая аватарка сайта в углу (уменьшенный круг)
   ============================================ */
.floating-avatar 
{
    .floating-avatar {
    width: 40px; /* Уменьшили круг */
    height: 40px;
    bottom: 80px; /* Подняли выше, чтобы не мешала Netlify */
    right: 12px;
  }
  .floating-avatar img {
    transform: scale(1.1); /* Уменьшили саму картинку внутри */
  }

  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;            /* Круг стал меньше (было 70px) */
  height: 50px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 20px rgba(90, 140, 170, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  border: 2px solid #fff;
}

.floating-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.4); /* Картинка внутри увеличена */
}

.floating-avatar:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 28px rgba(90, 140, 170, 0.45);
}
/* ============================================
   КАЛЕНДАРЬ ОТМЕТОК (КОМПАКТНЫЙ)
   ============================================ */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr); /* 7 колонок */
  gap: 3px; /* Маленький отступ между ячейками */
  max-width: 260px; /* Ограничиваем ширину календаря */
  margin: 0 auto;   /* Центрируем */
}

.cal-head {
  text-align: center;
  font-size: 9px; /* Маленький шрифт для дней недели */
  font-weight: 700;
  color: var(--text-soft);
  padding-bottom: 4px;
}

.cal-day, .cal-empty {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px; /* Меньшее скругление */
  font-size: 11px; /* Маленький шрифт для чисел */
  font-weight: 600;
  color: var(--text-main);
  background: #fbfdfe;
  border: 1px solid var(--border);
}

.cal-empty {
  background: transparent;
  border: none;
}

.cal-day.marked {
  background: var(--primary-soft);
  border-color: var(--primary);
  padding: 2px;
}

.cal-day.marked img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}