/* FitFood — brand: #92ba24, #047857 */
:root {
  --color-brand: #92ba24;
  --color-brand-dark: #6f9419;
  --color-accent: #047857;
  --color-accent-light: #059669;
  --color-bg: #f8faf8;
  --color-surface: #ffffff;
  --color-text: #0f172a;
  --color-muted: #475569;
  --color-border: #e2e8f0;
  --font: "Manrope", system-ui, sans-serif;
  --radius: 14px;
  --shadow: 0 12px 40px rgba(4, 120, 87, 0.12);
  --shadow-sm: 0 4px 16px rgba(15, 23, 42, 0.06);
  --transition: 0.25s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-brand-dark);
}

.container {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
}

.container.narrow {
  width: min(520px, 100% - 2rem);
}

.container--wide {
  width: min(1200px, 100% - 2rem);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 250, 248, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  flex-wrap: wrap;
}

.logo {
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--color-text);
}

.logo span {
  color: var(--color-brand);
}

.logo--footer {
  color: #fff;
}

.logo--footer span {
  color: var(--color-brand);
}

.header__account-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-muted);
  white-space: nowrap;
  text-decoration: none;
}

.header__account-link:hover {
  color: var(--color-accent);
}

.header__account-icon {
  display: inline-flex;
  color: var(--color-text);
  opacity: 0.9;
}

.header__account-icon svg {
  display: block;
}

@media (max-width: 720px) {
  .header__account-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

.header__cart {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  white-space: nowrap;
}

.header__cart:hover {
  border-color: var(--color-brand);
  color: var(--color-accent);
}

.header__cart-badge {
  display: inline-flex;
  min-width: 1.35rem;
  height: 1.35rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--color-brand);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
}

.nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.nav__list a {
  color: var(--color-muted);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav__list a:hover {
  color: var(--color-accent);
}

.nav__toggle {
  display: none;
  background: var(--color-accent);
  color: #fff;
  border: none;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
}

/* City modal + header city */
.city-modal {
  max-width: min(420px, calc(100vw - 2rem));
  padding: 0;
  border: none;
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.35);
}

.city-modal::backdrop {
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
}

.cart-dialog {
  max-width: min(440px, calc(100vw - 2rem));
  padding: 0;
  border: none;
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.35);
}

.cart-dialog::backdrop {
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
}

.cart-dialog__inner {
  position: relative;
  padding: 1.35rem 1.5rem 1.5rem;
}

.cart-dialog__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.06);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-muted);
}

.cart-dialog__close:hover {
  background: rgba(15, 23, 42, 0.1);
  color: var(--color-text);
}

.cart-dialog__title {
  margin: 0 2rem 1rem 0;
  font-size: 1.25rem;
  font-weight: 800;
}

.cart-dialog__empty {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  color: var(--color-muted);
  line-height: 1.45;
}

.cart-dialog__empty[hidden] {
  display: none;
}

.cart-dialog__lines {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: min(50vh, 320px);
  overflow-y: auto;
  margin-bottom: 1rem;
}

.cart-line {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background: #fafafa;
}

.cart-line__text {
  font-size: 0.9rem;
  line-height: 1.4;
}

.cart-line__meta {
  font-size: 0.82rem;
  color: var(--color-muted);
}

.cart-line__remove {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 8px;
  background: rgba(220, 38, 38, 0.12);
  color: #b91c1c;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.cart-line__remove:hover {
  background: rgba(220, 38, 38, 0.22);
}

.cart-dialog__total-row {
  margin: 0 0 1rem;
  font-size: 1.05rem;
}

.cart-dialog__total-row strong {
  color: var(--color-accent);
}

.cart-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  justify-content: flex-end;
}

.btn--ghost {
  border: 2px solid var(--color-border);
  background: transparent;
  color: var(--color-text);
}

.btn--ghost:hover {
  border-color: var(--color-brand);
}

#btn-add-cart.is-added {
  border-color: var(--color-brand);
  color: var(--color-accent);
}

.city-modal__title {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-text);
  padding: 1.75rem 1.75rem 0;
}

.city-modal__text {
  margin: 0;
  padding: 0 1.75rem 1.25rem;
  font-size: 0.95rem;
  color: var(--color-muted);
  line-height: 1.55;
}

.city-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0 1.75rem 1.75rem;
}

.city-modal__btn {
  padding: 0.85rem 1.25rem;
  border-radius: 14px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition);
}

