/* Блок «Виды мяса» — в стиле основного лендинга */
.section.section-production {
  padding-top: 4rem;
  padding-bottom: 8rem;
  background: #000000;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-production .section-title {
  margin-bottom: 2.5rem;
}

.production-shell {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Сетка вкладок как у блока команды: flex-wrap, перенос на следующий ряд */
.production-tabs-wrap {
  width: 100%;
  overflow: visible;
}

.production-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 1rem 1.25rem;
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.production-tabs li {
  flex: 0 1 auto;
  display: flex;
  justify-content: center;
}

.production-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.35rem;
  min-height: 3rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-accent);
  color: var(--text-muted);
  font-family: var(--f-sans);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.25;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease,
    box-shadow 0.25s ease;
  white-space: normal;
  text-align: center;
  max-width: 14rem;
}

.production-tab:hover {
  color: var(--text);
  border-color: rgba(255, 78, 0, 0.45);
}

.production-tab.is-active {
  color: #fff;
  background: rgba(255, 78, 0, 0.18);
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(255, 78, 0, 0.15);
}

.production-main {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 2.5rem;
  align-items: start;
}

.production-visuals {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg);
  aspect-ratio: 4 / 3;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
}

.production-visual {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  pointer-events: none;
  cursor: zoom-in;
}

.production-visual.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
  pointer-events: auto;
}

.production-visual__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  filter: blur(12px);
  transform: scale(1.02);
  transition: opacity 0.5s ease, filter 0.6s ease, transform 0.7s ease;
  will-change: opacity, filter, transform;
}

.production-visual__img.is-loaded {
  opacity: 1;
  filter: blur(0);
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .production-visual__img {
    transition: none;
  }
}

.production-panel {
  padding: 0.25rem 0;
}

.production-panel[hidden] {
  display: none !important;
}

.production-panel__title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  margin: 0 0 1rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.production-panel__composition {
  font-size: 1rem;
  color: var(--accent);
  margin: 0 0 1.25rem;
  line-height: 1.5;
}

.production-panel__label {
  font-weight: 600;
  color: var(--text-muted);
  margin-right: 0.25rem;
}

.production-panel__body {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.65;
  margin: 0 0 1.25rem;
}

.production-panel__nutrition {
  font-family: var(--f-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

@media (max-width: 888px) {
  .section.section-production {
    padding-top: 2.75rem;
    padding-bottom: 5rem;
  }
}

@media (max-width: 900px) {
  .production-main {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .production-visuals {
    aspect-ratio: 16 / 10;
    max-height: 40vh;
  }

  .production-tabs {
    gap: 0.75rem 0.65rem;
  }

  .production-tab {
    font-size: 0.74rem;
    padding: 0.7rem 1rem;
    min-height: 2.75rem;
  }
}

/* Планшет и узкий десктоп: сетка с равными ячейками вместо «рваного» flex-wrap */
@media (max-width: 1024px) {
  .production-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.65rem 0.6rem;
    justify-content: stretch;
  }

  .production-tabs li {
    display: block;
    min-width: 0;
  }

  .production-tab {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    min-height: 2.85rem;
  }
}

/* Телефон: строго 2 колонки на всю ширину */
@media (max-width: 768px) {
  .production-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 0.5rem;
    row-gap: 0.6rem;
  }

  .production-tab {
    min-height: 2.85rem;
    padding: 0.65rem 0.5rem;
    font-size: 0.68rem;
    letter-spacing: 0.04em;
  }
}
