/*
Theme Name: p-share-template
*/

.hero-area {

}

.hero-area__container {
/* 	padding: 60px 30px 0 30px; */
	padding: 60px 50px 60px 50px;
	display: flex;
	flex-direction: column;
	border-radius: 38px; 
	margin-top: 100px;
  width: 100%;
  max-width: 1130px;
/*   min-height: 800px; */
	position: relative;
	overflow: hidden;
	background: #000B30;
}

.hero-area__header {
	border-radius: 30px;
	position: relative;
/* 	background: url(https://p-share.ru/wp-content/uploads/2025/10/main.png) center/cover no-repeat;  */
/* 	background: url("https://p-share.ru/wp-content/uploads/2025/10/main.png") center/contain no-repeat; */
  background-color: #181f31;
	width: 100%;
/* 	display: flex; */
/* 	justify-content: flex-start; */
/* 	height: 480px; */
	margin-bottom: 40px;
	overflow: hidden;
}
.hero-area__header img {
	  width: 100%;
  height: 100%;
	border-radius: 30px;
  object-fit: contain; /* картинка всегда целиком */
/* 	position: absolute; */
/*     top: 0; */
	display: block; 
}

.hero-area__header_title-wrap {
/* 	background: #181f31; */
	background: #000B30;
	height: 150px;
	display: flex;
/*     justify-content: center; */
    align-items: center;
	padding: 30px 20px;
    width: 340px;
	border-bottom-right-radius: 30px;
	position: absolute;
	z-index: 2;
}

.hero-area__header_title {
	font-size: 90px;
	line-height: 96px;
/* 	color: #181f31;  */
	color: #000B30; 
  	text-shadow: 
     -1px -1px 0 #00B0F4,  
      1px -1px 0 #00B0F4,
     -1px  1px 0 #00B0F4,
      1px  1px 0 #00B0F4;
	margin: 0;
	z-index: 2;
}

.hero-area__info {
	display: flex;
	flex-direction: column;
	font-family: 'Ubuntu', sans-serif;
}

.hero-area__info_title {
	font-size: 24px;
	margin-bottom: 15px;
}
.hero-area__info_subtitle {
	font-size: 24px;
	margin-bottom: 15px;
}

