/* These styles are generated from project.scss. */

:root {
  --font-primary: "Montserrat", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@font-face {
  font-family: "Montserrat";
  src: url("/static/fonts/Montserrat-Regular.203d753a8055.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("/static/fonts/Montserrat-Italic.ba6062606d5a.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("/static/fonts/Montserrat-Light.5cbf5cdcf7ec.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("/static/fonts/Montserrat-Bold.c300fff4e4ae.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("/static/fonts/Montserrat-ExtraBold.8a50619755ab.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("/static/fonts/Montserrat-ExtraBoldItalic.1e928a19babc.ttf") format("truetype");
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}

:root {
  --bn-btn-radius: 60px;
  --bn-btn-bg: #1f2a37;
  --bn-btn-text: #f6f7f9;
  --bn-btn-bg-hover: #eceef2;
  --bn-btn-bg-active: #e1e4eb;
  --bn-btn-border: #d6d9e0;
  --bn-btn-shadow: 0 8px 20px rgba(24, 39, 75, 0.08);
  --bn-btn-shadow-hover: 0 10px 24px rgba(24, 39, 75, 0.1);
  --bn-btn-accent-bg: linear-gradient(135deg, #5b8dff 0%, #6ed6ff 100%);
  --bn-btn-accent-bg-hover: linear-gradient(135deg, #4f7ef3 0%, #63c9f1 100%);
  --bn-btn-accent-bg-active: linear-gradient(135deg, #3f6ddc 0%, #55b9e5 100%);
  --bn-btn-accent-text: #0c1a2b;
  --bn-btn-accent-border: rgba(79, 126, 239, 0.8);
  --bn-btn-secondary-bg: #fdf2da;
  --bn-btn-secondary-border: #f5cf77;
  --bn-btn-secondary-text: #5f3b06;
  --bn-btn-danger-bg: #ffe6e6;
  --bn-btn-danger-border: #ff8a8a;
  --bn-btn-danger-text: #7b1212;
  --bg-main: #F0EBE1;
  --bg-light: #FFFBF2;
  --primary-red: #EE6352;
}

* {
  box-sizing: border-box;
  scrollbar-width: thin;
  font-family: "Montserrat", sans-serif;
}

body {
  background: var(--bg-main);
  padding: 10px 20px;
}
a {
  transition: color 0.15s ease;
}

a:hover {
  text-decoration: none;
  color: var(--primary-red);
}

.btn-dark:hover,
.btn-dark:focus-visible {
  border-color: var(--primary-red);
  color: var(--bn-btn-accent-text);
}

.bg-light {
  border: 1px solid rgb(103, 83, 58);
  border-radius: 14px;
}

/* Unified neutral button look (buttons, links, divs acting as buttons) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.38rem 1.3rem;
  min-height: 40px;
  border-radius: var(--bn-btn-radius);
  background: var(--bn-btn-bg);
  color: var(--bn-btn-text);
  font-weight: 400;
  letter-spacing: 0.01em;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: var(--bn-btn-shadow);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease, filter 0.15s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover,
.btn:focus-visible {
  background: var(--bn-btn-bg-hover);
  box-shadow: var(--bn-btn-shadow-hover);
  transform: translateY(-1px);
  filter: brightness(1.01);
  text-decoration: none;
}

.btn:active {
  background: var(--bn-btn-bg-active);
  box-shadow: 0 6px 16px rgba(24, 39, 75, 0.1);
  transform: translateY(0);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* Accent / primary */
.btn-accent,
.btn-primary {
  background: var(--bn-btn-accent-bg);
  border-color: var(--bn-btn-accent-border);
  color: var(--bn-btn-accent-text);
}

.btn-accent:hover,
.btn-primary:hover,
.btn-accent:focus-visible,
.btn-primary:focus-visible {
  background: var(--bn-btn-accent-bg-hover);
  box-shadow: 0 10px 24px rgba(79, 126, 239, 0.25);
}

.btn-accent:active,
.btn-primary:active {
  background: var(--bn-btn-accent-bg-active);
  box-shadow: 0 6px 16px rgba(79, 126, 239, 0.25);
}

/* Secondary / warm accent */
.btn-secondary {
  background: var(--bn-btn-secondary-bg);
  border-color: var(--bn-btn-secondary-border);
  color: var(--bn-btn-secondary-text);
  box-shadow: none;
}

.btn-secondary:hover {
  background: #f9e5b4;
  box-shadow: 0 8px 18px rgba(245, 207, 119, 0.35);
}

/* Danger */
.btn-danger {
  background: var(--bn-btn-danger-bg);
  border-color: var(--bn-btn-danger-border);
  color: var(--bn-btn-danger-text);
  box-shadow: none;
}

.btn-danger:hover {
  background: #ffd1d1;
  box-shadow: 0 8px 18px rgba(255, 138, 138, 0.35);
}

/* Ghost */
.btn-outline-primary {
  background: transparent;
  color: #1f3a60;
  border: 1px solid rgba(79, 126, 239, 0.35);
  box-shadow: none;
}

.btn-outline-primary:hover {
  background: rgba(79, 126, 239, 0.08);
  box-shadow: 0 8px 18px rgba(79, 126, 239, 0.12);
}

/* Link */
.btn-link {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  color: #770417;
  padding: 0.35rem 0.5rem;
  min-height: auto;
}

.btn-link:hover {
  background: rgba(79, 126, 239, 0.08);
  text-decoration: none;
}

/* Compact size helper */
.btn-sm {
  padding: 0.4rem 0.75rem;
  min-height: 34px;
  font-weight: 600;
}

.btn .btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
}

.btn .btn-icon svg {
  width: 100%;
  height: 100%;
}

/* User page */
.user-page {
  max-width: 960px;
}

.user-card {
  background: transparent;
  border-radius: 16px;
  padding: 12px 0;
  box-shadow: none;
  border: none;
}

.user-card__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #5b8dff, #6ed6ff);
  color: #0c1a2b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  text-transform: uppercase;
}

.user-card__eyebrow {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: #6b7280;
  text-transform: uppercase;
}

.user-card__name {
  margin: 0;
  font-weight: 700;
  font-size: 1.4rem;
  color: #111827;
}

.user-nav {
  display: grid;
  gap: 12px;
  margin-top: 6px;
}

.user-nav__group {
  background: transparent;
  border-radius: 12px;
  padding: 0;
  border: none;
}

.user-nav__title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #111827;
  margin-bottom: 8px;
}

.user-nav__links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.user-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: none;
  background: transparent;
  color: #111827;
  font-weight: 650;
  text-decoration: none;
  transition: background 0.1s ease, transform 0.08s ease;
  box-shadow: none;
}

.user-nav__link:hover,
.user-nav__link:focus-visible {
  background: #f1f2f4;
  transform: translateY(-1px);
}

.user-nav__link:active {
  background: #e9eaed;
  transform: translateY(0);
}

.user-nav__link.is-primary {
  background: var(--bg-light);
  color: #0f172a;
}

.user-nav__link.is-primary:hover,
.user-nav__link.is-primary:focus-visible {
  background: #e4e6eb;
}

.user-nav__link.is-ghost {
  background: transparent;
  border: none;
}

.user-nav__icon {
  font-size: 1rem;
  line-height: 1;
}

.small-link {
  font-size: 0.9rem;
}

@media (max-width: 576px) {
  .user-nav__links {
    flex-direction: column;
    align-items: stretch;
  }
}

.recipe-card .card-text {
  font-size: 0.95rem;
  line-height: 1.4;
  max-height: calc(1.4em * 3); /* три строки */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  margin-bottom: 0.4rem;
}

.recipe-card .card-title {
  line-height: 1.25;
  min-height: calc(1.25em * 2); /* две строки */
  max-height: calc(1.25em * 2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* New recipe cards */
.recipe-card {
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  overflow: hidden;
  height: 100%;
  background: var(--bg-light);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.recipe-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(65, 48, 31, 0.12);
  text-decoration: none;
}

.recipe-card__image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.recipe-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.recipe-card__body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #2d2925;
  max-height: 100%;
}

.recipe-card__title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
  height: 45px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recipe-card__desc {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #909090;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recipe-card__footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.recipe-card__footer .recipe-card__cta {
  margin-left: auto;
}

.recipe-card__meta {
  /* display: flex; */
  /* flex-wrap: wrap; */
  /* gap: 10px; */
  font-size: 0.95rem;
  color: #4b463f;
}

.recipe-card__meta .meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.85rem;
}

.recipe-card__cta {
  padding: 10px 14px;
  border: 1px solid #2d2925;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #2d2925;
  transition: background 0.12s ease, color 0.12s ease;
  white-space: nowrap;
}

recipe-card-info {
  background: var(--bg-light);
}

.recipe-card:hover .recipe-card__cta {
  background: #2d2925;
  color: #f4efe6;
}

/* Filters as sidebar with collapsible blocks */
.recipe-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
}

@media (max-width: 992px) {
  .recipe-layout {
    grid-template-columns: 1fr;
    position: relative;
  }

  /* На планшетах фильтры сверху — даём фон и контекст для карточек, чтобы не налезали */
  .recipe-layout .filters-sidebar {
    z-index: 2;
    position: relative;
  }

  .recipe-layout .recipe-list {
    position: relative;
    z-index: 1;
    margin-top: 12px;
  }

  .recipe-layout .recipe-card {
    position: relative;
    z-index: 1;
  }
}

.filters-sidebar {
  position: sticky;
  top: 16px;
  align-self: start;
}

.recipe-filters {
  border-radius: 14px;
  background: var(--bg-light);
  padding: 12px 8px 8px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

.recipe-filters details > details {
  border-radius: 10px;
  padding: 8px 10px;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  margin: 10px;
}

.recipe-filters details summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.recipe-filters details summary::-webkit-details-marker {
  display: none;
}

.recipe-filters > details > summary::after {
  content: "+";
  font-weight: 700;
}

.recipe-filters > details.open > summary::after {
  content: "−";
  font-weight: 700;
}

.filter-top {
  display: flex;
  justify-content: flex-end;
  padding: 0 6px 6px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 4px 0;
}

.filter-label {
  font-weight: 700;
  font-size: 0.95rem;
}

.filter-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px 12px;
}

.filter-options .form-check-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  cursor: pointer;
}

.filter-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 4px 8px;
  flex-wrap: wrap;
  justify-content: center;
}

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