.city-modal__btn--primary {
  background: var(--color-brand);
  color: #0f172a;
  border-color: var(--color-brand);
}

.city-modal__btn--primary:hover {
  background: #a8cf3a;
  transform: translateY(-1px);
}

.header-city {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.nav {
  margin-left: auto;
}

.header-city__label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.header-city__select {
  appearance: none;
  padding: 0.45rem 2rem 0.45rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  background: var(--color-surface)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23047857' d='M6 8L1 3h10z'/%3E%3C/svg%3E")
    no-repeat right 0.6rem center;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-text);
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.header-city__select:hover,
.header-city__select:focus {
  outline: none;
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px rgba(146, 186, 36, 0.2);
}

/* Promotions carousel — coverflow: центр чёткий, бока scale + blur */
.promotions {
  padding: 2.5rem 0 3rem;
  background: #f4f6f9;
}

.promotions__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 1.25rem;
}

.promotions__tag {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-muted);
  background: #fff;
}

.promotions__slogan {
  margin: 0;
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  font-weight: 800;
  color: var(--color-text);
  text-align: right;
  max-width: 28rem;
  line-height: 1.3;
}

.promotions .container--wide {
  overflow-x: hidden;
}

.promotions__viewport {
  position: relative;
  margin: 0;
  overflow: visible;
}

.promotions__track {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 2rem max(1rem, 6vw) 2.25rem;
  scroll-padding-inline: max(1rem, 6vw);
  scrollbar-width: thin;
  scrollbar-color: rgba(4, 120, 87, 0.35) transparent;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
}

.promotions__track::-webkit-scrollbar {
  height: 6px;
}

.promotions__track::-webkit-scrollbar-thumb {
  background: rgba(4, 120, 87, 0.35);
  border-radius: 4px;
}

.promo-slide {
  position: relative;
  flex: 0 0 auto;
  width: min(680px, 88vw);
  scroll-snap-align: center;
  z-index: 1;
}

.promo-slide.is-active {
  z-index: 3;
}

.promo-slide__inner {
  border-radius: 20px;
  overflow: hidden;
  background: #e2e8f0;
  line-height: 0;
  transform-origin: center center;
  transition:
    transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    filter 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity 0.4s ease,
    box-shadow 0.4s ease;
  will-change: transform, filter;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.1);
}

.promo-slide:not(.is-active) .promo-slide__inner {
  transform: scale(0.82);
  filter: blur(5px);
  opacity: 0.62;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.promo-slide.is-active .promo-slide__inner {
  transform: scale(1);
  filter: blur(0);
  opacity: 1;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.16);
}

.promo-slide__inner img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

@media (prefers-reduced-motion: reduce) {
  .promo-slide__inner {
    transition-duration: 0.01ms;
  }

  .promo-slide:not(.is-active) .promo-slide__inner {
    filter: none;
    opacity: 0.85;
    transform: scale(0.92);
  }
}

.promotions__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.75rem;
}

.promotions__arrow {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  font-size: 1.4rem;
  line-height: 1;
  color: var(--color-accent);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}

.promotions__arrow:hover {
  background: rgba(146, 186, 36, 0.15);
  border-color: var(--color-brand);
}

.promotions__dots {
  display: flex;
  gap: 0.45rem;
  align-items: center;
}

.promotions__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: #cbd5e1;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.promotions__dot[aria-selected="true"] {
  background: var(--color-brand);
  transform: scale(1.25);
}

