Prospects of Using Hydrocarbon Deposits from the Autochthonous Miocene Formation (Eastern Carpathian Foredeep, Poland) for Geothermal Purposes

: There are many oil and gas ﬁelds around the world where the vast number of wells have been abandoned or suspended, mainly due to the depletion of reserves. Those abandoned oil and gas wells (AOGWs) are often located in areas with a prospective geothermal potential and might be retroﬁtted to a geothermal system without high-cost drilling. In Poland, there are thousands of wells, either operating, abandoned or negative, that might be used for different geothermal applications. Thus, the aim of this paper is not only to review geothermal and petroleum facts about the Eastern Carpathian Foredeep, but also to ﬁnd out the areas, geological structures or just AOGWs, which are the most prospective in case of geothermal utilization. Due to the inseparability of geological settings with both oil and gas, as well as geothermal conditionings, ﬁrstly, the geological background of the analyzed region was performed, considering mainly the autochthonous Miocene formation. Then, geothermal and petroleum detailed characteristics were made. In the case of geothermal parameters, such as formation’s thickness, temperatures, water-bearing horizons, wells’ capacities, mineralization and others were extensively examined. Considering oil and gas settings, insights into reservoir rocks, hydrocarbon traps and migration paths issues were created. Then, for evaluating geothermal parameters for speciﬁc hydrocarbon reservoirs, their depths were established based on publicly available wells data. Thereafter, the average temperatures for selected reservoirs were set. As the effect, it turned out that most of the deposits have average temperatures of 40/50 ◦ C, nonetheless, there are a few characterized by higher (even around 80 ◦ C) temperatures at reasonable depths. parameters may be more than 30%); R— deposit with detailed recognized reserves (category A + B, i.e., the relative error in estimating the average values of the deposit and resource parameters should be no more than 30% (cat. B) and 15% (cat. A)); Z—mining ceased; T—developed deposit, exploited periodically.


Introduction
Geothermal energy is endowed with considerable energetic potential, either due to the continuous availability, independence from weather conditions and minor impact on the natural environment [1][2][3][4][5]. Besides, because of the constant heat flow from the Earth's interior, geothermal resources are almost inexhaustible and can be considered as an unlimited supply of energy for billions of years [1,3]. They can be harnessed for thermal energy (mainly district heating) and the generation of electricity; therefore, they are characterized by a wide range of possible applications [6][7][8][9]. Geothermal resources constitute the regional wealth that might be an excellent alternative and/or complement to fossil fuels. Thus, the use of geothermal energy can lead to a reduction in the phenomenon of energy poverty [10,11], while contributing to increasing the country's energy independence [12]. Apart from shallow geothermic (i.e., heat pump technology), the utilization of geothermal energy is possible due to the deep boreholes, either brand-new ones dedicated to geothermal extraction, or old, petroleum wells readapted for geothermal purposes [13]. Drilling a new geothermal well requires not only an extensive designing phase and legal compliance [14], but also entails high investment costs [15]. Therefore, the issue of ren-The vast majority of oil and gas wells are located within two petroleum provinces, namely, the Carpathians and the Greater Poland which correspond with relevant geothermal provinces: the Carpathians together with the Carpathian Foredeep, as well as the Polish Lowlands, respectively. Hence, the geothermal analysis undertaken within this paper focuses on the part of the Carpathian Petroleum Province, relevant to the area of the Carpathian Foredeep. The main purpose of this analysis is to determine the areas within the autochthonous Miocene formation of the Polish part of the Carpathian Foredeep, which, being oil and gas areas, are also characterized by relevant geothermal parameters enabling potential energetic application in the future. The indication of natural gas fields characterized by favorable geothermal parameters will enable the following analysis on particular hydrocarbon wells for possible re-adaptation for geothermal purposes as a local heat and/or energy supply. This work is an original and the first collective study of this type of geothermal condition within the hydrocarbon deposits in the eastern part of the Polish Carpathian Foredeep. It is a collection of valuable information on the main geothermal parameters, among which the estimated values of the temperatures expected to be obtained within specific deposits are of particular importance. The presented work could be considered as a basis for further research on the possibilities of managing geothermal energy accumulated within specific hydrocarbon structures, along with an assessment of the possibility of using the existing production infrastructure.
This review article contains general administrative, geological and geographical backgrounds for the eastern part of the Carpathian Foredeep-the analyzed area. Those are followed by a comprehensive geothermal analysis of the autochthonous Miocene formation, as well as detailed characteristics of oil and gas fields. The subsequent geothermal parameters were discussed throughout the paper: (1) Miocene thickness, (2) thermic parameters, (3) reservoir temperatures, (4) water-bearing horizons, (5) well's capacities, (6) total dissolved solids, abbr. TDS, (7) other reservoir parameters-hydraulic conductivity, effective porosity, permeability and shale volume. Petroleum characteristics of the analyzed area, besides the overall description of oil and gas fields, also contain information on reservoir rocks, hydrocarbon traps and gas migration paths. An important element is an attempt to estimate the temperatures in the selected hydrocarbon deposits depending on their location and the average depth of deposition. As a result, several deposits that stand out among the considered ones with a higher estimated temperature were indicated. Several of them have been discussed in detail.

Materials and Methods
This review article is an attempt to integrate publicly available data from the oil and gas industry, with the results of geothermal studies conducted so far in the Polish part of the Carpathian Foredeep. To identify the most prospective area(s) within the Autochthonous Miocene for geothermal energy utilization, the analysis of the current state of knowledge in the field of geology, oil and gas and geothermal issues has been carried out, relevant to the determined region. The including references were selected as a result of the integration of search methods by providing key authors for the field, research area and location of the analysis, and by variable sequences of keywords. Commonly known databases of scientific articles, as well as scientific and general internet search engines, were used. Subsequent publications were added to the list based on the attached bibliographies of previously positively verified publications.
The paper presents the basic geographical [47] and geological characteristics of the area, which determines the occurrence of mainly natural gas [48] and crude oil deposits, as well as specific hydro-geothermal conditions. Discussing the geological settings (i.e., [49][50][51]) of the region, the autochthonous Miocene has been of the authors' highest concern. The work tending towards the assessment of the region's geothermal potential has been carried out based on the Geothermal Atlas of Carpathian Foredeep [50] implemented at the AGH University of Science and Technology in Kraków thematically related studies (incl. [52,53]). Thermal, reservoir, petrophysical and hydrogeological parameters were considered within five designated depth intervals: 500-1000; 1000-1500, 1500-2000; 2000-2500; 2500-3500 m bsl and marked with letters from A to E, respectively. The 0-500 m bsl depth interval has been excluded from the analysis. Each of the aforementioned depth intervals has been analyzed for the average temperature, the thickness of water-bearing horizons, expected boreholes' capacities, water mineralization and type [54,55], as well as subsequent parameters of hydraulic conductivity, effective porosity, permeability and shale content. The petroleum characteristics of the analyzed region have been made upon information available in scientific studies and publications (incl. [52,53,56]). The attention has been paid mainly to natural gas deposits, treating Miocene crude oil reservoirs as a secondary matter. The Miocene reservoir rocks [57], as well as hydrocarbon traps and paths for gas migration [58], have been presented. Additionally, the current development state and stages of production of individual Miocene deposits located in the analyzed area have been identified [59]. In order to estimate the deposition depth of natural gas deposits, the available borehole data have been analyzed [60][61][62]. The aforementioned data was processed using the publicly available GIS program. Based on the depth data [60,61] concerning boreholes of the selected deposit, the average depth of the considered reservoir has been estimated (Equation (1)). The resulting depths were also verified with literature data (incl. [51,63,64] Then, supposed geothermal parameters (i.e., geothermal intervals) have been assigned to average deposits' depths, paying special attention to temperature data as a criterion for the elimination of areas from further analysis. This, in turn, enabled the identification of natural gas regions within the autochthonous Miocene formation, which may be structures/regions with a great potential for the implementation of technology that is focused on the exploitation of geothermal energy. Additionally, in order to show the general characteristics of hydrocarbon deposits occurring in the analyzed area, a few selected gas deposits have also been described (i.e., [51,65]). The deposits along the Carpathian Overthrust have been selected, either small (e.g., Jodłówka; [64]) and of considerable size (i.e., Przemyśl; [66]).

