/* ===== FoodMetric Landing Styles для Cassiopeia ===== */
/* ===== Тёмная тема FoodMetric для Cassiopeia ===== */
/* ===== Вариант 10 (Приглушённый кобальт / Матовый сапфир) ===== */
:root {
  --fm-accent: #2563eb;
  --fm-accent-hover: #1d4ed8;
  --fm-accent-soft: rgba(59, 130, 246, 0.12);
  --fm-accent-text: #7aa2f7;
  --fm-text: #e2e8f0;
  --fm-muted: #8b9bb4;
  --fm-surface: #0f1623;
  --fm-bg-body: #080c14;
  --fm-bg-soft: #161f30;
  --fm-border: #1e293b;
  --fm-radius: 16px;
}

.fm-hero {
  background: linear-gradient(135deg, #101a2e 0%, #080c14 100%) !important;
}

/* Мягкий голубой для бейджей, галочек и обводок вместо кислотного синего */
.fm-badge {
  background: var(--fm-accent-soft) !important;
  color: var(--fm-accent-text) !important;
  border: 1px solid rgba(122, 162, 247, 0.25);
}

.fm-stat-num,
.fm-yes {
  color: var(--fm-accent-text) !important;
}

.fm-btn-outline {
  background: transparent !important;
  color: var(--fm-accent-text) !important;
  border: 1.5px solid rgba(122, 162, 247, 0.45) !important;
}

.fm-btn-outline:hover {
  background: var(--fm-accent-soft) !important;
  border-color: var(--fm-accent-text) !important;
}

.fm-btn-primary {
  background: var(--fm-accent) !important;
  border-color: var(--fm-accent) !important;
  color: #f8fafc !important;
}

.fm-btn-primary:hover {
  background: var(--fm-accent-hover) !important;
  border-color: var(--fm-accent-hover) !important;
}

/* Тёмный фон для всей страницы Joomla */
html, body, .site-grid, .container-component {
  background-color: var(--fm-bg-body) !important;
  color: var(--fm-text) !important;
}

/* Тёмная шапка сайта */
header.header,
header.container-header {
  background: var(--fm-surface) !important;
  background-image: none !important;
  border-bottom: 1px solid var(--fm-border) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35) !important;
}

/* Первый экран (Hero) в тёмных тонах */
.fm-hero {
  background: #161f30 !important;
  border: 1px solid var(--fm-border) !important;
}

/* Светлая обводка для кнопки "Оформить доступ" на тёмном фоне */
.fm-btn-outline {
  background: transparent !important;
  color: #68d391 !important;
  border: 2px solid var(--fm-accent) !important;
}

.fm-btn-outline:hover {
  background: var(--fm-accent-soft) !important;
}

/* Таблица сравнения и карточки */
.fm-compare,
.fm-card,
.fm-pricing-card,
.fm-faq details {
  background: var(--fm-surface) !important;
  border-color: var(--fm-border) !important;
  color: var(--fm-text) !important;
}

.fm-compare th {
  background: var(--fm-bg-soft) !important;
  color: var(--fm-text) !important;
}

.fm-price {
  color: #ffffff !important;
}

.fm-yes {
  color: #68d391 !important;
}

/* Полоски кнопки бургер-меню делаем светлыми на тёмном фоне */
header.header .navbar-toggler,
header.container-header .navbar-toggler {
  background: var(--fm-bg-soft) !important;
  border-color: var(--fm-border) !important;
}

header.header .navbar-toggler-icon,
header.container-header .navbar-toggler-icon {
  filter: invert(1) brightness(1.8);
}


/* Убираем лишние рамки стандартного материала на главной */
.fm-landing {
  color: var(--fm-text);
  line-height: 1.6;
  max-width: 1140px;
  margin: 0 auto;
}

.fm-section {
  padding: 40px 0;
}

.fm-section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  text-align: center;
  margin: 0 0 12px;
  color: var(--fm-text);
}

.fm-section-sub {
  text-align: center;
  color: var(--fm-muted);
  max-width: 700px;
  margin: 0 auto 36px;
  font-size: 1.05rem;
}