.selected-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  background: #e8ecf4;
  border-radius: 12px;
  padding: 6px 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #2d2925;
}

.ingredients-list {
  max-height: 320px;
  overflow: auto;
  padding-right: 4px;
  border: 1px solid #ececec;
  border-radius: 10px;
  background: #fff;
}

.ingredients-list .filter-options {
  grid-template-columns: 1fr;
  padding: 8px 8px 10px;
}

.ingredients-accordion {
  margin-top: 8px;
}

.ingredient-accordion-item {
  border: 1px solid #e2e2e2;
  border-radius: 12px;
  margin-bottom: 8px;
  overflow: hidden;
  background: #fff;
}

.ingredient-accordion-item summary {
  cursor: pointer;
  font-weight: 700;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
}

.ingredient-accordion-item summary::-webkit-details-marker {
  display: none;
}

.ingredient-accordion-item summary::after {
  content: "+";
  font-weight: 700;
}

.ingredient-accordion-item.open summary::after {
  content: "−";
}

.ingredients-search {
  margin-bottom: 8px;
}

.filter-reset {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 10px;
  border: 1px solid #d6d9e0;
  background: #fff;
  color: #1f2937;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.12s ease, color 0.12s ease, box-shadow 0.12s ease;
}

.filter-reset:hover {
  background: #f3f4f6;
  box-shadow: 0 6px 14px rgba(17, 24, 39, 0.08);
}

