:root {
  --brand-solid: #067597;
  --text-dark: #1a2733;
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.page-portfolio {
  padding-top: 65px;
}

.portfolio-title {
  font-weight: 800;
  color: var(--text-dark);
  font-size: 2.2rem;
}

/* =========================================================
   MAP CONTAINER & REGIONS
   ========================================================= */
.map-wrapper {
  background: #f8fafc;
  border-radius: var(--radius-lg);
  padding: 20px;
  position: relative;
  overflow: hidden;
  border: 1px solid #eef2f6;
}

.map-container {
  position: relative;
  width: 100%;
  padding-bottom: 60%;
  /* Соотношение сторон карты, подберите нужное */
  margin: 0 auto;
}

.map-container .region {
  position: absolute;
  cursor: pointer;
  transition: all 0.3s ease;
  filter: grayscale(100%) opacity(0.8);
  /* Серые по умолчанию */
  max-width: 30%;
  /* Примерный размер, зависит от нарезки */
  height: auto;
  margin-left: 90px;
      margin-top: 22px;
}

/* Эффект при наведении и активе */
.map-container .region:hover,
.map-container .region.active {
  filter: grayscale(0%) opacity(1) drop-shadow(0 10px 15px rgba(6, 117, 151, 0.4));
  transform: scale(1.05);
  z-index: 10;
}

/* ПРИМЕРНАЯ СЕТКА ПОЗИЦИОНИРОВАНИЯ (Подгоните эти значения под свои картинки) */
/* Это координаты для стандартной нарезки карты Узбекистана */

#karakalpakistan {
  top: 0;
  left: 0;
  width: 35%;
}

#khorezm {
  top: 25%;
  left: 22%;
  width: 10%;
}

#navoi {
  top: 10%;
  left: 30%;
  width: 25%;
}

#bukhoro {
  top: 45%;
  left: 30%;
  width: 15%;
}

#samarkand {
  top: 40%;
  left: 45%;
  width: 12%;
}

#jizzakh {
  top: 35%;
  left: 52%;
  width: 10%;
}

#kashkadarya {
  top: 60%;
  left: 40%;
  width: 15%;
}

#surkhandarya {
  top: 70%;
  left: 50%;
  width: 10%;
}

#sirdaryo {
  top: 35%;
  left: 60%;
  width: 8%;
}

#tashkent {
  top: 20%;
  left: 62%;
  width: 10%;
}

#namangan {
  top: 25%;
  left: 75%;
  width: 10%;
}

#ferghana {
  top: 40%;
  left: 72%;
  width: 12%;
}

#andijan {
  top: 35%;
  left: 85%;
  width: 8%;
}


/* =========================================================
   TOOLTIP
   ========================================================= */
#map-tooltip {
  position: absolute;
  background: rgba(26, 39, 51, 0.95);
  color: #fff;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.9rem;
  pointer-events: none;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.2s ease;
  z-index: 1000;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#map-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   CARDS & CONTENT
   ========================================================= */
.fade-box {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.fade-box.visible {
  opacity: 1;
  transform: translateY(0);
}

.icon-box {
  width: 40px;
  height: 40px;
  background: #e0f2fe;
  color: var(--brand-solid);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

/* Карточка оборудования */
.equipment-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  height: 100%;
}

.equipment-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
  border-color: var(--brand-solid);
}

.equipment-image-wrap {
  position: relative;
  height: 180px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.equipment-image-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.qty-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--brand-solid);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.equipment-body {
  padding: 15px;
  text-align: center;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.equipment-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
  color: var(--text-dark);
}

/* Адаптив карты */
@media (max-width: 768px) {
  .map-container {
    padding-bottom: 70%;
    /* Чуть выше на мобилке */
  }
}

/* =========================================================
   ≥ 1400px — WIDE SCREENS
   ========================================================= */
@media (min-width: 1400px) {
  .map-container #karakalpakistan {
    top: 5%;
    left: 2%;
    width: 30.1%;
  }

  .map-container #khorezm {
    top: 42.1%;
    left: 20.5%;
    width: 10.9%;
  }

  .map-container #navoi {
    top: 24.9%;
    left: 27.9%;
    width: 23%;
  }

  .map-container #bukhoro {
    top: 47.3%;
    left: 29.8%;
    width: 14.8%;
  }

  .map-container #samarkand {
    top: 55.9%;
    left: 43.1%;
    width: 11%;
  }

  .map-container #jizzakh {
    top: 50.5%;
    left: 49.8%;
    width: 10.5%;
  }

  .map-container #sirdaryo {
    top: 52.9%;
    left: 56.3%;
    width: 4.7%;
  }

  .map-container #tashkent {
    top: 37.7%;
    left: 58.5%;
    width: 13%;
  }

  .map-container #namangan {
    top: 46.1%;
    left: 67.2%;
    width: 11%;
  }

  .map-container #ferghana {
    top: 55.1%;
    left: 67.2%;
    width: 11%;
  }

  .map-container #andijan {
    top: 51.5%;
    left: 74.2%;
    width: 10%;
  }

  .map-container #kashkadarya {
    top: 66.3%;
    left: 39.7%;
    width: 15.2%;
  }

  .map-container #surkhandarya {
    top: 72.1%;
    left: 49.8%;
    width: 7.9%;
  }

}



