.production {
  padding: 70px 0;
  background: var(--white);
  color: var(--text);
}

.production-header {
  max-width: 70ch;
  margin-bottom: 22px;
}

.production-header h2 {
  margin: 0;
  font-size: 40px;
  font-weight: 400;
  line-height: 1.15;
}

.production-header p {
  margin: 12px 0 0;
  line-height: 1.6;
  color: #334155;
}

.production-map-wrapper {
  margin: 0 0 26px 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
  background: #f8fafc;
}

.production-map-progress {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.95);
  padding: 20px 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 10;
  transition: opacity 300ms ease, visibility 300ms ease;
}

.production-map-progress.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.production-map-progress-bar {
  width: 200px;
  height: 4px;
  background: rgba(15, 23, 42, 0.1);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 12px;
}

.production-map-progress-bar::after {
  content: '';
  display: block;
  width: var(--progress-width, 0%);
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 200ms ease;
}

.production-map-progress-text {
  font-size: 14px;
  color: var(--muted);
}

.production-map-viewport {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
  background: #f5f5f5;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.production-map-viewport:active {
  cursor: grabbing;
}

.production-map-mode-status {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.95);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 5;
  pointer-events: none;
}

.production-map-viewport:active {
  cursor: grabbing;
}

.production-map-image {
  position: absolute;
  top: 50%;
  left: 50%;
  max-width: none;
  transform: translate(-50%, -50%) scale(0.07);
  transform-origin: center center;
  transition: transform 200ms ease-out;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.production-map-zoom-in,
.production-map-zoom-out,
.production-map-reset {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: none;
  background: var(--accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  z-index: 5;
  transition: background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.production-map-zoom-in:hover,
.production-map-zoom-out:hover,
.production-map-reset:hover {
  background: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.production-map-zoom-in:active,
.production-map-zoom-out:active,
.production-map-reset:active {
  transform: translateY(0);
}

.production-map-zoom-in {
  bottom: 64px;
  right: 16px;
}

.production-map-zoom-out {
  bottom: 16px;
  right: 16px;
}

.production-map-reset {
  bottom: 16px;
  left: 16px;
}

.production-map-zoom-mode {
  position: absolute;
  bottom: 16px;
  left: 64px;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  z-index: 5;
  transition: background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

.production-map-zoom-mode:hover {
  background: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.production-map-zoom-mode:active {
  transform: translateY(0);
}

.production-map-zoom-mode.is-wheel-mode {
  background: var(--accent);
  color: #fff;
}

.production-map-zoom-mode.is-wheel-mode img {
  filter: brightness(0) invert(1); /* Adjust filter if mouse.png is not white */
}

.production-map-fullscreen {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  z-index: 5;
  transition: background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

.production-map-fullscreen:hover {
  background: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.production-map-fullscreen:active {
  transform: translateY(0);
}

.production-map-fullscreen.is-active {
  background: var(--accent);
  color: #fff;
}

.production-map-fullscreen.is-active img {
  filter: brightness(0) invert(1);
}

.production-map-wrapper.is-fullscreen {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 95vw;
  height: 95vh;
  z-index: 1000;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.production-map-wrapper.is-fullscreen::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  z-index: -1;
}

.production-map-wrapper.is-fullscreen .production-map-viewport {
  width: 100%;
  height: 100%;
}

.production-map-slider-wrapper {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.95);
  padding: 8px 16px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 5;
}

.production-map-slider {
  width: 200px;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(15, 23, 42, 0.1);
  border-radius: 999px;
  outline: none;
  cursor: pointer;
}

.production-map-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 180ms ease;
}

.production-map-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

.production-map-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 180ms ease;
}

.production-map-slider::-moz-range-thumb:hover {
  transform: scale(1.1);
}

.production-map-slider-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  min-width: 40px;
  text-align: center;
}

.production-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 26px 0 40px;
}

.production-stats .stat {
  background: var(--white);
  padding: 22px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.production-stats .stat h3 {
  margin: 0;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
}

.production-stats .stat p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.4;
}

.production-steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 40px;
}

.production-steps .step {
  background: var(--white);
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
  cursor: pointer;
}

.production-steps .step:hover,
.production-steps .step.active {
  border-color: rgba(247, 197, 30, 0.55);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.production-steps .step span {
  color: var(--btn-text);
  font-weight: 800;
}

.production-steps .step h4 {
  margin: 10px 0 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.production-steps .step p {
  margin: 10px 0 0;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.4;
}

.production-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.production-gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

@media (max-width: 1024px) {
  .production-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 20px 0 30px;
  }

  .production-stats .stat {
    padding: 16px;
  }

  .production-stats .stat h3 {
    font-size: 24px;
  }

  .production-stats .stat p {
    font-size: 14px;
    margin: 6px 0 0;
  }

  .production-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .production-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .production {
    padding: 52px 0;
  }

  .production-header h2 {
    font-size: 26px;
  }

  .production-header p {
    font-size: 14px;
    line-height: 1.4;
  }

  .production-map-wrapper {
    margin: 14px 0;
  }

  .production-map-viewport {
    height: 450px;
  }

  /* Hide zoom controls and mode status on mobile */
  .production-map-zoom-in,
  .production-map-zoom-out,
  .production-map-reset,
  .production-map-zoom-mode,
  .production-map-mode-status {
    display: none;
  }

  .production-map-slider-wrapper {
    display: none;
  }

  
  .production-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0 24px;
  }

  .production-stats .stat {
    padding: 14px;
  }

  .production-stats .stat h3 {
    font-size: 20px;
  }

  .production-stats .stat p {
    font-size: 13px;
    margin: 4px 0 0;
  }

  .production-steps {
    grid-template-columns: 1fr;
  }

  .production-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .production-gallery img {
    height: 180px;
  }
}

html body .production .production-catalog {
  margin-top: 32px;
  text-align: center;
}

html body .production .production-catalog .production-catalog__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 24px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 10px;
  background: var(--accent);
  color: #1c1c1c;
  transition: background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
  box-shadow: 0 4px 12px rgba(247, 197, 30, 0.3);
}

html body .production .production-catalog .production-catalog__btn-icon {
  flex-shrink: 0;
}

html body .production .production-catalog .production-catalog__btn:hover {
  background: #e6b518;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(247, 197, 30, 0.4);
}

html body .production .production-catalog .production-catalog__btn:active {
  transform: translateY(0);
}