/* Первый экран (Hero) */
.fm-hero {
  background: linear-gradient(135deg, #f1f8f4 0%, #ffffff 100%);
  border: 1px solid var(--fm-border);
  border-radius: 24px;
  padding: 56px 40px;
  text-align: center;
  margin-top: 16px;
}

.fm-badge {
  display: inline-block;
  background: var(--fm-accent-soft);
  color: var(--fm-accent);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.fm-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 18px;
  color: var(--fm-text);
}

.fm-hero p {
  font-size: 1.15rem;
  color: var(--fm-muted);
  margin: 0 auto 30px;
}

.fm-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.fm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none !important;
  transition: 0.15s ease;
  cursor: pointer;
}

.fm-btn-primary {
  background: var(--fm-accent);
  color: #ffffff !important;
  border: 2px solid var(--fm-accent);
}

.fm-btn-primary:hover {
  background: var(--fm-accent-hover);
  border-color: var(--fm-accent-hover);
}

.fm-btn-outline {
  background: #ffffff;
  color: var(--fm-accent) !important;
  border: 2px solid var(--fm-accent);
}

.fm-btn-outline:hover {
  background: var(--fm-accent-soft);
}

/* Цифры доверия */
.fm-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--fm-border);
}

.fm-stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--fm-accent);
}

.fm-stat-label {
  font-size: 0.9rem;
  color: var(--fm-muted);
}

/* Сетка карточек */
.fm-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
}

.fm-card {
  background: var(--fm-surface);
  border: 1px solid var(--fm-border);
  border-radius: var(--fm-radius);
  padding: 28px;
  box-shadow: 0 4px 16px rgba(20, 40, 30, 0.04);
}

.fm-card h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  font-weight: 700;
}

.fm-card p {
  margin: 0;
  color: var(--fm-muted);
  font-size: 0.95rem;
}

/* Таблица сравнения */
.fm-compare {
  width: 100%;
  border-collapse: collapse;
  background: var(--fm-surface);
  border: 1px solid var(--fm-border);
  border-radius: var(--fm-radius);
  overflow: hidden;
}

.fm-compare th, .fm-compare td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--fm-border);
  text-align: left;
}

.fm-compare th {
  background: var(--fm-bg-soft);
  font-weight: 700;
}

.fm-yes { color: var(--fm-accent); font-weight: 700; }
.fm-no { color: #8c9992; }

/* Контейнер под Демо */
.fm-demo-box {
  background: var(--fm-bg-soft);
  border: 2px dashed var(--fm-accent);
  border-radius: 20px;
  padding: 32px;
  text-align: center;
}

/* Карточка тарифа */
.fm-pricing-card {
  max-width: 520px;
  margin: 0 auto;
  background: var(--fm-surface);
  border: 2px solid var(--fm-accent);
  border-radius: 24px;
  padding: 36px;
  box-shadow: 0 12px 32px rgba(46, 125, 91, 0.12);
  text-align: center;
}

.fm-price {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--fm-text);
  margin: 12px 0;
}

.fm-price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--fm-muted);
}

.fm-checklist {
  list-style: none;
  padding: 0;
  margin: 24px 0 30px;
  text-align: left;
}

.fm-checklist li {
  padding: 8px 0 8px 28px;
  position: relative;
  border-bottom: 1px solid var(--fm-border);
}

.fm-checklist li:last-child { border-bottom: none; }

.fm-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--fm-accent);
  font-weight: 800;
}