Location
Within the administrative borders of Poland, the Carpathian Foredeep mainly covers three voivodeships (Figure 1). Starting from the eastern border of the country: the northern part of the Subcarpathian voivodeship as well as fragments of the Lesser Poland and Silesian voivodeships. The most peripheral areas of the Carpathian Foredeep cover a part of the Holy Cross Province (in the North), a small area of the Opole Voivodeship in the West, while in the East, mildly entering the Lublin Voivodeship ( Figure 1).
When considering the geographical and geological aspects, the northern boundary of the Carpathian Foredeep is determined by the extent of the Neogene formations, while the southern border is along the overlap of the Outer Carpathians. Its latitudinal extent reaches over 300 km, and the maximum width does not overdraw 100 km (Figures 1 and 2) [50]. According to the physico-geographical division adopted by Kondracki [47], the area of the Carpathian Foredeep largely belongs to the Northern Subcarpathia. In the southern part, it covers a part of the Outer Western Carpathians, while in the northern part, it is the Silesian-Cracow and Lesser Poland Upland [47]. Within the Northern Subcarpathia, the Oświęcim Basin, the Krakow Gate and the Sandomierz Basin are distinguished. The area of the Carpathian Foredeep also includes a small area of the Ostrava Basin (in the western part), and the Rzeszów Piedmont stands out in the east. The Nida Basin belonging  When considering the geographical and geological aspects, the northern boundary of the Carpathian Foredeep is determined by the extent of the Neogene formations, while the southern border is along the overlap of the Outer Carpathians. Its latitudinal extent reaches over 300 km, and the maximum width does not overdraw 100 km (Figures 1 and 2) [50]. According to the physico-geographical division adopted by Kondracki [47], the area of the Carpathian Foredeep largely belongs to the Northern Subcarpathia. In the southern part, it covers a part of the Outer Western Carpathians, while in the northern part, it is the Silesian-Cracow and Lesser Poland Upland [47]. Within the Northern Subcarpathia, the Oświęcim Basin, the Krakow Gate and the Sandomierz Basin are distinguished. The area of the Carpathian Foredeep also includes a small area of the Ostrava Basin (in the western part), and the Rzeszów Piedmont stands out in the east. The Nida Basin belonging to Lesser Poland extends north-eastwards of Kraków, whereas to the north-west of the city, there is the Silesian Upland, which constitutes the part of the Silesian-Cracow Upland.   The geothermal-petroleum analysis has been conducted within the eastern part of the Carpathian Foredeep, limiting the research area from the south with the Carpathian Overthrust, while the other borders coincide with the reach of the Subcarpathian Voivodeship ( Figure 1).

Geological Background
The Carpathian Foredeep is the Neogene structure genetically associated with the youngest geological unit of Poland, namely, the Flysch Carpathians [50]. It constitutes an asymmetrical structure filled with Miocene molasses (Figure 3), with a thickness reaching The geothermal-petroleum analysis has been conducted within the eastern part of the Carpathian Foredeep, limiting the research area from the south with the Carpathian Overthrust, while the other borders coincide with the reach of the Subcarpathian Voivodeship ( Figure 1).

Geological Background
The Carpathian Foredeep is the Neogene structure genetically associated with the youngest geological unit of Poland, namely, the Flysch Carpathians [50]. It constitutes an asymmetrical structure filled with Miocene molasses (Figure 3), with a thickness reaching over 3000 m (in so-called Wielkie Oczy Graben), originating mainly from the erosion of folded deposits of Carpathian Flysch [67]. Neogene sediments of the Carpathian Foredeep lie on various-age basements, from Precambrian to Cretaceous, and on different tectonic units: Variscan and Laramian [49]. Generally, they are in the form of shale, siltstone and sandstone sequences, forming the complex of so-called autochthonous Miocene [50]. The formations are generally undisturbed and lie relatively flat (0-15 • ), adapting their structural arrangement to the relief of the Precambrian-Palaeozoic basement (Lesser Poland Block) [51]. The maximum thickness of Miocene deposits occurs in the southern part and decreases towards the north (Figure 3). The age of the autochthonous Miocene is determined as the Badenian-Sarmatian period [51]. The autochthonous Miocene profile of the analyzed part of the Carpathian Foothills begins with clay and sandy sediments, the so-called Baranów Beds. In lithological terms, they are usually green or gray-green clay shales interlaced with marls and glauconite sandstones. Their thickness is from several to even 70 m (Lubaczów). In the more northern part, the lowest level of Lower Badenian is represented by lithotamine limestones (i.e., area of Cetynia, Lubaczów and Dzików) [57]. Above the Baranów Beds, there is a series of evaporate sediments (called the Krzyżanowice Formation), which is of great importance as the main correlation level and seismic marker in the scale of the entire Carpathian Foredeep. Evaporate sediments with a thickness of up to 60 m are mainly anhydrite, sometimes gypsum as well as primary and epigenetic limestone with sulfur mineralization. In the region northwards from Rzeszów (the so-called Rzeszów Ridge) there are no anhydrite formations. It was caused by erosion, which removed at least 50-100 m of chemical and older Neogene sediments [68]. In the Lubaczów region (exactly the Dzików hydrocarbons deposit), a limestone complex with a dark gray mudstone deposit of several centimeters was found. These layers correspond to the anhydrite series [57]. The over-anhydrite Miocene of the Upper Badenian and Sarmatian is a seemingly monotonous clay-sandy series with a total thickness of up to 2500 m [57]. Generally, it can be said that the Upper Badenian deposits are more clayishthey are formed by a complex of gray-green shales (over-gypsum/spirilisal level) with a thickness between 30 and 180 m. Within this formation, there are also thin sandstone and bentonite or tufit inserts. On the other hand, the Lower Sarmatian formations begin with a packet of sandstone-shale layers with a thickness of several hundred meters, and above, they pass into a silty-sandy series with a predominance of slate. Due to much local demarking, they are most often referred together as the Machów Formation [57]. Among the sediments included and occurring in the eastern part of the Carpathian Foredeep, the spirilisal-pectoral clay Krakowiec Beds should be mentioned. The top part of the latter is sometimes attributed to the Pannonian age [69].

Geothermal Characteristics of the Analyzed Area
Due to the specific geological structure and therefore different hydrothermal characteristics, four major geothermal provinces can be distinguished in Poland [38,45,46]. The largest in the area and most prospective in terms of heat and/or energy production is a province of the Polish Lowlands. Similar importance is assigned to the Podhale region, located within the Carpathian Geothermal Province. Different but also favorable geothermal conditions are found in the Sudetic Geothermal Region, where geothermal waters occur in the crystalline formations of the Sudetes. However, this paper concerns the fourth geothermal province, namely, the Fore-Carpathian Province.
The Fore-Carpathian Province is located in the southern part of Poland, covering the geological structure of the Polish part of the Carpathian Foredeep. The area of the Carpathian Foredeep covers 24,400 km 2 , which constitutes 7.8% of Polish territory [50]. The area is relatively well explored (over 3000 boreholes within the analyzed area) due to the years-lasting production of hydrocarbons deposits ( Figure 2), thus, there was a possibility to assess the geothermal potential of this region. Geothermal research was made within Triassic, Jurassic, Cretaceous Miocene formations [50]. However, in this paper, only the autochthonous Miocene formation is discussed. The analysis of geothermal reservoir within the autochthonous Miocene has been carried out based on subsequent parameters that are presented in a few following sub-sections.