@media (max-width: 640px) {
  .promotions__slogan {
    text-align: left;
    width: 100%;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 720px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 0 5rem;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: #0f172a;
  background-image: linear-gradient(
      135deg,
      rgba(4, 120, 87, 0.55) 0%,
      rgba(15, 23, 42, 0.45) 100%
    ),
    url("../img/fon-main-mobile.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

@media (min-width: 768px) {
  .hero__bg {
    background-image: linear-gradient(
        135deg,
        rgba(4, 120, 87, 0.5) 0%,
        rgba(15, 23, 42, 0.4) 100%
      ),
      url("../img/fon-main-tablet.jpg");
  }
}

@media (min-width: 1200px) {
  .hero__bg {
    background-image: linear-gradient(
        135deg,
        rgba(4, 120, 87, 0.45) 0%,
        rgba(15, 23, 42, 0.35) 100%
      ),
      url("../img/fon-main-desktop.png");
  }
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.hero__badge {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.hero__title {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 4vw, 2.35rem);
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  text-wrap: balance;
}

.hero__subtitle {
  margin: 0 0 2rem;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.92);
  max-width: 640px;
  margin-inline: auto;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.hero__secondary {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero__secondary:hover {
  color: var(--color-brand);
}

/* Animations hero */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeUp 0.8s ease forwards;
  opacity: 0;
}

.animate-in--delay-1 {
  animation-delay: 0.12s;
}

.animate-in--delay-2 {
  animation-delay: 0.24s;
}

.animate-in--delay-3 {
  animation-delay: 0.36s;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn--primary {
  background: var(--color-brand);
  color: #0f172a;
  border-color: var(--color-brand);
}

.btn--primary:hover {
  background: #a8cf3a;
  color: #0f172a;
}

.btn--light {
  background: #fff;
  color: var(--color-accent);
  border-color: #fff;
}

.btn--light:hover {
  background: var(--color-brand);
  color: #0f172a;
  border-color: var(--color-brand);
}

.btn--outline {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.btn--outline:hover {
  background: rgba(146, 186, 36, 0.15);
}

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.btn--block {
  width: 100%;
  margin-top: 1rem;
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section--alt {
  background: linear-gradient(180deg, #eef7f0 0%, var(--color-bg) 100%);
}

.section__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  text-align: center;
  margin: 0 0 0.75rem;
  color: var(--color-text);
}

.section__lead {
  text-align: center;
  color: var(--color-muted);
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

/* Benefits */
.benefits__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.benefit-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.benefit-card:hover {
  border-color: rgba(146, 186, 36, 0.5);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.benefit-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(146, 186, 36, 0.2), rgba(4, 120, 87, 0.15));
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.benefit-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
}

.benefit-card__text {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* Trust */
.trust {
  background: linear-gradient(120deg, var(--color-accent) 0%, #065f46 50%, var(--color-brand) 120%);
  color: #fff;
  padding: 4rem 1.5rem;
  text-align: center;
}

.trust__inner {
  max-width: 760px;
}

.trust__label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.9;
  margin: 0 0 0.75rem;
}

.trust__title {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 3.5vw, 2rem);
  font-weight: 800;
  line-height: 1.25;
}

.trust__text {
  margin: 0 0 1.75rem;
  opacity: 0.95;
  font-size: 1.05rem;
}

.trust__cta {
  margin-top: 0.5rem;
}

/* Programs (макет: калькулятор, чипы, календарь, КБЖУ, карточки, чекаут) */
.programs {
  background: var(--color-surface);
  padding: 3rem 0 4rem;
}

.programs__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2rem;
}

.programs__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--color-text);
}

.programs__intro {
  margin: 0 0 1.25rem;
  color: var(--color-muted);
  font-size: 1.02rem;
  line-height: 1.55;
}

.programs__auto {
  display: inline-block;
  text-align: left;
  max-width: 100%;
}

.programs__auto-btn {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  background: var(--color-brand);
  color: #0f172a;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid var(--color-brand);
  font-family: inherit;
}

.programs__auto-btn::after {
  content: "▾";
  font-size: 0.7rem;
  opacity: 0.85;
}

.programs__auto-btn::-webkit-details-marker {
  display: none;
}

.programs__auto[open] .programs__auto-btn {
  background: #a8cf3a;
}

.programs__auto-panel {
  margin-top: 0.75rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  background: #f1f5f9;
  border: 1px solid var(--color-border);
  font-size: 0.92rem;
  color: var(--color-muted);
  max-width: 420px;
}

.programs__auto-panel p {
  margin: 0;
}

.calc-box {
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  padding: 1.5rem 1.5rem 1.25rem;
  margin-bottom: 1.5rem;
  background: #fafafa;
}

.calc-form--programs .calc-form__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem 1.25rem;
}

@media (max-width: 900px) {
  .calc-form--programs .calc-form__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .calc-form--programs .calc-form__grid {
    grid-template-columns: 1fr;
  }
}

.calc-form--programs .calc-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-muted);
}

.calc-form--programs .calc-form__field span {
  color: var(--color-text);
}

.calc-form--programs select,
.calc-form--programs input {
  padding: 0.6rem 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--color-surface);
  transition: border-color var(--transition);
}

.calc-form--programs select:focus,
.calc-form--programs input:focus {
  outline: none;
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px rgba(146, 186, 36, 0.2);
}

.calc-box__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 1.25rem;
}

.calc-box__reset {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-muted);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.calc-box__reset:hover {
  color: var(--color-accent);
}

.calc-box__result {
  margin: 1rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
  font-size: 1rem;
  color: var(--color-text);
}