.recipe-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f1f2f4;
  color: #4b5563;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
}

.recipes-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.recipes-title {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid #d6d9e0;
  background: #fff;
  font-weight: 700;
  color: #111827;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.filter-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 34px rgba(0,0,0,0.08);
  background: #f7f7f9;
}

.filter-toggle__icon {
  font-size: 1.1rem;
}

.filters-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 1040;
}

.filters-drawer {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: min(420px, 100%);
  background: #fff;
  z-index: 1050;
  box-shadow: 12px 0 36px rgba(0,0,0,0.16);
  display: flex;
  flex-direction: column;
  border-radius: 0 14px 14px 0;
}

.filters-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid #eceff3;
  font-weight: 800;
  font-size: 1.05rem;
}

.filters-close {
  border: none;
  background: transparent;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 6px 10px;
}

.filters-drawer__scroll {
  padding: 8px 12px 16px;
  overflow-y: auto;
  flex: 1;
}

body.filters-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .filters-drawer {
    width: 100%;
    border-radius: 0;
  }
}

.alert-debug {
  color: black;
  background-color: white;
  border-color: #d6e9c6;
}

.alert-error {
  color: #b94a48;
  background-color: #f2dede;
  border-color: #eed3d7;
}

.site-header {
    border-bottom: 1px solid #eee;
    margin-bottom: 24px;
}