Miocene Thickness
The autochthonous Miocene is characterized by the high variability of reservoir parameters resulting, inter alia, from the depth of its deposition. The deepest Miocene deposits are located in the south-eastern and southern part of the determined area of the Carpathian Foredeep, reaching maximum values of over 4000 m bsl, under the Carpathian Overthrust ( Figure 4). Therefore, the noticeable change of Miocene's thickness is observed, from sizeable exactly under and northwards the Carpathian Overthrust to smaller in the North [71,72]). The largest thickness of the Miocene is marked north-east of Przemyśl, where it locally exceeds 3000 m. The Miocene of a considerable thickness occurs also in the area of large cities in the southern part of the analyzed area, i.e., Rzeszów, Dębica and Ropczyce-which can be considered as potential heat consumers. The smallest thickness of Miocene formation does not exceed 100 m. Besides the varying thickness of Miocene deposits, the top surface is an exact reflection of the base, and in the vast part of the area, it is located above sea level.
As aforementioned, due to the considerable thickness of Miocene deposits and high variability of the form of separate stratigraphic stages, five depth intervals have been determined and a specific analysis of geothermal parameters has been made. smaller in the North [71,72]). The largest thickness of the Miocene is marked north-east of Przemyśl, where it locally exceeds 3000 m. The Miocene of a considerable thickness occurs also in the area of large cities in the southern part of the analyzed area, i.e., Rzeszów, Dębica and Ropczyce-which can be considered as potential heat consumers. The smallest thickness of Miocene formation does not exceed 100 m. Besides the varying thickness of Miocene deposits, the top surface is an exact reflection of the base, and in the vast part of the area, it is located above sea level. As aforementioned, due to the considerable thickness of Miocene deposits and high variability of the form of separate stratigraphic stages, five depth intervals have been determined and a specific analysis of geothermal parameters has been made.

Thermic Parameters
The analyzed area of the Carpathian Foredeep, for all having good drilling reconnaissance ( Figure 2), is fairly average in terms of thermal recognition [50]. Generally, the thermal regime is of a regional character and usually concerns studies nationwide (incl. [73][74][75][76][77]). As stated by Górecki (eds.) [50], the interpretation of the thermal field in this region is the result of the interpolation of thermal data from wells located outside the Carpathian Foredeep, rather than in situ measurements. More detailed studies on the area's geothermal energy have so far been carried out in smaller areas (e.g., for the Subcarpathian Voivodeship [78] or were of point-nature such as cities/municipalities (e.g., for Pilzno, Dębica, Mielec, Przemyśl, Jarosław, Łańcut or Rzeszów (Figure 1)) [78,79]). In the Geothermal Atlas of Carpathian Foredeep [50], a thermal analysis has been made based on the interpretation of the available results of measurements of the maximum temperature at the bottom of the borehole (so-called bottom hole temperature, abbr. BHT). Due to the uneven distribution of data (most measurements have been conducted

Thermic Parameters
The analyzed area of the Carpathian Foredeep, for all having good drilling reconnaissance ( Figure 2), is fairly average in terms of thermal recognition [50]. Generally, the thermal regime is of a regional character and usually concerns studies nationwide (incl. [73][74][75][76][77]). As stated by Górecki (eds.) [50], the interpretation of the thermal field in this region is the result of the interpolation of thermal data from wells located outside the Carpathian Foredeep, rather than in situ measurements. More detailed studies on the area's geothermal energy have so far been carried out in smaller areas (e.g., for the Subcarpathian Voivodeship [78] or were of point-nature such as cities/municipalities (e.g., for Pilzno, Dębica, Mielec, Przemyśl, Jarosław, Łańcut or Rzeszów ( Figure 1)) [78,79]). In the Geothermal Atlas of Carpathian Foredeep [50], a thermal analysis has been made based on the interpretation of the available results of measurements of the maximum temperature at the bottom of the borehole (so-called bottom hole temperature, abbr. BHT). Due to the uneven distribution of data (most measurements have been conducted along the Carpathian Overthrust) and errors resulting from the method of measuring temperatures in the boreholes (transient conditions), corrective and climatic corrections were introduced and data interpolation was performed on the area of Carpathian Foredeep [50].

Temperatures
The deep location of Miocene deposits has a positive effect on the temperatures prevailing in the reservoir. The very first depth interval was set from the top of autochthonous Miocene to 500 m bsl, but as the temperature does not exceed 20 • C [80], the presence of geothermal waters has been excluded, and ipso facto, its further analysis has been ceased. Generally, within the five remaining intervals (marked as A-E), the temperatures are rising along with a growth of depth. The temperatures for the center of each interval are presented in Figure 5. The highest temperatures (of around 80-100 • C) are to be expected at a depth of approximately 3000 m, in the eastern part of the analyzed area.
west, reaching values between 1.72 and 2.4 °C /100 m (in the region of Rzeszów).

Temperatures
The deep location of Miocene deposits has a positive effect on the temperatures prevailing in the reservoir. The very first depth interval was set from the top of autochthonous Miocene to 500 m bsl, but as the temperature does not exceed 20 °C [80], the presence of geothermal waters has been excluded, and ipso facto, its further analysis has been ceased. Generally, within the five remaining intervals (marked as A-E), the temperatures are rising along with a growth of depth. The temperatures for the center of each interval are presented in Figure 5. The highest temperatures (of around 80-100 °C ) are to be expected at a depth of approximately 3000 m, in the eastern part of the analyzed area.

Water-Bearing Horizons
The water-bearing horizons of the Miocene in the eastern part of the Carpathian Foredeep are generally discontinuous, because Miocene sandstones as reservoir rocks often have the form of lenses and pinching out layers. However, they are simultaneously characterized by considerable thicknesses. The summarized thickness of aquifers within interval A is considered the highest as the value reaches up to 300 m (between Przeworsk and Leżajsk). Two distinct lenses with thicknesses of around 200 m and 250 m are located northwards from Ropczyce and Leżajsk, respectively. In the case of interval B, one can observe three areas with thicker aquifers-up to 150 m near Rzeszów and Łańcut, and up to 200 m near Dębica town. Interval C consists of two lenses with summarized thicknesses exceeding 100 m, directly under the Carpathian Overthrust, just between Rzeszów and Przemyśl towns. Within the next formation, there are no significant aquifers. Regions with higher thicknesses (between 50-75 m) of water-bearing horizons are located eastwards Jarosław town, close to the Polish border. In the remaining 2500-3500 m interval,

Water-Bearing Horizons
The water-bearing horizons of the Miocene in the eastern part of the Carpathian Foredeep are generally discontinuous, because Miocene sandstones as reservoir rocks often have the form of lenses and pinching out layers. However, they are simultaneously characterized by considerable thicknesses. The summarized thickness of aquifers within interval A is considered the highest as the value reaches up to 300 m (between Przeworsk and Leżajsk). Two distinct lenses with thicknesses of around 200 m and 250 m are located northwards from Ropczyce and Leżajsk, respectively. In the case of interval B, one can observe three areas with thicker aquifers-up to 150 m near Rzeszów and Łańcut, and up to 200 m near Dębica town. Interval C consists of two lenses with summarized thicknesses exceeding 100 m, directly under the Carpathian Overthrust, just between Rzeszów and Przemyśl towns. Within the next formation, there are no significant aquifers. Regions with higher thicknesses (between 50-75 m) of water-bearing horizons are located eastwards Jarosław town, close to the Polish border. In the remaining 2500-3500 m interval, there is the area of a summarized thickness of aquifers up to a maximum of 200 m (between Ropczyce and Rzeszów towns, exactly under the Carpathian Overthrust).

Boreholes' Capacities
Generally, the low capacity of boreholes constitutes the essential problem in the autochthonous Miocene reservoir, where zones with the increased potential of wells' capacities occur only locally [52,53]. The zones of intensified boreholes' capacities reflect the occurrence of aquifers of considerable thickness. Thus, the minimum (Q min ) and maximum (Q max ) values of boreholes' capacities within the analyzed area are presented in Table 1.