/* FAQ аккордеон */
.fm-faq {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fm-faq details {
  background: var(--fm-surface);
  border: 1px solid var(--fm-border);
  border-radius: 12px;
  padding: 16px 20px;
}

.fm-faq summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.fm-faq details p {
  margin: 12px 0 0;
  color: var(--fm-muted);
}

@media (max-width: 768px) {
  .fm-hero { padding: 36px 20px; }
  .fm-pricing-card { padding: 24px 18px; }
}

/* ===== Верхнее меню в шапке Cassiopeia ===== */
.container-header .mod-menu {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0px;
}

.container-header .mod-menu > li > a {
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 600;
  color: var(--fm-text);
  text-decoration: none;
  transition: 0.15s ease;
}

.container-header .mod-menu > li > a:hover,
.container-header .mod-menu > li.active > a {
  background: var(--fm-accent-soft);
  color: var(--fm-accent);
}

/* Выделяем кнопку входа и кабинета в меню */
.container-header .mod-menu a.fm-nav-login,
.container-header .mod-menu a.fm-nav-account {
  background: var(--fm-accent);
  color: #ffffff !important;
  margin-left: 6px;
}

.container-header .mod-menu a.fm-nav-login:hover,
.container-header .mod-menu a.fm-nav-account:hover {
  background: var(--fm-accent-hover);
}

/* ===== Жёсткое выравнивание логотипа слева и меню справа в одну строку ===== */
header.header,
header.container-header {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: var(--fm-surface) !important;
  background-image: none !important;
  border-bottom: 1px solid var(--fm-border);
  box-shadow: 0 2px 10px rgba(20, 40, 30, 0.04);
  padding: 12px max(20px, calc((100vw - 1140px) / 2)) !important;
  width: 100% !important;
}

/* Если внутри header есть промежуточная обёртка grid-child — делаем её прозрачной для flex */
header.header > .grid-child,
header.container-header > .grid-child {
  display: contents !important;
}

/* Логотип строго слева */
header.header .navbar-brand,
header.container-header .navbar-brand {
  order: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
}

header.header .navbar-brand img,
header.container-header .navbar-brand img {
  max-height: 44px !important;
  width: auto !important;
}

/* Контейнер навигации строго справа */
header.header .container-nav,
header.container-header .container-nav,
header.header nav,
header.container-header nav {
  order: 2 !important;
  margin: 0 0 0 auto !important;
  padding: 0 !important;
  width: auto !important;
  display: flex !important;
  align-items: center !important;
}

/* Пункты меню строго в один горизонтальный ряд */
header.header ul.mod-menu,
header.container-header ul.mod-menu,
header.header ul.nav,
header.container-header ul.nav {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

header.header ul.mod-menu > li,
header.container-header ul.mod-menu > li {
  display: block !important;
  margin: 0 !important;
  white-space: nowrap !important;
}

header.header ul.mod-menu > li > a,
header.container-header ul.mod-menu > li > a {
  display: inline-block !important;
  padding: 8px 14px !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  color: var(--fm-text) !important;
  text-decoration: none !important;
  transition: 0.15s ease;
}

header.header ul.mod-menu > li > a:hover,
header.header ul.mod-menu > li.active > a {
  background: var(--fm-accent-soft) !important;
  color: var(--fm-accent) !important;
}

/* Последний пункт меню (Личный кабинет / Войти) — зелёная кнопка справа */
header.header ul.mod-menu > li:last-child > a,
header.container-header ul.mod-menu > li:last-child > a {
  background: var(--fm-accent) !important;
  color: #ffffff !important;
  margin-left: 6px !important;
}

header.header ul.mod-menu > li:last-child > a:hover,
header.container-header ul.mod-menu > li:last-child > a:hover {
  background: var(--fm-accent-hover) !important;
  color: #ffffff !important;
}

/* ===== Адаптивное бургер-меню для планшетов и смартфонов (до 991px) ===== */
header.header .navbar,
header.container-header .navbar {
  padding: 0 !important;
  margin: 0 !important;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* На десктопе (> 991px) скрываем кнопку бургера и держим пункты в ряд */
@media (min-width: 992px) {
  header.header .navbar-toggler,
  header.container-header .navbar-toggler {
    display: none !important;
  }
  header.header .navbar-collapse,
  header.container-header .navbar-collapse {
    display: flex !important;
    justify-content: flex-end !important;
  }
}

/* На планшетах и мобильных (<= 991px) логотип слева, бургер строго справа */
@media (max-width: 991px) {
  header.header,
  header.container-header {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    align-items: center !important;
    padding: 12px 20px !important;
    gap: 0 !important;
  }

  header.header .navbar-brand,
  header.container-header .navbar-brand {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }

  /* Делаем контейнер навигации прозрачным для сетки, чтобы кнопка и список встали в нужные ячейки */
  header.header .container-nav,
  header.container-header .container-nav,
  header.header .navbar,
  header.container-header .navbar {
    display: contents !important;
  }

  /* Кнопка бургера строго в правой колонке первой строки */
  header.header .navbar-toggler,
  header.container-header .navbar-toggler {
    grid-column: 2 !important;
    grid-row: 1 !important;
    justify-self: end !important;
    margin: 0 !important;
    padding: 8px 12px !important;
    border: 1px solid var(--fm-border) !important;
    border-radius: 10px !important;
    background: var(--fm-bg-soft) !important;
    color: var(--fm-text) !important;
    cursor: pointer;
    box-shadow: none !important;
  }

  /* Выпадающий список меню занимает всю ширину на второй строке */
  header.header .navbar-collapse,
  header.container-header .navbar-collapse {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    width: 100% !important;
    margin-top: 12px !important;
    padding-top: 12px !important;
    border-top: 1px solid var(--fm-border);
  }

  header.header .navbar-collapse:not(.show),
  header.container-header .navbar-collapse:not(.show) {
    display: none !important;
  }

  header.header .navbar-collapse.show,
  header.container-header .navbar-collapse.show {
    display: block !important;
  }

  header.header ul.mod-menu,
  header.container-header ul.mod-menu,
  header.header ul.nav,
  header.container-header ul.nav {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    gap: 6px !important;
  }

  header.header ul.mod-menu > li,
  header.container-header ul.mod-menu > li {
    width: 100% !important;
  }

  header.header ul.mod-menu > li > a,
  header.container-header ul.mod-menu > li > a {
    display: block !important;
    width: 100% !important;
    padding: 12px 16px !important;
    text-align: left !important;
  }

  header.header ul.mod-menu > li:last-child > a,
  header.container-header ul.mod-menu > li:last-child > a {
    margin-left: 0 !important;
    margin-top: 6px !important;
    text-align: center !important;
  }
}

/* ===== Выпадающее подменю («Справочник» -> Блог, Шпаргалка, Инструменты) ===== */
header.header ul.mod-menu > li.parent,
header.container-header ul.mod-menu > li.parent {
  position: relative !important;
}

/* Небольшая стрелочка рядом с пунктом «Справочник» */
header.header ul.mod-menu > li.parent > a::after,
header.container-header ul.mod-menu > li.parent > a::after {
  content: " ▾";
  font-size: 0.8em;
  opacity: 0.75;
}

/* Выпадающий список на десктопе (> 991px) */
@media (min-width: 992px) {
  header.header ul.mod-menu > li.parent > ul,
  header.container-header ul.mod-menu > li.parent > ul {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    min-width: 210px !important;
    margin: 0 !important;
    padding: 8px !important;
    list-style: none !important;
    background: var(--fm-surface) !important;
    border: 1px solid var(--fm-border) !important;
    border-radius: 12px !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45) !important;
    z-index: 100 !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 4px !important;
  }

  /* Показываем при наведении курсора на «Справочник» */
  header.header ul.mod-menu > li.parent:hover > ul,
  header.container-header ul.mod-menu > li.parent:hover > ul {
    display: flex !important;
  }

  header.header ul.mod-menu > li.parent > ul > li > a,
  header.container-header ul.mod-menu > li.parent > ul > li > a {
    display: block !important;
    padding: 9px 14px !important;
    border-radius: 8px !important;
    font-size: 0.92rem !important;
    font-weight: 500 !important;
    color: var(--fm-text) !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    transition: 0.15s ease;
  }

  header.header ul.mod-menu > li.parent > ul > li > a:hover,
  header.container-header ul.mod-menu > li.parent > ul > li > a:hover {
    background: var(--fm-accent-soft) !important;
    color: var(--fm-accent-text) !important;
  }
}

/* На мобильных (<= 991px) аккуратно отображаем подпункты с отступом внутри бургера */
@media (max-width: 991px) {
  header.header ul.mod-menu > li.parent > ul,
  header.container-header ul.mod-menu > li.parent > ul {
    display: flex !important;
    flex-direction: column !important;
    list-style: none !important;
    margin: 4px 0 6px 16px !important;
    padding: 0 0 0 12px !important;
    border-left: 2px solid var(--fm-border) !important;
    gap: 4px !important;
  }

  header.header ul.mod-menu > li.parent > ul > li > a,
  header.container-header ul.mod-menu > li.parent > ul > li > a {
    display: block !important;
    padding: 8px 12px !important;
    font-size: 0.9rem !important;
    color: var(--fm-muted) !important;
    text-decoration: none !important;
    border-radius: 8px !important;
  }
}

/* ===== Две карточки тарифов рядом (Демо + PRO) ===== */
.fm-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
  align-items: stretch;
}

.fm-pricing-grid .fm-pricing-card {
  max-width: none;
  width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Спокойная рамка для бесплатной демо-карточки */
.fm-pricing-card.fm-card-demo {
  border: 1px solid var(--fm-border) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25) !important;
}

.fm-pricing-card .fm-checklist {
  flex-grow: 1;
}

/* Крестик для недоступных в демо пунктов */
.fm-checklist li.fm-locked {
  color: var(--fm-muted);
}

.fm-checklist li.fm-locked::before {
  content: "✕";
  color: #64748b;
  font-weight: 700;
}

/* ===== Раздел «Инструменты» (Калькуляторы) ===== */
.fm-tools-wrap {
  max-width: 860px;
  margin: 24px auto 56px;
}

.fm-tool-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  justify-content: center;
}