.calc-box__result strong {
  color: var(--color-accent);
  font-size: 1.1rem;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  margin-bottom: 1rem;
  justify-content: center;
}

.chip-row--diet {
  margin-bottom: 1.75rem;
}

.chip {
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 2px solid var(--color-border);
  background: var(--color-surface);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-text);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), color var(--transition), box-shadow var(--transition);
}

.chip:hover {
  border-color: rgba(146, 186, 36, 0.65);
}

.chip.is-active {
  border-color: var(--color-brand);
  background: rgba(146, 186, 36, 0.18);
  color: #0f172a;
}

.chip--suggest {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px rgba(4, 120, 87, 0.35);
}

.chip--alt {
  border-color: #e11d48;
  color: #9f1239;
}

.chip--diet {
  font-weight: 600;
}

.calendar-wrap {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
}

.calendar-nav {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-accent);
  transition: background var(--transition), border-color var(--transition);
}

.calendar-nav:hover {
  background: rgba(146, 186, 36, 0.15);
  border-color: var(--color-brand);
}

.calendar-strip {
  flex: 1;
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0.35rem 0.15rem 0.65rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.calendar-strip::-webkit-scrollbar {
  height: 6px;
}

.calendar-strip::-webkit-scrollbar-thumb {
  background: rgba(4, 120, 87, 0.3);
  border-radius: 4px;
}

.calendar-day {
  flex: 0 0 auto;
  min-width: 56px;
  padding: 0.5rem 0.45rem;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
  background: #f8fafc;
  font-family: inherit;
  cursor: pointer;
  scroll-snap-align: start;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  color: var(--color-text);
}

.calendar-day__num {
  font-weight: 800;
  font-size: 1rem;
}

.calendar-day__wd {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-muted);
  text-transform: uppercase;
}

.calendar-day:hover {
  border-color: var(--color-brand);
  transform: translateY(-2px);
}

.calendar-day.is-active {
  background: linear-gradient(145deg, var(--color-brand), #7aa31e);
  border-color: var(--color-brand-dark);
  color: #0f172a;
}

.calendar-day.is-active .calendar-day__wd {
  color: rgba(15, 23, 42, 0.75);
}

.programs__layout {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 300px);
  gap: 1.75rem;
  align-items: start;
}

@media (max-width: 960px) {
  .programs__layout {
    grid-template-columns: 1fr;
  }
}

.macros-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  margin-bottom: 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: #f1f5f9;
  border: 1px solid var(--color-border);
}

@media (max-width: 600px) {
  .macros-bar {
    grid-template-columns: repeat(2, 1fr);
  }
}

.macros-bar__cell {
  text-align: center;
}

.macros-bar__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-muted);
  margin-bottom: 0.25rem;
}

.macros-bar__value {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-text);
}

.meal-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.meal-card {
  border: 1px solid var(--color-border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}

.meal-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.meal-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--color-border);
  background: #fafafa;
}

.meal-card__type {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-accent);
}

.meal-card__kcal {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-muted);
}

.meal-card__photo {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(145deg, #1e293b, #0f172a);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.meal-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.meal-card__placeholder {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  padding: 0 0.75rem;
  line-height: 1.35;
}

.meal-card__logo {
  position: absolute;
  right: 0.5rem;
  bottom: 0.45rem;
  font-size: 0.65rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.85);
}

.meal-card__logo span {
  color: var(--color-brand);
}

#order-form.order--checkout {
  scroll-margin-top: 5.5rem;
}

.order-cart-summary {
  margin-bottom: 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

.order-cart-summary__title {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text);
}

.order-cart-summary__list {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--color-muted);
}

.order-cart-summary__note {
  margin: 0.65rem 0 0;
  font-size: 0.9rem;
  color: var(--color-text);
}

.meal-card__desc {
  margin: 0;
  padding: 0.85rem 0.9rem 1rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--color-text);
}

.checkout-sidebar {
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 1.25rem 1.25rem 1.35rem;
  background: #fafafa;
  position: sticky;
  top: 5.5rem;
}

@media (max-width: 960px) {
  .checkout-sidebar {
    position: static;
  }
}

.checkout-sidebar__title {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-text);
}

.duration-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.duration-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 2px solid var(--color-border);
  background: var(--color-surface);
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.duration-card:hover {
  border-color: rgba(146, 186, 36, 0.55);
}

.duration-card.is-selected {
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px rgba(146, 186, 36, 0.2);
}