Total Dissolved Solids
Simultaneously, as the temperatures of separate intervals increase, the values of total dissolved solids (abbr. TDS) also rise. Within the first analyzed depth interval (A; 500-1000 m bsl), the TDS of hardly the whole area does not exceed 50 g/dm 3 . Only locally, northwards from Rzeszów and Lubaczów, do TDS values vary between 50-75 g/dm 3 . The waters of interval B are characterized by similar mineralization, from 25 g/dm 3 in Przemyśl area, rising in the north-west direction, to 100 g/dm 3 in the most western part of the research area. Additionally, interval C presents values between 50 g/dm 3 (SE part) and 100 g/dm 3 (SW part). Considering the following depth intervals, the maximum TDS values occur in the southern-western part of the analyzed area and reach nearly 200 g/dm 3 .
Below the freshwater, there are saline, sulfate or hydrogen sulfide waters [55]. Most of the water accumulated in the Miocene reservoir at all designated depth intervals is chloride water; mainly Cl-Na or, to a lesser extent, the Na-Cl type. The Na-Cl-HCO 3 chemical type waters are much less common-such can be found primarily in Mielec, Ropczyce, Łańcut and Jarosław surroundings. The presence of waters with the chemical composition Cl-Na-Ca is marked in a few places. Additionally, in the waters of the autochthonous Miocene formation, within the studied area, the presence of specific components relevant for the therapeutic use of waters was found; among others, iodine, bromide or sulfur compounds [54]. Moreover, abnormal concentrations of iodides, bromides and metasilicic acid are found in edge waters of hydrocarbon deposits, or in areas where mixing with relict waters is possible [81].

Reservoir Parameters
In this paragraph, information concerning hydraulic conductivity effective porosity, permeability and shale volume within discussed depth intervals of autochthonous Miocene have been correlated. Generally, along with the depth, the parametric recognition of rocks decreases, and the diversity of values is quite large [50]. This is related to, among others, the variability of the broadly understood geological structure, lithological form of rocks or the degree of structures' transformation. Interval A is characterized by the best values of hydraulic conductivity, reaching up to 50 × 10 −5 m 2 /s in Leżajsk town. Additionally, the filtration coefficient presents the highest values (over 2 × 10 −4 m/s) and effective porosity is set as 20%. Within this interval, the fields of high permeability (exceeding 100 mD) occur in the southern and eastern parts of the analyzed area. Apparently, the occurrence of shaly minerals within the aquifer is arranged inversely in relation to the conductivity and permeability parameters. In the discussed depth interval, it takes values from 20% (in the Lubaczów area) to 45%. The most frequent values belong to the range from 30-35% and cover the majority of the study area. Similar parameters can be found in the next depth interval. Namely, permeability and effective porosity maximum values are over 100 mD and 15%, respectively. However, hydraulic conductivity reaches more than 15 × 10 −5 m 2 /s in the Rzeszów-Łańcut area. In this case, shale volume values hesitate between 25 and 45%. However, the range of 35-40% is preponderant throughout the research area of this interval; values between 40-45% are the second. Reservoir parameters of deeper intervals are slightly less developed. At a depth between 1500 and 2000 m, the permeability of the Miocene aquifer does not exceed 100 mD and the maximum hydraulic conductivity (half the way from Rzeszów to Przemyśl) does not reach the value of 10 × 10 −5 m 2 /s. The effective porosity in the Rzeszów-Przemyśl-Jarosław region ranges between 5-15%. Whereas the content of shale rocks presents values from 30% to even 45%, however, the biggest area presents values between 35% and 40%. The interval D, like the previous one, is characterized by quite good values of hydraulic conductivity (max. 12 × 10 −5 m 2 /s eastwards Jarosław town), permeability (up to 100 mD) and effective porosity (up to 15%). The shale volume of the aquifer varies between 25% (area between Przemyśl and Lubaczów) and 45%, whereas the most frequent values belong to the range 35-40% (e.g., Rzeszów city area). The last but not least depth interval presents higher values of reservoir parameters between Ropczyce and Rzeszów, directly under the Carpathian Overthrust. They are as follows: permeability-up to 30 mD, hydraulic conductivity-max. 16 × 10 −5 m 2 /s, and effective porosity-slightly exceeding 10%). If it comes to shale content, the smallest values of 25-30% are determined in the aforementioned area, whereas, the maximum ones (and prevailing within the area) reach 45% in the area between Łańcut town and Przemyśl city, along the Carpathian Overthrust.

Petroleum Characteristic of the Analyzed Area
The Carpathian Foredeep is part of the second-biggest petroleum province in Poland, namely, the Lesser Poland (Carpathians) Petroleum Province. The natural gas resources are connected with Jurassic, Cretaceous and Miocene formations, however, natural gas is produced predominantly from the Miocene reservoir ( Figure 6) [37]. It is usually high-methane low-nitrogen gas, and only a few deposits contain nitrogen-rich natural gas [56,59,82]. The deposits belong to the structural-lithological type, multi-layered, less often massive, producing in gas-pressure conditions. Subcarpathian natural gas deposits have elasticexpansion-hydroconfined energy conditions [56]. Crude oil deposits of the Carpathian Foredeep are connected primarily to Mesozoic sedimentary formations-mainly carbonate Jurassic formations, less often Cretaceous sandstones, placed under the sealing clayey Miocene [59]. Nonetheless, the autochthonous Miocene constitutes a minor reservoir for oil deposits ( Figure 6). In the analyzed area, there are mostly stratified deposits shielded stratigraphically, lithologically or tectonically. In the autochthonous Miocene of the Carpathian Foredeep, over 100 deposits of natural gas (exactly 105 as of March 2020 [59]) were discovered, both large deposits with multi-billion reserves made available for production, as well as small never-used accumulations. There are 69 natural gas deposits within the analyzed area (Table 2, Figure 6), In the autochthonous Miocene of the Carpathian Foredeep, over 100 deposits of natural gas (exactly 105 as of March 2020 [59]) were discovered, both large deposits with multi-billion reserves made available for production, as well as small never-used accumulations. There are 69 natural gas deposits within the analyzed area (Table 2, Figure 6), including the largest deposits as Przemyśl (No. 46), Lubaczów (No. 32), and many other fields. Discussing crude oil resources, there are barely six deposits (out of twelve located in the Carpathian Foredeep) within the analyzed area (Table 2, Figure 6); thus, their significance for this study has been considered minor. Nonetheless, it is worth mentioning that exploration work (mainly gas-oriented) is still underway in the considered area, as well as the whole Carpathian Foredeep [37,83]. Legend: B-prepared for extraction or trial operation; E-producing; G-underground gas storage (abbr. UGS); P-deposit with initially recognized resources (category C, i.e., the relative error in estimating the average values of the deposit and resource parameters may be more than 30%); R-deposit with detailed recognized resources (category A + B, i.e., the relative error in estimating the average values of the deposit and resource parameters should be no more than 30% (cat. B) and 15% (cat. A)); Z-mining ceased; T-developed deposit, exploited periodically. Note: The deposit order numbers presented in the table above are referred to on the maps and within the text (in the form of brackets), each time that the name of the deposit is quoted.
The general characteristic of all 69 natural gas fields and 6 crude oil deposits is presented, however, deposit's development state (Figure 7) is of vital importance. The percentage distribution of the current development state of determined deposits within the analyzed area (Figure 7) shows that most of the deposits of both natural gas (51 fields) and crude oil (3 fields) are nowadays exploited, and the concession issued by Ministry of the Environment is valid for several more years [61]. On the other hand, mining has been ceased in only one natural deposit, recently (Figure 7). It is worth highlighting that, in a long-time perspective, some of today's exploited hydrocarbon fields will be ceased and might be used for other purposes, e.g., geothermal.
analyzed area (Figure 7) shows that most of the deposits of both natural gas (51 fields) and crude oil (3 fields) are nowadays exploited, and the concession issued by Ministry of the Environment is valid for several more years [61]. On the other hand, mining has been ceased in only one natural deposit, recently (Figure 7). It is worth highlighting that, in a long-time perspective, some of today's exploited hydrocarbon fields will be ceased and might be used for other purposes, e.g., geothermal. Legend: B-prepared for extraction or trial operation; E-exploited; G-underground gas storage (abbr. UGS); P-deposit with initially recognized reserves (category C, i.e., the relative error in estimating the average values of the deposit and resource parameters may be more than 30%); R-deposit with detailed recognized reserves (category A + B, i.e., the relative error in estimating the average values of the deposit and resource parameters should be no more than 30% (cat. B) and 15% (cat. A)); Z-mining ceased; T-developed deposit, exploited periodically. Legend: B-prepared for extraction or trial operation; E-exploited; G-underground gas storage (abbr. UGS); P-deposit with initially recognized reserves (category C, i.e., the relative error in estimating the average values of the deposit and resource parameters may be more than 30%); Rdeposit with detailed recognized reserves (category A + B, i.e., the relative error in estimating the average values of the deposit and resource parameters should be no more than 30% (cat. B) and 15% (cat. A)); Z-mining ceased; T-developed deposit, exploited periodically.

