body { padding-bottom: 4.5rem; }
@media (min-width: 992px) { body { padding-bottom: 0; } }
body.public-page { padding-bottom: 0; }

.navbar-brand { letter-spacing: 0.02em; }

.landing-hero {
  background: linear-gradient(135deg, #157347 0%, #198754 45%, #20c997 100%);
  color: #fff;
}

.landing-hero h1,
.landing-hero .landing-hero-lead {
  color: #fff;
}

.landing-hero-lead {
  opacity: 0.95;
}

.landing-hero-note {
  color: rgba(255, 255, 255, 0.85);
}

.landing-step-num {
  font-size: 1.5rem;
  line-height: 1;
}

.landing-hero-badge {
  background-color: rgba(255, 255, 255, 0.95);
  color: #146c43;
  font-weight: 600;
}

.landing-hero .btn-outline-light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.9);
}

.landing-hero .btn-outline-light:hover,
.landing-hero .btn-outline-light:focus {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}
.py-lg-6 { padding-top: 4rem; padding-bottom: 4rem; }

.landing-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.landing-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}
.landing-benefits .bi-check2 {
  font-size: 1.1rem;
  line-height: 1.35;
  flex-shrink: 0;
}

.landing-benefits code {
  background: #f8f9fa;
  color: #198754;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.85em;
  font-family: "SF Mono", "Fira Code", Consolas, ui-monospace, monospace;
}

/* LANDING: Quick Demo (быстрый ввод в hero) */
.landing-quick-demo {
  max-width: 480px;
  margin: 0 auto;
}

.landing-quick-demo-icon {
  font-size: 1.5rem;
}

.landing-quick-demo-lines {
  background: #f8f9fa;
  border-radius: 0.5rem;
  padding: 1rem;
  font-family: "SF Mono", "Fira Code", Consolas, ui-monospace, monospace;
  font-size: 0.85rem;
  line-height: 1.8;
}

.landing-quick-demo-line {
  color: #212529;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.landing-quick-demo-line .text-muted {
  color: #198754 !important;
  font-weight: 600;
  margin-right: 0.5rem;
}

/* LANDING: Mockup (мок-экраны приложения) */
.landing-mockup {
  background: #ffffff;
  border: 1px solid #dee2e6;
  border-radius: 0.75rem;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.landing-mockup:hover {
  transform: translateY(-4px);
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
}

.landing-mockup-bar {
  background: #f1f3f5;
  padding: 0.5rem 0.75rem;
  display: flex;
  gap: 0.375rem;
  border-bottom: 1px solid #dee2e6;
}

.landing-mockup-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ced4da;
}

.landing-mockup-bar span:first-child { background: #ff6b6b; }
.landing-mockup-bar span:nth-child(2) { background: #ffd43b; }
.landing-mockup-bar span:last-child { background: #51cf66; }

.landing-mockup-body {
  padding: 1rem;
  min-height: 160px;
}

.landing-mockup-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #212529;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f1f3f5;
}

.landing-mockup-stat {
  font-size: 2rem;
  font-weight: 700;
  color: #198754;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.landing-mockup-label {
  font-size: 0.75rem;
  color: #6c757d;
  margin-bottom: 0.75rem;
}

.landing-mockup-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  padding: 0.375rem 0;
  border-top: 1px solid #f8f9fa;
}

.landing-mockup-textarea {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  color: #212529;
  margin-bottom: 0.75rem;
  font-family: "SF Mono", "Fira Code", Consolas, ui-monospace, monospace;
}

.landing-mockup-btn {
  background: #198754;
  color: #ffffff;
  border-radius: 0.375rem;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}

.landing-mockup-score {
  font-size: 2.5rem;
  font-weight: 700;
  color: #198754;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.landing-mockup-tag {
  display: inline-block;
  background: #f8f9fa;
  color: #6c757d;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  margin-bottom: 0.5rem;
}

.landing-mockup-note {
  font-size: 0.75rem;
  line-height: 1.5;
}

.landing-mockup-insight {
  background: #f0fdf4;
  border-left: 3px solid #198754;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  color: #212529;
  margin-bottom: 0.5rem;
  border-radius: 0 0.25rem 0.25rem 0;
}

.landing-mockup-insight-warn {
  background: #fffbeb;
  border-left-color: #f59e0b;
}

.landing-mockup-caption {
  text-align: center;
  padding: 0.5rem 0.75rem;
  border-top: 1px solid #f1f3f5;
}

.landing-mockup-card {
  background: #f8f9fa;
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  height: 100%;
}

.landing-mockup-card strong {
  display: block;
  font-size: 0.75rem;
  color: #212529;
  margin-bottom: 0.125rem;
}

.landing-mockup-wide {
  max-width: 560px;
  margin: 0 auto;
}

/* LANDING: Rule Engine */
.landing-rule-notes li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.375rem 0;
  font-size: 0.9rem;
}

.landing-rule-notes li i {
  margin-top: 0.125rem;
  flex-shrink: 0;
}

/* LANDING: Comparison table */
.landing-comparison th,
.landing-comparison td {
  vertical-align: middle;
}

.landing-comparison .bi-check-lg {
  font-size: 1.25rem;
}