.site-header-inner,
.site-footer-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    font-weight: 700;
    text-decoration: none;
    color: inherit;
}

.site-nav a {
    margin-left: 16px;
    text-decoration: none;
    color: inherit;
    font-size: 0.95rem;
}

.site-main {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 16px 40px;
}

.site-footer {
    border-top: 1px solid #eee;
    margin-top: 40px;
    font-size: 0.85rem;
    opacity: 0.7;
}



/* --- Duplicate add confirm modal (shopping cart) --- */
.dup-add-overlay[hidden],
.dup-add-modal[hidden] {
  display: none !important;
}

.dup-add-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
  z-index: 1000;
}

.dup-add-modal {
  position: fixed;
  left: 50%;
  top: 18vh;
  transform: translateX(-50%);
  width: min(520px, calc(100% - 32px));
  background: var(--bg-light);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  z-index: 1001;
  padding: 16px 16px 14px;
}

.dup-add-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.dup-add-modal-title {
  font-size: 18px;
  line-height: 1.25;
}

.dup-add-modal-close {
  appearance: none;
  border: 0;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 10px;
  cursor: pointer;
}

.dup-add-modal-close:hover {
  background: rgba(0, 0, 0, 0.06);
}

.dup-add-modal-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
}


.dup-add-suppress {
  font-size: 14px;
  line-height: 1.35;
  color: #333;
}

.dup-add-suppress-input {
  width: 16px;
  height: 16px;
}

.dup-add-modal-actions {
  margin-top: 14px;
}

/* Make modal buttons a bit calmer on small screens */
@media (max-width: 420px) {
  .dup-add-modal {
    top: 12vh;
    padding: 14px 14px 12px;
  }

  .dup-add-modal-title {
    font-size: 16px;
  }
}

/* Blog post detail */
.blog-post {
  padding: 0 16px;
}

.blog-post__hero {
  max-width: 1440px;
  margin: 0 auto 18px;
}

.blog-post__hero img {
  width: 100%;
  display: block;
  border-radius: 24px;
  object-fit: cover;
  max-height: 560px;
}

.blog-post__body {
  max-width: 650px;
  margin: 0 auto;
}

.blog-post__title {
  margin: 0 0 8px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: #111827;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
}

.blog-post__meta {
  margin: 0 0 18px;
  color: #6b7280;
  font-size: 0.95rem;
}

.blog-post__content {
  color: #1f2937;
  font-size: 1.02rem;
  line-height: 1.75;
}

.blog-post__content > :first-child {
  margin-top: 0;
}

.blog-post__content p {
  margin: 0 0 1rem;
}

.blog-post__content h2,
.blog-post__content h3,
.blog-post__content h4 {
  margin: 1.6rem 0 0.75rem;
  line-height: 1.25;
  color: #111827;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.blog-post__content h2 {
  font-size: 1.35rem;
}

.blog-post__content h3 {
  font-size: 1.18rem;
}

.blog-post__content h4 {
  font-size: 1.05rem;
}

.blog-post__content a {
  color: #1f3a60;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.blog-post__content a:hover {
  color: #0f2f57;
}

.blog-post__content ul,
.blog-post__content ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.blog-post__content li {
  margin: 0.25rem 0;
}

.blog-post__content blockquote {
  margin: 1.2rem 0;
  padding: 0.75rem 1rem;
  border-left: 4px solid #d6d9e0;
  background: #fafafa;
  border-radius: 12px;
  color: #374151;
}

.blog-post__content img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  margin: 16px 0;
}

.blog-post__content hr {
  margin: 1.5rem 0;
  border: 0;
  border-top: 1px solid #e5e7eb;
}