Miocene Reservoir Rocks
Miocene reservoir rocks are very diverse in lithological, petrographic and facial terms [57]. Often, a given region, deposit and even a borehole or a single gas horizon have their specific characteristics. In this connection, several main types are distinguished, which differ in age, lithology and facial origin and at the same time have serious industrial significance. In general, Baranów Beds' sandstones and transformed anhydrite are considered reservoir rocks among the Badenian sediments. In the Sarmatian sediments, deposition environments containing natural gas accumulating rocks have been separated, namely, turbidite sediments of submarine fans, delta sediments and shallow-sea sediments of estuaries, sandy barriers and lagoons [57]. Among the reservoir rocks, locally occurring Dzików sandstones are also distinguished. It is worth emphasizing that the Miocene reservoir rocks of the Carpathian Foredeep, even though they are almost exclusively sand-clay sediments, are characterized by the high variability of reservoir parameters depending on the environment in which they arose [49].
Baranów sandstones are the oldest reservoir rocks of relatively low operational significance due to their low thickness. Although the largest recorded thicknesses reach 70 m, the most common are layers with a thickness between 3 and 10 m. Their porosity ranges between 5 and 25%, and the obtained gas flows reached up to 600,000 Nm 3 /day. However, gas accumulations in Baranów Beds are not large in terms of resources. Hydrocarbon shows are known from the Uszkowce (No. 59) and Lubaczów (No. 32) regions, where natural gas is accumulated in the basement sediments and Baranów sandstones. The accumulation of the natural gas of industrial importance was found in the Kuryłówka (No. 30) and Sarzyna (No. 52) deposits. The composition of gas extracted from Baranów sandstones varies significantly, from the one occurring in the higher layers of the Mioceneit is nitrogen-rich. The nitrogen value in the Kuryłówka and Sarzyna deposits reaches 31% and 20%, respectively [84].
Among the evaporite sediments, hydrocarbon symptoms often occur in anhydrite, but the industrial significance of these accumulations remains marginal. Anhydrite, despite the low primary porosity, can be a secondary reservoir rock, with porosity reaching a dozen or so percent. It is associated with the processes of chemical influence of hydrocarbons on sulfates [85]. Chemical processes transform anhydrite into epigenetic limestones and marls. Primary limestones, which are equivalent to evaporates (Dzików natural gas field; No. 12/13), are also sometimes found. The composition of natural gas from the evaporate series is different from that of the Sarmatian age-it has a higher content of heavy hydrocarbons and contains small amounts of hydrogen sulfide.
Turbidite of the basin plain and submarine fans contains one of the most important types of reservoir rocks in the Carpathian Foredeep, namely, sandstones of submarine fans as well as distal sandy-mudy-clayish heterolitic beds of basin plain. Heterolitic beds occur in the lowest part of Sarmatian sediments and are characterized by clay and mudstone lithology. The porosity of sandstone inserts reaches 10%, however, due to the high proportion of clay rocks, the effective thickness of deposit horizons is small. Gas capacities range from several thousand to over 200,000 Nm 3 per day. The composition of natural gas is typical for Sarmatian deposits and contains around 96-99% of methane. Reservoir rocks with much better parameters are turbidite deposits of radial submarine fans. They occur in significant numbers in the eastern part of the Carpathian Foredeep, their sandy forms are particularly widespread in the area along and directly below the Carpathian Overthrust zone. They are characterized by the same thin bedding, clear organization in the form of multiple sets of layers of considerable thickness, grain thickening upwards and the increasing thickness of sandy beds [57]. Some of the turbidite deposits with the thickest sandstone and conglomerate beds were formed in the zones of migrating channels of the upper submarine fan. They have the form of lenticular, thick beds with a thickness of several to a dozen meters [86]. Thicker sandstone beds of submarine fans are reservoir rocks for the Przemyśl (No. 46), Jodłówka (No. 23) or Husów-Albigowa-Krasne (No. 18) gas fields (Table 2; Figure 6). The porosity is up to 27% (on average 14%), whereas the permeability reaches up to 500 mD. As a consequence, the natural gas (95-99% of methane) production rate reaches up to 7,500,000 m 3 daily. Towards the top of the profile, sediments of the turbidite submarine fans are gradually replaced by deltaic deposits. They are characterized by clay-sandy lithology with grain growing upwards, as well as vertical cyclicality of sediments. Hydrocarbon deposits occur in layers and irregular sandy bodiesin structural and lithological-stratigraphic traps. Sandy fillings of distribution channels are particularly predisposed to accumulate hydrocarbons, which transfer sediments to the head of the delta and estuaries [57]. In the deltaic deposits profile, the cyclical nature and multiple repetitions of sealing rock layers cause the hydrocarbon migration to stop and promote the formation of multilayer deposits [87]. Sandstones within the parasequence form thick, homogeneous packages with a thickness between 10-20 m. The average grain diameter and thickness initially show an upward trend, and in the top part, they present the reverse sequence. Each parasquence is well insulated in the top by clayey-mud [57]. Most of the thicker sandy packets (2-5 m) from the top parts of the delta parasquence in structurally elevated areas are gas saturated, creating multilevel deposits with significant discharges (e.g., the Biszcza deposit-above 700,000 Nm 3 /day). Porosity values are up to 32%, whereas the conductivity reaches 900 mD. In addition, among the delta sediments of the Carpathian Foredeep, the occurrence of non-consolidated rocks (sands) and poorly consolidated sandstones, which in several cases constitute a gas-bearing horizon, is common. Hence, the best and simultaneously the most resourceful natural gas reservoirs are the sediments of submarine fans and deltaic sediments-the natural gas of the largest deposits is accumulated within them. The last stage of sedimentation in the Carpathian Foredeep was the filling of the remaining space with shallow shelf deposits-poorly sorted, without any visible bedding, fine-grained (mainly) clay and mud sediments. These features were not conducive to the formation of hydrocarbon accumulation, yet gas deposits were found in many regions. Sandy mudstones have a significant share in these settlements; there are also thicker sandstone beds [57].
Dzików sandstones are a special case among sediments (including the higher Sarmatian sandstones) of the Carpathian Foredeep [57]. Thus far, they have been found in the area of the Dzików deposit (No. 12/13), at a depth of 850-1000 m (4 lithosomes). Their thickness ranges from 20 to 50 m. This type of Dzików sandstone presents very high porosity-in the range of 15-35% and permeability of several hundred mD. Daily high-methane gas production is in the range of 720,000-1,000,000 Nm 3 (Dzików field).

