.ingredients-section {
  height: 1134px;
  background: var(--color-background-primary);
}

.ingredients-section .page-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.ingredients-grid {
  display: grid;
  height: 694px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}

.ingredients-image-card {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: var(--space-5);
  border-radius: var(--radius-card);
  background: var(--color-background-tertiary);
  box-shadow: var(--shadow-card);
  grid-column: span 2;
}

.ingredients-image-card img {
  width: 448px;
  height: 448px;
  border-radius: var(--radius-image);
  mix-blend-mode: multiply;
  object-fit: cover;
}

.ingredients-list {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-4);
}

.ingredient-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
  padding: 32px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-background-secondary);
}

.ingredient-card h3 {
  font-size: var(--font-size-heading-sm);
  font-weight: 500;
  line-height: var(--line-height-heading-sm);
}

.ingredient-card p {
  color: var(--color-text-secondary);
  font-size: var(--font-size-md);
  line-height: var(--line-height-md);
}

@media (max-width: 1023px) {
  .ingredients-section {
    height: auto;
  }

  .ingredients-grid {
    height: auto;
  }

  .ingredients-image-card img {
    width: min(100%, 448px);
    height: auto;
    aspect-ratio: 1;
  }

  .ingredient-card {
    padding: var(--space-4);
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .ingredients-grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .ingredients-image-card {
    min-height: 420px;
    grid-column: auto;
  }

  .ingredients-list {
    flex-direction: row;
    align-items: stretch;
  }

  .ingredient-card {
    width: calc((100% - 48px) / 3);
    flex: 1 1 0;
  }
}

@media (max-width: 767px) {
  .ingredients-section .page-container {
    gap: var(--space-7);
  }

  .ingredients-section .section-description br {
    display: none;
  }

  .ingredients-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
  }

  .ingredients-image-card {
    min-height: 320px;
    padding: var(--space-4);
  }

  .ingredients-image-card img {
    width: 272px;
    height: 272px;
  }

  .ingredients-list {
    flex-direction: column;
    gap: var(--space-5);
  }

  .ingredient-card {
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-4);
    text-align: center;
  }

  .ingredient-card h3 {
    font-size: 28px;
    line-height: 36px;
  }
}