.fm-tool-tab {
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid var(--fm-border);
  background: var(--fm-surface);
  color: var(--fm-muted);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: 0.15s ease;
}

.fm-tool-tab:hover {
  border-color: var(--fm-accent-text);
  color: var(--fm-text);
}

.fm-tool-tab.active {
  background: var(--fm-accent);
  border-color: var(--fm-accent);
  color: #ffffff;
}

.fm-calc-card {
  background: var(--fm-surface);
  border: 1px solid var(--fm-border);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.fm-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.fm-field label {
  display: block;
  font-size: 0.85rem;
  color: var(--fm-muted);
  margin-bottom: 6px;
  font-weight: 600;
}

.fm-field input,
.fm-field select {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--fm-border);
  background: var(--fm-bg-body);
  color: var(--fm-text);
  font-size: 1rem;
}

.fm-field input:focus,
.fm-field select:focus {
  outline: none;
  border-color: var(--fm-accent-text);
}

.fm-result-box {
  background: var(--fm-bg-soft);
  border: 1px solid var(--fm-border);
  border-radius: 14px;
  padding: 20px;
  margin-top: 20px;
}

.fm-result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  text-align: center;
}

.fm-res-val {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--fm-accent-text);
}

.fm-res-lbl {
  font-size: 0.82rem;
  color: var(--fm-muted);
  margin-top: 2px;
}