Hydrocarbon Traps and Gas Migration
Due to the widespread occurrence of reservoir rocks and the generation of microbial gas in the Miocene sediments [88], the existence of hydrocarbon accumulation is mainly determined by the manner and directions of gas migration and the rules for the formation of trap deposits. Although each of the deposits discovered so far has a large individuality, for most of them some common features can be distinguished, namely, the type of deposit trap and the kind of sealing it [58]. Besides, this is an extremely important issue in the context of further exploration of hydrocarbon deposits. In the Carpathian Foredeep, the decisive impact on the occurrence's incidence, type of gas traps within Miocene deposits, and thus the zonation of natural gas deposits have had: (1) the shape of the basement's top, (2) the compaction of the Miocene deposits above its elevations, (3) the deforming impact of the pressing Carpathians. Among the types of natural gas traps of the Carpathian Foredeep, both structural and stratigraphic can be distinguished.
The most frequent type of structural trap in the Miocene sediments is compactional anticlines. They formed above the basement's elevations during the compaction of sandyclayey rocks. Their sealing is made of impermeable argillaceous schists. Multi-horizon natural gas deposits in compactional anticlines are characterized by different gas-edge and/or bottom water relations, depending on the facies type and lithology of reservoir rocks [58]. In the situation when gas accumulation is found in explicitly insulated, thicker sandy layers, it is possible to identify clear gas-water contact (here more often the edge water) on each of the horizons. Examples of such accumulations are ( Figure 6 [58]. In the case of natural gas accumulated within compactional anticlines composed of heterolithic deposits of the basin floor, thin-stratified turbidites of external submarine fan or distal delta turbidites, each of the thin sandy beds has its own gas-water contact. An example would be the lower horizons of the Palikówka deposit ( Figure 6). Significant gas resources are located in the zone along the Carpathian Overthrust, which is the seal on the southern side. Stratigraphic traps in the Carpathian Foredeep are associated with unconforming surfaces (regional and local). The pinching-out trap types caused by the horizontal and the vertical facies changes are rare and occur most often in the topmost part of the Miocene succession. Traps of this type are known, among others, from the Husów (horizons 11 and 12;No. 17) or the Rudka (horizon 12; No. 50) deposits ( Figure 6) [58].
During the formation of Miocene deposits, all the conditions necessary for the generation and accumulation of biogenic gas were met: (1) adequate content of organic matter as a source of natural gas; (2) rapid sedimentation of sandy-clayey sediments in the Miocene Sea basin and its cyclicality; (3) synsedimental tectonics and the creation of compact traps (anticlines); (4) the presence of suitable reservoir rocks; (5) low-temperature regime (constant presence of bacteria) [91]. Thus, as the result of the microbial genesis of gas, its composition is dominated by methane. As stated by Kotarba [88] gas migration was a parallel process to its formation. Moreover, compaction and squeezing water from concentrated sediments favored it [89]. Migration paths could have been porous layers of sandy sediments (lateral migration according to the hydrodynamic gradient) and/or discontinuity surfaces in the form of cracks and faults (vertical migration).

Primarily Thermal Characteristic of Selected Hydrocarbon Reservoirs
Having learned the general geothermal and petroleum characteristics of the studied region, the area for a more extensive search for the region(s) of hydrocarbons deposits characterized by prospective geothermal parameters has been narrowed using the minimum temperature criterion. According to the Geological and Mining Law [80], (geo)thermal water is called groundwater, which at the outlet from the intake, has a temperature not lower than 20 • C. This condition excluded from the analysis the very first depth interval of the autochthonous Miocene (i.e., 0-500 m bsl), what has already been clarified in the geothermal characteristics of the region (see Section 4). Another adopted assumption is the suitability of thermal water for the potential production of thermal energy-in the case of deep geothermal energy, it is justified when the water reaches values above 40 • C [92]. As a result of the alternate adopted temperature criterion, the depth range 500-1000 m bsl was somewhat omitted in further analysis, although it should be realized that its potential could be used in ground heat pump technology [50]. The depth ranges 0-500 m bsl and 500-1000 m bsl (i.e., interval A where the temperature does not exceed 40 • C-see Section 4.3) and thus the hydrocarbon deposits located within these formations has been excluded from further considerations. This narrows the research area for a suitable structure(s) to regions within/near the Carpathian Overthrust zone (Figure 8). At the same time, the number of analyzed gas deposits is reduced to 42. cated within these formations has been excluded from further considerations. This narrows the research area for a suitable structure(s) to regions within/near the Carpathian Overthrust zone (Figure 8). At the same time, the number of analyzed gas deposits is reduced to 42.

Estimated Temperatures in Selected Deposits
Using depth data available online (i.a. [60][61][62]) and GIS software, the depths of deposits and average temperatures for selected natural gas deposits have been estimated. According to the established methodology, the average depths of hydrocarbon deposits were calculated based on Equation (1). Then, having the average depth value, the deposits were assigned to the respective interval. The Jodłówka (natural gas) field (No. 23) is presented as an example for held calculations.
Based on Equation (1) and data collated in Table 3, the average depth for Jodłówka field (No. 23) was calculated as follows: Thereby, the Jodłówka field was assigned to the E depth interval (2500-3500 m), where expected temperatures should exceed 80 °C.

Estimated Temperatures in Selected Deposits
Using depth data available online (i.e., [60][61][62]) and GIS software, the depths of deposits and average temperatures for selected natural gas deposits have been estimated. According to the established methodology, the average depths of hydrocarbon deposits were calculated based on Equation (1). Then, having the average depth value, the deposits were assigned to the respective interval. The Jodłówka (natural gas) field (No. 23) is presented as an example for held calculations. Table 3, the average depth for Jodłówka field (No. 23) was calculated as follows:

