/* Страницы калорийности продуктов (/food/…); базовые токены — landing.css */
main.wrap { padding-bottom: 32px; }
h1 { font-size: 1.9rem; line-height: 1.2; margin: 8px 0 10px; }
h2 { font-size: 1.3rem; margin: 32px 0 10px; }
.lead { color: var(--muted); margin: 0 0 16px; }
.crumbs { font-size: 0.9rem; color: var(--muted); margin: 12px 0 4px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

.cats { list-style: none; padding: 0; margin: 20px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.cats a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; text-decoration: none; color: var(--text); font-weight: 600; }
.cats img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; }
.cats small { margin-inline-start: auto; color: var(--muted); font-weight: 400; }

.product { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; margin-top: 8px; }
.product .photo { width: 240px; height: 240px; border-radius: 20px; object-fit: cover; border: 1px solid var(--border); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 8px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 10px 12px; }
.stat b { display: block; font-size: 1.25rem; }
.stat span { font-size: 0.8rem; color: var(--muted); }
.stat.kcal b { color: var(--accent); }
.stat.p b { color: #22C55E; }
.stat.f b { color: #FB923C; }
.stat.c b { color: #D4A017; }
.nutri { margin: 12px 0 0; color: var(--muted); font-size: 0.95rem; }
.badge { display: inline-block; min-width: 28px; padding: 2px 8px; border-radius: 8px; color: #fff; font-weight: 800; text-align: center; }

.table-wrap { overflow-x: auto; }
table.foods { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
table.foods th, table.foods td { padding: 8px 10px; border-bottom: 1px solid var(--border); text-align: start; }
table.foods th { color: var(--muted); font-weight: 600; font-size: 0.85rem; }
table.foods td:not(:first-child), table.foods th:not(:first-child) { text-align: end; white-space: nowrap; }
table.foods a { text-decoration: none; }
.sub { color: var(--muted); font-size: 0.9rem; margin: 6px 0 0; }

.cta-box { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; margin: 32px 0; padding: 20px 22px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; }
.cta-box h2 { margin: 0 0 8px; font-size: 1.3rem; }
.cta-box p { margin: 0 0 14px; color: var(--muted); }
.cta-box img { width: 120px; height: auto; border-radius: 14px; }
.cta-box .cta { padding: 12px 18px; font-size: 1rem; }

.more-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 20px; }
.more-list li { padding: 6px 0; border-bottom: 1px solid var(--border); }
.more-list a { text-decoration: none; }
.more-list small { color: var(--muted); }
footer .note { font-size: 0.85rem; }

@media (max-width: 720px) {
  .product { grid-template-columns: 1fr; }
  .product .photo { width: 100%; max-width: 320px; height: auto; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cta-box { grid-template-columns: 1fr; }
  .cta-box img { display: none; }
}