.fm-tool-cta {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--fm-border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--fm-muted);
}

/* ===== Страница «Шпаргалка» (Таблица суточных норм) ===== */
.fm-cheat-wrap {
  max-width: 1040px;
  margin: 24px auto 56px;
}

.fm-cheat-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  background: var(--fm-surface);
  border: 1px solid var(--fm-border);
  border-radius: 16px;
  padding: 16px;
}

.fm-cheat-search {
  flex: 1 1 240px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--fm-border);
  background: var(--fm-bg-body);
  color: var(--fm-text);
  font-size: 0.95rem;
}

.fm-cheat-search:focus {
  outline: none;
  border-color: var(--fm-accent-text);
}

.fm-cheat-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--fm-surface);
  border: 1px solid var(--fm-border);
  border-radius: 16px;
  overflow: hidden;
}

.fm-cheat-table th {
  background: var(--fm-bg-soft);
  color: var(--fm-accent-text);
  text-align: left;
  padding: 12px 18px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--fm-border);
}

.fm-cheat-table td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--fm-border);
  vertical-align: middle;
}

.fm-cheat-table tr:last-child td {
  border-bottom: none;
}

.fm-cheat-name {
  font-weight: 700;
  color: var(--fm-text);
  font-size: 0.98rem;
}

.fm-cheat-note {
  font-size: 0.83rem;
  color: var(--fm-muted);
  margin-top: 3px;
}

.fm-cheat-val {
  text-align: right;
  font-weight: 700;
  color: var(--fm-accent-text);
  white-space: nowrap;
  font-size: 0.98rem;
}

/* ===== Демо-версия калькулятора (/demo) ===== */
.fm-demo-wrap {
  max-width: 1140px;
  margin: 20px auto 56px;
}