Based on Equation (1) and data collated in
x = (1952 + 3375)/2 x = 2663.5 Thereby, the Jodłówka field was assigned to the E depth interval (2500-3500 m), where expected temperatures should exceed 80 • C. Table 3. The wells throughout the Jodłówka natural gas field (based on [60][61][62]). Most of the natural gas deposits in the analyzed area are located within the 1000-1500 m average depth interval (interval B), where average temperatures do not exceed 40-50 • C ( Figure 9). Deposits with estimated temperatures exceeding these values, in the majority, lie far deeper (i.e., intervals D and E) and closer to the Carpathian Overthrust area. Accordingly, within this area, eleven deposits with an estimated temperature reaching even up to 80/90 • C have been distinguished (Figures 8 and 9  At this point, it is also worth emphasizing the fact that due to the large dispersion of the depth of individual boreholes within one deposit (especially in the case of larger ones, such as, e.g., Przemyśl), it would be better/safer to subject individual wellbores to detailed thermal analysis. For instance, the average estimated temperature for the largest of At this point, it is also worth emphasizing the fact that due to the large dispersion of the depth of individual boreholes within one deposit (especially in the case of larger ones, such as, e.g., Przemyśl), it would be better/safer to subject individual wellbores to detailed thermal analysis. For instance, the average estimated temperature for the largest of the analyzed oil fields-Przemyśl (No. 46), was estimated as 50-80 • C (Figure 9). However, taking into account specific boreholes, their location and depths, etc., real temperatures can fluctuate to a much greater extent, i.e., in this case, from about 40 • C to over 80 • C, which can significantly affect potential development options [92] and profitability (energy, financial and social, etc.) of a future geothermal project.

Characteristics of a Few Natural Gas Fields
From among the aforementioned eleven deposits that presented the highest estimated temperatures (Figure 9), several located along the Carpathian Overthrust (Figure 8 The multilevel natural gas field was discovered in 1981 near Pilzno (Figure 8). It covers an area of 487 ha [61]. According to Jawor [93], gas accumulation occurs in six sandstone levels between 18-33 m thick, isolated by claystone layers. The effective porosity of the reservoir rock was set at 20-25%, and the permeability reaches 1500 mD. The deposit rests at a depth of 1606-1773 m (Badenian and Sarmatian) and is located on the top of the anticline, cut transversely with the surface of the Carpathian overthrust (shielding from the southern side) [51]. The current concession for natural gas production is valid till the end of the year 2023 [61].

Kielanówka-Rzeszów Field (No. 26)
The deposit of high-methane natural gas in the western periphery of Rzeszów (Figure 8 [51]. Initial reservoir pressure was equal to 22.66 MPa, and discharge varied in the range of 627-1324 Nm 3 /min [51]. This deposit is associated with a strongly elevated Miocene structure of SE-SW extent, within which four reservoir levels were separated. Highmethane gas (98-99% methane, the rest are heavier hydrocarbons: ethane-propane-butane) occurs in sandy deposits. Each horizon presents varying degrees of shale content and has its own gas-water contour. Reservoir rocks have an average thickness of 24.5 m, average were obtained, which became the basis for the further exploration work. As a result, a multi-layer (24 accumulation levels were documented [65] natural gas deposit in the shaly sandy Miocene formation, where a rarely occurring (as for such a small gas field) resource of 1500-1800 million Nm 3 /km 2 was discovered [65]. According to Borys [65], 25-30% of the Miocene depth profile, in the center of the deposit, are gas-bearing levels. Their total thickness in the central part of the gas field is about 500 m [65], and the deposit surface exceeds 3 km 2 [64]. The Jodłówka deposit is considered to be a fairly regular anticlinal form limited by a steep wing to the south and shallow synclinal zones from the other directions. Its amplitude, calculated from the synclinic closures to the top, is on average about 40 m [64]. Lower horizons have greater closure amplitudes, while higher ones are gradually flattened what is characteristic for forms of a compact nature. Within the autochthonous Miocene profile, seven basic sandstone levels were separated (from VI to XII), and those, after appropriate analysis, were divided into further sub-horizons. Moreover, for most of them, separate contours of formation water can be established [64]. Current data [61] indicate that the field is located at the depth between 1840 and 3270 m and contour of bottom water is set as 1549.9-2742.9 m. The orientative temperature of the deposit varies between 62 and 90 • C dependent on the horizon, and ipso facto its depth [61]. The concession for natural gas production is valid to December 2042. 6.2.5. Przemyśl Field (No. 46) The Przemyśl gas field (Figure 8) is one of the largest in the country-the area is equal to 10,792.65 ha [61]. It contains the pools of Przemyśl, Jaksmanice, Maćkowice-Tuligłowy and Wapowce [63]. In 1958, in the contact zone of the Stebnik Overthrust and the Carpathian flysch with the autochthonous Miocene of the outer zone, a natural gas deposit was discovered in the vicinity of Przemyśl (exactly in Jaksmanice; Figure 8). It occurs in the autochthonous Miocene formations at a depth of 600-900 m (Jaksmanice pool). Deeper gas accumulation levels were discovered in 1962-1990 (simultaneously expanding the exploration area): the Maćkowice pool 900-1250 m, the Przemyśl pool 1400-1600 m. The deposits mentioned above constitute 3 main packages of productive levels with slightly different characteristics-the effect of the relatively complicated geological structure of the gas field. Generally speaking, the deposit belongs to the type of multilayer deposits (over 30 gas-bearing levels) occurring in the zone of regional elevation of Miocene formations toward the Carpathian Overthrust [51]. The deposit is lithologically shielded from the surface with a series of clay and shale Sarmatian deposits, while on the southern side by Stebnik and Carpathian Overthrusts. The Jaksmanice pool is made up of a large number of thin sandy layers saturated with gas, each with a separate contour of edge water. The average effective porosity of sandy reservoirs is about 19%. The content of bound water in the pores is the highest here and ranges from 19.5% to 41.4%, obtaining values getting smaller along with the depth and increase of grains' diameter in sandstones. The effective thickness of the Jaksmanice deposit is 580 m and the permeability ranges from 3-243.8 mD. High-methane gas (methane 95.4%) is extracted with a small admixture of heavier hydrocarbons and nitrogen (3.8%). The edge waters of specific horizons are of pressing character. They are medium mineralized (TDS-24.95 g/dm 3 ), calcium chloride type (according to Sulin classification), with a density of 1.03 g/cm 3 . The Maćkowice pool (900-1250 m) belongs to the multilayer deposit type. There are two main sandy levels at a depth of 958-1090 m and 1000-1104 m. The effective thickness of the sandstone saturated with high-methane gas amounts to 28 m. The average effective porosity was determined at 17-19.7%, and bound water fills 11% of the pore space. Waters present in the deposit are of the chloride-calcium type. Mineralization varies depending on the well being analyzed and is a maximum of 25.43 g/dm 3 (Jaksmanice-23 well). On the other hand, in the Jaksmanice-28 borehole, weakly mineralized acid-carbonate-sodium brine was encountered [51]. The deepest gas-bearing levels with high efficiency were named the Przemyśl pool. It is a multilayer deposit of the compact type-it occurs in a large, radiated anticline structure, cut off from the south with the overthrust of the Carpathians and the Stebnik unit [51]. The effective thickness of gas-bearing levels ranges between 5 m and 22 m. Porosity reaches 32% in higher levels; in others, it oscillates between 9.5-12.5%. The amount of water bound in the pore space is 6-18%, and the permeability reaches around 916 mD. The characteristics of individual parameters of the Przemyśl natural gas deposit depending on the reservoir level are summarized in Table 4. The sand volume of individual gas-bearing levels decreases in the south-east direction, while it increases in the west direction. By 2017, 64.1 billion cubic meters of natural gas and 61.3 thousand tons of formation water were extracted from the Przemyśl field, using over 300 wells [94]. However, the present concession for natural gas production is valid till the end of the year 2037. Natural gas from the Przemyśl pool has high methane content, whereas the brines taken from the edge and bottom water zone indicate considerable variation [51,66] and are of completely different characteristics from those of the Jaksmanice pool. Most of them are acid-carbonsodium brines (according to Sulin classification), with mineralization from 20-25 g/dm 3 . The measured temperature in the field reaches up even 82 • C [61], however it changes in line with local geothermal gradient.

Potential Hazards Connected to the Geothermal Energy Utilization in the Studied Area
Besides, geothermal energy is considered as a clean and sustainable source of renewable energy-utilization is environmentally friendly and causes hardly any hazards to the natural environment [95]-there are always potential hazards and/or problems that should be addressed.
In the case of natural environment protection, dependent on the kind of geothermal utilization, different perils can occur during the utilization of geothermal energy. Potential emissions of pollutants (CO 2 , SO 2 , NO x , particulate matter) into the atmosphere might occur. However, as stated by Tester [96], this problem is related mainly to the production of electricity in high-temperature geothermal fields and pollutants are of trace amounts in comparison to conventional power plants. Thereby, in the case of the Carpathian Foredeep, the possible emission of pollutants into the atmosphere might be neglected. Another hazard is connected to water and ground environments, which are in danger primarily due to the drilling works, nonetheless, during the (misconducted) exploitation of geothermal energy the negative effect might occur. Among the problems, one can distinguish possible contamination of groundwater [97], geothermal fluid reduction/exhaustion and land deformations [98] or cooling the geothermal water/rock formation down and risk of the so-called cold front breakthrough. These problems might occur anywhere, as they are connected to inappropriate management (exploitation/injection processes) of geothermal resources. The risk of its occurrence within the studied area cannot be evaluated at that time. The negative impact on the landscape and acoustic climate might occur as well, but usually, it is the most oppressive during the drilling stage [97].
While considering the utilization of geothermal energy, one important issue should be kept in mind-there is no justification for leading any geothermal project if there is no sufficient recipient in proximity. The commodity, heat in the case of geothermal energy within the analyzed area, cannot be stored without conversion to another type of energy as it degrades (opposite to hydrocarbons). Thus, to have a commercially viable project, the market needs to be in the close vicinity. That means greater proximity to people, and thereby requires greater environmental, formal as well as social concerns. If one wants to use the existing oil and gas wells, a problem related to their technical condition may arise, preventing its reconstruction (preceded by appropriate tests), and consequently, re-use for geothermal purposes [13,50]. Additionally, aggressive brines might constitute the problem within the analyzed area as geothermal waters contain elements, such as CO 2 or H 2 S, etc. [50]. The corrosive activity depends on the degree of mineralization (TDS), mainly the content of anions: Cl − , SO 4 2− , CO 3 − , CO 3 2− . In turn, the corrosion rate of metals in geothermal waters depends, among others, on physical and chemical conditions, mainly temperature, as well as type and speed of flow [50]. As these are only theoretical considerations, all these problems should be further re-identified and reassessed for specific wells intended for geothermal purposes within the analyzed area.

Discussion
The research area within the Polish part of Carpathian Foredeep (Figure 1) is relatively well-recognized, due to the production of hydrocarbons that have lasted many years (over 3000 boreholes; Figure 2). It also belongs to the second biggest petroleum province in Poland-the Lesser Poland or Carpathian Province [37]. Generally, the autochthonous Miocene of the Eastern part of the Carpathian Foothills is the sequence of sandstones, siltstones and claystones (Figure 3), that thickness total more than 3 km in the Southern part ( Figure 4). These are the Badenian-Sarmatian age formations [51], originating mainly from the erosion of the folded Carpathian Flysch [67]. The autochthonous Miocene formations of the analyzed area constitute accumulation horizons, mainly for natural gas (69 deposits; Table 2, Figure 6), although small reserves of crude oil have also been found here (6 deposits; Table 2, Figure 6). The paper mainly focused on natural gas deposits as frequently occurred and prospective structures in the context of the possibility of a re-use after the end of hydrocarbon production. These deposits present a stacked-pool, sporadically massive type. The reservoir rock consists mainly of sandstones, which are sealed with siltstone/claystone layers or tectonically shielded. As the authors cited in the text emphasized [51,66] formation water is a brine of different types and physico-chemical parameters (dependent on deposit and depth of its deposition). It accompanies not only entire deposits, but also individual gasbearing horizons. In the case of geothermal, the autochthonous Miocene of the presented part of Carpathian Foredeep is a prospective reservoir in terms of the potential use of geothermal water and energy [50]. Favorable conditions occur locally, depending on, among others, geological settings and the depth of selected deposit deposition. Along with the depth, reservoir, hydrogeological as well as thermal parameters (Table 5) are changing, and the encountered conditions are strictly dependent on the location and depth of the structure or precisely the borehole(s) chosen for analysis. Generally, the deeper one gets, the higher temperature is expected to occur ( Figures 5 and 9), however, the selected boreholes' capacity declines (or is already low) ( Table 1). Water-bearing horizons are significant in thickness, reaching up to 350 m (interval A). Mineralization hits maximum values of approx. 175 g/dm 3 in interval D. Petrophysical and hydrogeological parameters are similar if it comes to values throughout individual intervals (Table 5). However, it can be noticed that theoretically, the most favorable conditions occur at an interval of the depth of 500-1000 m bsl; nonetheless, the estimated temperature is not high enough for the efficient management of geothermal energy. In this case, it seems most reasonable to consider deeper-located reservoir structures that present higher estimated temperatures. The analyzed area of Carpathian Foredeep is well endowed with boreholes (abandoned or still operating, Figure 2), which translates into high possibility in terms of their potential reconstruction (although this depends directly on the technical condition of the hole and requires a pre-analysis/test) and destination for geothermal purposes. Theoretically, many of them could be suitable for the exploitation and injection of water after performing appropriate reconstruction operations [13,50] or for the implementation of different geothermal technology [28,35]. This is also a big advantage because, in the case of any geothermal investment, the drilling stage is the largest financial burden (even up to 80% [19])-the deeper the borehole is, the more expensive the projected investment. Drilling costs are estimated between 12-23 million PLN (i.e., around 2.7-5.2 million EUR [99], for holes with a depth of 1000 and 2500 m, respectively [50]. However, as the estimated cost calculations of the works related to the potential reconstruction of the 2164 m deep wellbore located within the Przemyśl gas field (Figure 8; No. 46) show, the re-use of the well may bring savings of several million [50]. Nonetheless, the final costs depend on the general technical condition of the borehole, with particular emphasis on the tightness of casing pipes, the repair of which can significantly increase the costs associated with reconstruction (rendering the process even more expensive than drilling the brand new hole). That is the main and most important reason for leading previous tests on the petroleum well selected for being re-used. The most desirable way to use geothermal energy around the world is to produce electricity; nonetheless, in the case of the Carpathian Foredeep, it seems rather unlikely, due to the temperatures being too low and/or potential capacities of boreholes [52,53]. Nevertheless, there are great possibilities for geothermal energy management in the recreation and balneological sector (depending on the physico-chemical parameters of water), agriculture, agribusiness, industry, etc., and with appropriate sociodemographic conditions directly in the district heating sector [45,46,50] or using the heat pump technology [50]. However, in order to improve the efficiency of possible geothermal installation operations, the cascade system is recommended. After the energy transfer in the heating system, the optimum geothermal development might be developed, like in a cascade of a few successive elements, e.g., geothermal swimming pool, warming of greenhouses, wood drying, and other uses up to the production of cosmetics or food.

Conclusions
Considering geological and reservoir issues, this analysis also proves that the subject of using AOGWs for geothermal purposes is being considered by scientists around the world (incl. [16]). Solutions that are supposed to enable the efficient, economically justified and environmentally friendly use of geothermal energy are sought and tested within petroleum fields, worldwide. The use of AOGWs creates inherent opportunities to focus on hydrocarbons structures as potential reservoirs of geothermal energy (water and/or heat). Being endowed with numerous petroleum wells (in various current development states and technical conditions), the research area is prospective to become the distinguishable (both in Poland and around the globe) geothermal region. The most promising areas occur near the area of the Carpathian Overthrust-natural gas deposits (and deep boreholes) are abundant there (Figure 8), and located deeper (up to 3500 m), so estimated temperatures can reach locally even 100 • C. Out of the most promising regions the following ones might be distinguished (  65). However, to indicate one/several specific deposits that might be highly prospective to be used for geothermal energy extraction, further and detailed analysis should be carried out. Moreover, based on detailed borehole data, focusing not only on the deposit as a whole, but on individual boreholes.
Summing up, it can be easily noted that the occurrence of hydrocarbon deposits within the analyzed region of the Carpathian Foredeep is determined by local geological settings. What is more, geology has a strong influence on the condition and quality of main geothermal parameters, such as temperature, the occurrence of aquifers, physical and chemical properties of water, porosity and permeability of rocks, etc. However, due to the specific geological structure of the studied area, geothermal conditions within one deposit may differ significantly, both within vertical and horizontal profiles. Yet, due to their form and overall general characteristics, natural gas deposits in the eastern part of the Carpathian Foredeep can be an excellent (sufficient for primarily heat production) geothermal pool. Moreover, the presence of reservoir waters with specific physicochemical parameters creates potential opportunities for their use as an energy carrier by the implementation of the appropriate technology. Since the analyzed area is a petroleum province, there are any hundreds of wells in different technological and development states, which gives a high probability of successful reconstruction and the re-use of AOGWs for geothermal purposes, and thereby generate economic and ecological profits. The next important factor for any geothermal project is proximity to potential recipients and should be considered as a key factor while choosing the definite location of the potential geothermal system based on hydrocarbon well. It needs to be highlighted that the determination of a specific hydrocarbon structure(s)/region(s) and its geothermal potential requires further profound analysis that should be carried out in the context of the entire deposit, as well as individual wells.