.blog-post__content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.98rem;
}

.blog-post__content th,
.blog-post__content td {
  border: 1px solid #e5e7eb;
  padding: 8px 10px;
  vertical-align: top;
}

.blog-post__content th {
  background: #f7f7f9;
  font-weight: 700;
}

/* Site footer */
.site-footer {
  margin-top: 48px;
  padding: 18px 0;
  border-top: 1px solid #e5e7eb;
  color: #6b7280;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  min-height: 28px;
}

.site-footer__text {
  font-size: 0.9rem;
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.site-footer__col--end {
  text-align: right;
  align-items: flex-end;
}

/* Layout: keep footer at bottom without extra scroll */
html,
body {
  min-height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

.page-shell {
  flex: 1 0 auto;
}

.site-footer {
  flex-shrink: 0;
}
/* Featured recipes banner (1 big + 3 small) */
.featured-recipes{
  display:grid;
  grid-template-columns: 2fr 1fr;
  gap:24px;
  align-items:stretch;
  margin: 18px 0 28px;
}

.featured-big,
.featured-small{
  display:block;
  text-decoration:none;
  color:inherit;
  border-radius:22px;
  overflow:hidden;
  background: var(--bg-light);
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.featured-big{ position:relative; min-height:420px; max-height: 595px;}
.featured-side{ display:flex; flex-direction:column; gap:18px; }

.featured-small{
  display:grid;
  grid-template-columns: 160px 1fr;
  min-height:120px;
}

.featured-img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.featured-overlay{
  position:absolute;
  left:0; right:0; bottom:0;
  padding:26px;
  color:#fff;
  background: linear-gradient(180deg, rgba(0,0,0,0) 10%, rgba(0,0,0,.70) 100%);
}

.featured-badge{
  display:inline-block;
  font-size:14px;
  opacity:.92;
  margin-bottom:10px;
}

.featured-title{
  font-size:38px;
  line-height:1.08;
  font-weight:800;
  max-width: 90%;
}

.featured-meta{
  margin-top:12px;
  font-size:16px;
  opacity:.9;
}

.featured-small-body{
  padding:16px 16px 16px 18px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:10px;
}

.featured-small-title{
  font-size:22px;
  line-height:1.15;
  font-weight:800;
}

@media (max-width: 980px){
  .featured-recipes{ grid-template-columns:1fr; }
  .featured-big{ min-height:360px; }
  .featured-small{ grid-template-columns: 140px 1fr; }
}
.bn-consent-banner{
    position:fixed; left:16px; right:16px; bottom:16px; z-index:9999;
    background:rgba(255,255,255,.96);
    border:1px solid rgba(0,0,0,.10);
    border-radius:16px;
    box-shadow:0 18px 48px rgba(0,0,0,.14);
    padding:14px;
    display:none;
  }
  .bn-consent-row{display:flex;gap:14px;flex-wrap:wrap;align-items:center;justify-content:space-between;}
  .bn-consent-text{font-size:14px;line-height:1.35;color:rgba(0,0,0,.8);max-width:860px;}
  .bn-consent-actions{display:flex;gap:10px;flex-wrap:wrap;}
  .bn-btn{
    border-radius:999px;padding:10px 14px;border:1px solid rgba(0,0,0,.14);
    background:#fff;cursor:pointer;font-weight:600;font-size:14px;
  }
  .bn-btn--primary{background:#111;color:#fff;border-color:#111;}
  .bn-btn--ghost{background:transparent;}

  .bn-modal-overlay{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:10000;display:none;}
  .bn-modal{
    position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);
    width:min(560px,calc(100% - 32px));
    background:#fff;border-radius:18px;border:1px solid rgba(0,0,0,.10);
    box-shadow:0 18px 60px rgba(0,0,0,.25);
    z-index:10001;display:none;padding:16px;
  }
  .bn-modal h3{margin:0 0 10px;}
  .bn-opt{display:flex;gap:10px;align-items:flex-start;padding:10px 0;border-top:1px solid rgba(0,0,0,.08);}
  .bn-opt:first-of-type{border-top:0;}
  .bn-opt small{display:block;opacity:.75;margin-top:3px;}
  .bn-modal-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:14px;flex-wrap:wrap;}