.fm-demo-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: var(--fm-surface);
  border: 1px solid var(--fm-border);
  border-radius: 16px;
  padding: 18px 24px;
  margin-bottom: 20px;
}

.fm-demo-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 20px;
  align-items: start;
}

.fm-demo-panel {
  background: var(--fm-surface);
  border: 1px solid var(--fm-border);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.fm-demo-panel h2 {
  font-size: 1.15rem;
  margin: 0 0 14px;
  color: var(--fm-text);
}

.fm-demo-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.fm-demo-filters input,
.fm-demo-filters select {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--fm-border);
  background: var(--fm-bg-body);
  color: var(--fm-text);
  font-size: 0.92rem;
}

.fm-demo-filters input { flex: 1; }

.fm-demo-list {
  max-height: 520px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 4px;
}

.fm-prod-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  background: var(--fm-bg-body);
  border: 1px solid var(--fm-border);
  border-radius: 12px;
  transition: 0.15s ease;
}

.fm-prod-row:hover {
  border-color: var(--fm-accent-text);
}

.fm-prod-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--fm-text);
}

.fm-prod-meta {
  font-size: 0.8rem;
  color: var(--fm-muted);
  margin-top: 2px;
}

.fm-btn-add {
  padding: 7px 14px;
  border-radius: 8px;
  border: none;
  background: var(--fm-accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
}

.fm-btn-add:hover { background: var(--fm-accent-hover); }

/* Рацион справа */
.fm-ration-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.fm-ration-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: var(--fm-bg-soft);
  border: 1px solid var(--fm-border);
  border-radius: 10px;
}

.fm-grams-box {
  display: flex;
  align-items: center;
  gap: 6px;
}

.fm-grams-box input {
  width: 74px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid var(--fm-border);
  background: var(--fm-bg-body);
  color: var(--fm-text);
  text-align: right;
  font-weight: 700;
}

.fm-btn-del {
  background: transparent;
  border: 1px solid var(--fm-border);
  color: var(--fm-muted);
  border-radius: 8px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  font-weight: 700;
}

.fm-btn-del:hover {
  border-color: #ef4444;
  color: #f87171;
}

/* Таблица нутриентов в демо */
.fm-demo-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.fm-demo-table th {
  text-align: left;
  padding: 10px 12px;
  background: var(--fm-bg-soft);
  color: var(--fm-accent-text);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.fm-demo-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--fm-border);
  font-size: 0.94rem;
}

.fm-demo-table td:last-child {
  text-align: right;
  font-weight: 700;
}

/* Заблокированные строки PRO */
.fm-pro-lock-row td {
  color: var(--fm-muted);
}

.fm-pro-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  white-space: nowrap !important;
  font-size: 0.78rem !important;
  line-height: 1.2 !important;
  padding: 10px 12px !important;
  border-radius: 999px !important;
  background: var(--fm-accent-soft) !important;
  color: var(--fm-accent-text) !important;
  border: 1px solid rgba(122, 162, 247, 0.25) !important;
  text-decoration: none !important;
}


@media (max-width: 860px) {
  .fm-demo-grid { grid-template-columns: 1fr; }
}

/* ===== Ровное центрирование текста в кнопках ===== */
.fm-btn,
button.fm-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  line-height: 1.25 !important;
  vertical-align: middle !important;
}
/* ===== Личный кабинет (/account) ===== */
.fm-acc-wrap {
  max-width: 860px;
  margin: 24px auto 56px;
}

.fm-acc-card {
  background: var(--fm-surface);
  border: 1px solid var(--fm-border);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  margin-bottom: 20px;
}

.fm-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.fm-status-active {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.fm-status-inactive {
  background: rgba(245, 158, 11, 0.14);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.fm-acc-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.fm-acc-box {
  background: var(--fm-bg-body);
  border: 1px solid var(--fm-border);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.fm-acc-box h3 {
  font-size: 1.1rem;
  margin: 0 0 8px;
  color: var(--fm-text);
}

.fm-acc-box p {
  font-size: 0.9rem;
  color: var(--fm-muted);
  margin: 0 0 16px;
}

.fm-acc-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--fm-border);
  font-size: 0.9rem;
}