.duration-card__title {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.duration-card__badge {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(146, 186, 36, 0.35);
  color: #14532d;
}

.duration-card__price {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--color-accent);
  white-space: nowrap;
}

.checkout-summary {
  padding-top: 0.5rem;
  border-top: 1px dashed var(--color-border);
  margin-bottom: 0.25rem;
}

.checkout-summary__line {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
  color: var(--color-muted);
}

.checkout-summary__total {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
}

.checkout-summary__total strong {
  color: var(--color-accent);
  font-size: 1.2rem;
}

#btn-add-cart {
  margin-top: 0.65rem;
}

.checkout-sidebar__order {
  margin-top: 0.65rem;
}

.card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

/* Forms */
.callback-form {
  background: var(--color-surface);
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.callback-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text);
}

.callback-form input,
.callback-form textarea {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  font-family: inherit;
  font-size: 1rem;
}

.callback-form input:focus,
.callback-form textarea:focus {
  outline: none;
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px rgba(146, 186, 36, 0.2);
}

.callback-form .btn {
  width: 100%;
}

.form-status {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  min-height: 1.4em;
}

.form-status.success {
  color: var(--color-accent);
}

.form-status.error {
  color: #b91c1c;
}

.ffp-address-wrap {
  position: relative;
}

.ffp-address-suggestions {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 2px;
  max-height: 220px;
  overflow-y: auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.ffp-address-suggestions__item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.5rem 0.75rem;
  border: none;
  background: transparent;
  font: inherit;
  cursor: pointer;
  color: inherit;
}

.ffp-address-suggestions__item:hover,
.ffp-address-suggestions__item:focus-visible {
  background: rgba(146, 186, 36, 0.12);
}

.checkout-delivery-hint {
  color: var(--color-muted);
}

.checkout-delivery-hint--warn {
  color: #b45309;
}

/* Portfolio */
.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
}

.portfolio-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}

.portfolio-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.portfolio-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e2e8f0;
}

.portfolio-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-card__media img {
  transform: scale(1.05);
}

.portfolio-card__media--video {
  aspect-ratio: 16 / 10;
  position: relative;
  display: block;
}

.portfolio-card__video-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-card__video-link img {
  transform: scale(1.05);
}

.portfolio-card__play {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(4, 120, 87, 0.85);
  color: #fff;
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: background var(--transition), transform var(--transition);
}

.portfolio-card__video-link:hover .portfolio-card__play {
  background: var(--color-brand);
  color: #0f172a;
  transform: translate(-50%, -50%) scale(1.06);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.portfolio-card__body {
  padding: 1.35rem 1.5rem 1.5rem;
}

.portfolio-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.portfolio-card__text {
  margin: 0 0 0.75rem;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.portfolio-card__link {
  font-weight: 700;
  color: var(--color-accent);
}

.portfolio-card__note {
  display: block;
  font-size: 0.8rem;
  color: var(--color-muted);
  font-style: italic;
}

/* Footer */
.footer {
  background: linear-gradient(180deg, #064e3b 0%, #022c22 100%);
  color: #ecfdf5;
  padding: 3.5rem 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.footer__about {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  opacity: 0.9;
  line-height: 1.55;
}

.footer__heading {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-brand);
}

.footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__links li {
  margin-bottom: 0.4rem;
}

.footer a {
  color: #ecfdf5;
  opacity: 0.9;
}

.footer a:hover {
  color: var(--color-brand);
  opacity: 1;
}

.footer__contacts p {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
}

.footer__hours {
  opacity: 0.85;
  font-size: 0.85rem !important;
  margin-top: 0.75rem !important;
}

.footer__social-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer__social-list a {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  background: rgba(146, 186, 36, 0.15);
  border: 1px solid rgba(146, 186, 36, 0.35);
  font-weight: 600;
  font-size: 0.9rem;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem 0;
}

.footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  opacity: 0.85;
}

.footer__legal {
  margin: 0;
  max-width: 420px;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile nav */
@media (max-width: 900px) {
  .nav {
    margin-left: 0;
  }

  .nav__toggle {
    display: block;
  }

  .nav__list {
    display: none;
    width: 100%;
    flex-direction: column;
    padding: 1rem 0;
  }

  .nav__list.is-open {
    display: flex;
  }

  .header__cta {
    margin-left: auto;
  }
}

@media (max-width: 480px) {
  .header__inner {
    justify-content: flex-start;
  }

  .nav {
    order: 3;
    width: 100%;
  }
}