/* =========================================================
   ≥ 1200px — DESKTOP LARGE
   ========================================================= */
@media (min-width: 1200px) {
  .map-container #karakalpakistan {
    top: 5%;
    left: 2%;
    width: 30.1%;
  }

  .map-container #khorezm {
    top: 42.1%;
    left: 20.5%;
    width: 10.9%;
  }

  .map-container #navoi {
    top: 24.9%;
    left: 27.9%;
    width: 23%;
  }

  .map-container #bukhoro {
    top: 47.3%;
    left: 29.8%;
    width: 14.8%;
  }

  .map-container #samarkand {
    top: 55.9%;
    left: 43.1%;
    width: 11%;
  }

  .map-container #jizzakh {
    top: 50.5%;
    left: 49.8%;
    width: 10.5%;
  }

  .map-container #sirdaryo {
    top: 52.9%;
    left: 56.3%;
    width: 4.7%;
  }

  .map-container #tashkent {
    top: 37.7%;
    left: 58.5%;
    width: 13%;
  }

  .map-container #namangan {
    top: 46.1%;
    left: 67.2%;
    width: 11%;
  }

  .map-container #ferghana {
    top: 55.1%;
    left: 67.2%;
    width: 11%;
  }

  .map-container #andijan {
    top: 51.5%;
    left: 74.2%;
    width: 10%;
  }

  .map-container #kashkadarya {
    top: 66.3%;
    left: 39.7%;
    width: 15.2%;
  }

  .map-container #surkhandarya {
    top: 72.1%;
    left: 49.8%;
    width: 7.9%;
  }

}



/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */
@media (max-width: 992px) {

  .page-portfolio h2 {
    font-size: 1.6rem;
  }

  .map-container {
    aspect-ratio: 1.6 / 1;
    max-width: 95vw;
  }

  .equipment-img {
    height: 150px;
  }

  .map-container #karakalpakistan {
    top: 5%;
    left: 2%;
    width: 30.1%;
  }

  .map-container #khorezm {
    top: 40.6%;
    left: 20.5%;
    width: 10.9%;
  }

  .map-container #navoi {
    top: 24.1%;
    left: 27.9%;
    width: 23%;
  }

  .map-container #bukhoro {
    top: 45.6%;
    left: 29.8%;
    width: 14.8%;
  }

  .map-container #samarkand {
    top: 53.7%;
    left: 43.1%;
    width: 11%;
  }

  .map-container #jizzakh {
    top: 48.6%;
    left: 49.8%;
    width: 10.5%;
  }

  .map-container #sirdaryo {
    top: 50.9%;
    left: 56.3%;
    width: 4.7%;
  }

  .map-container #tashkent {
    top: 36.4%;
    left: 58.5%;
    width: 13%;
  }

  .map-container #namangan {
    top: 44.5%;
    left: 67.1%;
    width: 11%;
  }

  .map-container #ferghana {
    top: 53.1%;
    left: 67.2%;
    width: 11%;
  }

  .map-container #andijan {
    top: 49.8%;
    left: 74.3%;
    width: 10%;
  }

  .map-container #kashkadarya {
    top: 63.6%;
    left: 39.7%;
    width: 15.2%;
  }

  .map-container #surkhandarya {
    top: 69.3%;
    left: 49.8%;
    width: 7.9%;
  }
}

/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */
@media (max-width: 768px) {
  .map-container .region{
    margin-left: 45px;
        margin-top: 95px;
  }
  
  .page-portfolio h2 {
    font-size: 1.35rem;
  }

  .map-container {
    aspect-ratio: 1 / 1;
  }

  .equipment-img {
    height: 130px;
  }

  .hover-card:hover {
    transform: none;
    /* UX mobile */
  }

  .map-container #karakalpakistan {
    top: 5%;
    left: 2%;
    width: 30.1%;
  }

  .map-container #khorezm {
    top: 27.3%;
    left: 20.6%;
    width: 11%;
  }

  .map-container #navoi {
    top: 16.9%;
    left: 28%;
    width: 23%;
  }

  .map-container #bukhoro {
    top: 30.2%;
    left: 29.8%;
    width: 15%;
  }

  .map-container #samarkand {
    top: 35.5%;
    left: 43.1%;
    width: 11%;
  }

  .map-container #jizzakh {
    top: 32.3%;
    left: 50%;
    width: 10.5%;
  }

  .map-container #sirdaryo {
    top: 33.8%;
    left: 56.5%;
    width: 4.6%;
  }

  .map-container #tashkent {
    top: 24.7%;
    left: 58.7%;
    width: 13%;
  }

  .map-container #namangan {
    top: 29.8%;
    left: 67.5%;
    width: 11%;
  }

  .map-container #ferghana {
    top: 35.2%;
    left: 67.6%;
    width: 11%;
  }

  .map-container #andijan {
    top: 33.1%;
    left: 74.6%;
    width: 10%;
  }

  .map-container #kashkadarya {
    top: 41.7%;
    left: 39.7%;
    width: 15.2%;
  }

  .map-container #surkhandarya {
    top: 45.2%;
    left: 49.8%;
    width: 7.9%;
  }
}