.hero-area__info_btn {
	position: relative;
/* 	padding: 20px 30px; */
}
.hero-area__info_btn::after {
	content: url(https://p-share.ru/wp-content/uploads/2025/10/group-2385.svg);
	position: absolute;
	top: -40px;
	left: 220px;
	
}
.hero-area__btn {
	padding: 15px 30px;
	z-index: 2;
}

.hero-area__road {
	position: absolute;
	right: 0;
/* 	bottom: -15%; */
/* 	width: 500px; */
	bottom: 0;
	width: 400px;
	
}

.hero-area__road.hidden {
    opacity: 0;
    pointer-events: none;
  }
@media (max-width: 1580px) {
	.hero-area__container {
		margin-top: 120px;
		
/* 	padding: 30px 30px 0 30px; */
/* 	margin-top: 70px; */
	}
	.hero-area__header {
/* 		margin-bottom: 20px; */
	}
}


@media (max-width: 1250px) {
	.hero-area__container {
		padding: 40px 30px 30px 40px;
		max-width: 100%;
		margin-top: 50px;
	}
	.hero-area__info {
/* 		margin-top: -20px; */
	}
	.hero-area__info_title {
		margin-bottom: 20px;
	}
	.hero-area__road {
		width: 350px;
	}
}

@media (max-width: 1138px) {
	.hero-area__road {
		width: 400px;
		bottom: 0;
	}
}


@media (max-width: 900px) {
	.hero-area__road {
		width: 300px;
/* 		bottom: -40%; */
	}
}

@media (max-width: 768px) {
	.hero-area__road {
/* 		bottom: -30%; */
	}
}

@media (max-width: 998px)  {
	.hero-area__header_title {
		font-size: 76px;
    	line-height: 76px;
	}
	.hero-area__info_title {
    	font-size: 20px;
	}
	.hero-area__info_subtitle {
    	font-size: 20px;
	}
}


@media (max-width: 768px)  {
	.hero-area__container {
/* 		padding: 30px 30px 30px 30px; */
	}
	.hero-area__header {
		height: 280px;
	}
	.hero-area__header img {
		object-fit: cover;
	}
		.hero-area__road {
		display: none;
	}
	.hero-area__header .wp-block-group__inner-container, .hero-area__header .wp-block-image {
		height: 100%;
	}
	.hero-area__container {
		margin-top: 0;
	}
}
@media (max-width: 550px)  {
	.hero-area__container {
        padding: 40px 20px 40px 20px;
    }
	.hero-area__header_title-wrap {
		height: auto;
		width: 240px;
		padding: 20px 20px;
	}
	.hero-area__header_title {
		font-size: 56px;
    	line-height: 58px;
	}
	.hero-area__info_title,
	.hero-area__info_subtitle {
		font-size: 18px;
		line-height: 24px;
	}

}

@media (max-width: 360px) {
	.hero-area__info_btn::after {
		left: 180px;
	}
}

/*  cases  */
.cases {
	padding: 0 0 70px 0;
}
.cases_ {
/* 	padding: 30px 0; */
}

.cases_main-title {
	margin-bottom: 0;
}

.cases__item {
	border-radius: 23px;
	overflow: hidden;
	background: #fff;
	transition: all 0.3s ease;
}

.cases__container {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 40px 20px;
}
	





.cases__item_image {
	height: 185px;
	margin-bottom: 20px;
	overflow: hidden;
	position: relative;
	
}
.cases__item_image img {
	object-fit: cover;
	object-position: center center;
	width: 100%;
	height: 100%;
	
}





.cases__item_image.in_process {
	background: gray;
    border-radius: 30px;
    z-index: 100;
}

.cases__item_image_ {
	flex: 0 0 auto;
    max-width: 280px;
    z-index: 10;
    position: relative;
    margin-right: -80px;

    /* Заглушка */
    background-color: #ddd; /* светло-серый фон */
    border-radius: 20px;
    width: 280px;
    height: 300px;

    /* Чтобы текст центрировался */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 30px;
    color: #555; /* цвет текста */
    font-weight: bold;
}



.cases__item_image_::after {
    content: "В процессе";
}

.cases__item_info {
	padding: 0 16px 24px 16px;
}




.cases__item_info_title h3 {
	margin: 0 0 15px 0;
	text-align: left;
	font-size: 20px;
	font-weight: 700; 
}

.cases__item_text {
	margin-bottom: 30px;
	font-size: 16px;
}

.cases__item_text p {
	font-size: 14px;
}

.cases__item_text_adress {
	margin-bottom: 15px;
	color: #777;
	font-size: 12px;
}

.cases__item_text_done {
	margin-bottom: 15px;
	font-size: 14px;
	color: #777;
}
.text_done_hidden {
	height: 40px;
	transition: all 0.5s ease;
	margin-bottom: 0;
}

.cases__item_text_places {
/* 	font-size: 14px; */
}

.cases__item_btns {
	display: flex;
	gap: 15px;
}

.cases__item_btn-map {
	font-weight: 600;
	padding: 10px 50px;
	min-width: 250px;
}

.cases__item_btn-web-version {
	padding: 10px 30px;
}


        .read-more {
            color: #0132C9;
            cursor: pointer;
            text-decoration: underline;
			display: block;
			position: relative;
			margin-bottom: 15px;
			
        }
.read-more::after {
	position: absolute;
	top: -20px;
	left: 0;
	width: 100%;
	height: 20px;
	background-image: linear-gradient(to bottom, rgba(255,255,255,0), #fff);
	content: '';
}
@media (max-height: 730px) {
	.hero-area__header {
		max-height: 280px;
	}
}


/* Локальный override (только для .cases__item_info и потомков) */
/* .cases__item_info {
  box-sizing: border-box !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;     
  max-width: 100% !important;
  width: auto !important;
  overflow: hidden !important; 
  padding: 16px !important;
} */

/* Позволяем всем прямым детям сжиматься */
/* .cases__item_info > * {
  min-width: 0 !important;
  max-width: 100% !important;
} */

/* Гарантируем перенос текста внутри */
/* .cases__item_info p,
.cases__item_info .cases__item_text_adress,
.cases__item_info .cases__item_text_done,
.cases__item_info .cases__item_text_places {
  display: block !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
  margin: 0 0 8px 0 !important;
} */

/* Кнопки внутри карточки не должны тянуть ширину */
/* .cases__item_info .cases__item_btns,
.cases__item_info .cases__item_btns > * {
  flex-shrink: 1 !important;
  min-width: 0 !important;
  max-width: 100% !important;
} */

/* Если внутри есть flex-контейнеры — разрешаем перенос */
.cases__item_info .cases__item_btns {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

/* Делаем изображения подстраивающимися */
/* .cases__item_info img {
  max-width: 100% !important;
  height: auto !important;
  display: block !important;
} */
@media (max-width:991px) {
	.cases__container {
	
	grid-template-columns: 1fr 1fr;
}
	
}
@media (max-width: 850px) {
	.cases__container {
	gap: 20px 16px;
}
	
	
	


	
	
	
}




@media (max-width: 530px) {
	
	
	.cases__container {
	
	grid-template-columns: 1fr;
}

}