/* LANDING: Disclaimer */
.landing-disclaimer {
  font-size: 0.75rem;
  color: #6c757d;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
}

@media (max-width: 991.98px) {
  #screenshots .col-lg-3 {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .landing-quick-demo {
    max-width: 100%;
  }

  .landing-mockup-wide {
    max-width: 100%;
  }
}

@media (max-width: 767.98px) {
  #screenshots .col-lg-3,
  #screenshots .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .landing-quick-demo-line {
    font-size: 0.75rem;
  }

  .landing-mockup-stat,
  .landing-mockup-score {
    font-size: 1.75rem;
  }
}

.public-page .card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.public-page .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.auth-section { min-height: 50vh; }
.auth-card { border-radius: 1rem; }

.error-icon {
  font-size: 4rem;
  line-height: 1;
}

.form-control:focus,
.form-check-input:focus {
  border-color: #198754;
  box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.2);
}

.quick-add .collapse .card {
  background: #f8f9fa;
}

.calendar-day,
.bg-success-subtle:not(.text-success),
.bg-danger-subtle {
  color: var(--bs-body-color);
}

.calendar-day {
  min-width: 2.5rem;
}

.calendar-day-num {
  font-weight: 600;
  line-height: 1.2;
}

.calendar-day-count {
  font-size: 0.75rem;
  line-height: 1.2;
}

.meal-photo-thumb {
  width: 120px;
  height: 120px;
  object-fit: cover;
}

.nav-pills .nav-link:not(.active):not(.text-success) {
  color: var(--bs-secondary-color);
}

.nav-pills .nav-link.active {
  color: #fff;
}

.wizard-save-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 3.75rem;
  z-index: 1020;
  padding: 0.65rem 1rem;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--bs-border-color);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
}

@media (min-width: 992px) {
  .wizard-save-bar { display: none !important; }
}

@media (max-width: 991.98px) {
  .wizard-save-actions { display: none; }
}

.wizard-quick-toolbar .btn {
  flex: 1 1 7rem;
}

.favorability-dot {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  margin-right: 0.25rem;
  vertical-align: middle;
}

.favorability-dot--good {
  background-color: var(--bs-success);
}

.favorability-dot--caution {
  background-color: var(--bs-warning);
}

.ingredient-badge {
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
}

.meal-history-card {
  width: 100%;
  min-width: 0;
}

.meal-history-header {
  flex-wrap: wrap;
}

.meal-history-header__meta {
  flex: 1 1 auto;
  min-width: 0;
}

.meal-consumption--compact {
  margin-top: 0.35rem;
  width: 100%;
  min-width: 0;
}

.meal-consumption--compact .list-group {
  width: 100%;
}

.meal-consumption--compact .h6 {
  font-size: 0.8rem;
  margin-bottom: 0.35rem;
  margin-top: 0.5rem;
}

.meal-consumption--compact .list-group-item {
  padding: 0.5rem 0.75rem;
}

.history-row-incomplete {
  border-left: 3px solid var(--bs-warning);
  background-color: rgba(var(--bs-warning-rgb), 0.06);
}

.history-gaps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.history-gaps__label {
  flex: 0 0 auto;
}

.history-gap-badge {
  background-color: rgba(var(--bs-warning-rgb), 0.15);
  color: var(--bs-warning-text-emphasis, #664d03);
  border: 1px solid rgba(var(--bs-warning-rgb), 0.35);
  font-weight: 500;
  cursor: help;
}

.history-incomplete-summary {
  color: var(--bs-warning-text-emphasis, #664d03);
  background: rgba(var(--bs-warning-rgb), 0.1);
  border-radius: 0.375rem;
  padding: 0.35rem 0.65rem;
}

.history-incomplete-legend {
  color: var(--bs-warning-text-emphasis, #664d03);
}

.rasa-badge {
  font-size: 0.75em;
  font-weight: 500;
  color: var(--bs-secondary-color);
  white-space: nowrap;
}

.ingredient-badge .rasa-badge {
  margin-left: 0.1rem;
}

.quick-parse-icon {
  font-size: 0.95rem;
  line-height: 1;
}

.quick-parse-panel > .card-body > .d-flex > .quick-parse-icon {
  color: var(--bs-success);
  font-size: 1.25rem;
  margin-top: 0.1rem;
}

.btn-success .quick-parse-icon {
  color: #fff;
}

.terms-scroll {
  max-height: min(50vh, 28rem);
  overflow-y: auto;
}

.quick-parse-panel textarea {
  font-size: 0.85rem;
}

.ingredient-catalog-list {
  max-height: 280px;
  overflow: auto;
}

.ingredient-list-item {
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--bs-border-color-translucent);
}

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

.ingredient-rasa-inline {
  flex-shrink: 0;
}

.ingredient-rasa-select {
  width: auto;
  min-width: 7.5rem;
  max-width: 10rem;
  font-size: 0.8rem;
}

.phs-profile-card .phs-profile-stat-label {
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
}

.phs-profile-card .phs-profile-stat-meta {
  font-size: 0.72rem;
  line-height: 1.35;
  margin-top: 0.15rem;
}

.phs-profile-empty {
  border-style: dashed !important;
  border-color: var(--bs-success) !important;
  background: rgba(25, 135, 84, 0.04);
}
