/* lg */ 
@media (min-width: 1200px) {


.row { /***** установки шрифта и размера для *****/
		font-size: 20px !important;
}


}

/***********************************/
/***********************************/
/* sm  промежуточный размер экрана */
/***********************************/
/***********************************/
@media (min-width: 768px) and (max-width: 1199px) {

	  
	.social-icons ul li {
		margin-bottom: 5px !important;
		margin-right: 1px !important;
		padding-right: 2px !important;
	}
	.social-icons a {
		border-radius: 25%;
		border:1px solid;  
		height: 30px  !important;
		width: 30px  !important;
		line-height: 30px  !important;
		font-size: 16px  !important;
	}

	.social-icons a:hover {
		-webkit-transform: scale(1.2)  !important;
		transform: scale(1.2)  !important;
	}
			
	.carousel-inner .item p {
		padding-left: 15%; 
		padding-right: 15%;
		font-size: 14px;
	}
		  
	.price p {
		font-size: 25px !important;
		height: 50px;
		line-height: 30px;
		width: 100%;
	}
	.single-table h3{
		font-size: 18px;
		height: 60px;
		line-height: 36px;
		width: 100%;
	}
	.back .single-table p {
		font-size: 12px;
		line-height: 24px;
		width: 100%;
	}

	.single-table p {
		font-size: 16px;
		width: 100%;
		padding-bottom: 0px !important;
	}
	  
	.price span {
		font-size: 20px;
		margin-top: 27px;
	}
	.single-table ul {
		list-style: none;
		padding: 0;
		margin: 10px 0;
	}
	  
	.single-table ul li {
		line-height: 24px;
		font-size: 12px;
	}

	.single-table a {
		font-size: 16px;
	}
  
	.corner-label {
		font-size: 14px !important;
		font-weight: bold;
	}

	.fixed-height-list {
		height: 250px; /* Фиксированная высота */
	}

	.btn-signup {
		padding: 10px 20px;
	}


	.folio-overview a {
		margin-top: 40px;
	}
	  
}

/***********************************/
/***********************************/
/* xs */
/***********************************/
/***********************************/

@media (max-width: 767px) {
	

	html, body {
		width: 100%;  /* Растягивается на всю ширину экрана */
		max-width: 100%; /* Подстраховка, если что-то всё же пытается выйти */
		margin: 0; /* Убираем любые отступы */
		padding: 0; /* Убираем внутренние отступы */
		overflow-x: hidden; /* Запрещаем горизонтальный скролл */
		font-size: 14px;
		overflow-y: auto !important; 

	}


	h6 { /*****8 установки шрифта и размера для заголовка сайта*****/
		font-size: calc(var(--resize_index)*5) !important;
		text-align: center;
	}
	 
	/*
	  .gradient-text {
		-webkit-background-clip: text !important;
		background-clip: text !important;
		-webkit-text-fill-color: transparent !important;
		background: linear-gradient(90deg, var(--menu_basic_color) calc(10% + 20vw), var(--doc_back3_color) calc(30vw));
	} */


	#services img,
	#about-us img:not(.img-responsive2),
	#contact img,
	#team img,
	#wed_portfolio img:not(.img-responsive2) {
	  opacity: 1 !important;
	}
	
	.img-responsive {
		height: auto !important;
	}
	  
	.img-wrapper {
	border-radius: 0px !important;
	}
	  
	.img-overlay {
		background: rgba(0, 0, 0, 0) !important; /* начальное затенение */
	  }
	  
	#home-slider {
		height: calc(var(--resize_index)*75) !important;
	}

	#home-slider .caption h5 {
		font-size: calc(var(--resize_index)*6) !important;
	}

	#home-slider h1 {
		font-size: 25px !important;
	}

	#home-slider .caption {
		font-size: 15px;
		padding: 0 30px;
	}

	#home-slider .left-control, 
	#home-slider .right-control {
		font-size: 20px;
		height: 30px;
		line-height: 25px;
		width: 30px;
	}

	#home-slider:hover .right-control {
		right: 15px;
	}

	#home-slider:hover .left-control {
		left: 15px;
	}
	
	.slider-caption h5{
		font-size: calc(var(--resize_index)*6.5)!important;
	}

	.folio-info h5, h5{
		font-size: calc(var(--resize_index)*6.5)!important;
	}

	.whole_slider { /* Основной контейнер */
	width: 100vw!important; /* Задаем ширину 100% для основного контейнера */
	}

	.caption .btn-start {
		font-size: 12px;
		padding: 10px 30px;
	}
	
	.navbar-header {
		max-width: 100%;
		width: 100%;
		height: 90px; /* Высота навбара */
		line-height: 90px; /* Совпадает с высотой */
	}
	  
	.navbar-brand {
		margin-left: 65px !important;
	}
	#footer .navbar-header {
		max-width: 100%;
		width: 100%;
		height: 120px !important; /* Высота навбара */
		line-height: 120px !important; /* Совпадает с высотой */
	}
	  
	#footer .navbar-brand {
		margin: 0px auto !important;
	}


	/* Стили для первого текстового названия */
	.navbar-brand .first-title {
		font-size: calc(var(--resize_index)*5.3) !important;
	}
	
	/* Стили для второго текстового названия */
	.navbar-brand .second-title {
		font-size: calc(var(--resize_index)*3.5) !important;
	}
  

	.navbar-toggle {
	  border: 0px solid var(--back_basic_color);
	  padding: 20px 20px;
	  margin: 20px 0px;
	}

	.navbar-toggle .icon-bar {
	  background-color: var(--back_basic_color);
	}

	.navbar-right {
		width: 100%;
		padding-left: 90px;
		padding-right: 90px;

		margin: 0px auto;
	}

	/**** цвет текста кнопок и меню ****/
	.navbar-right li a,
	.navbar-right li.active a {
		color: var(--back_basic_color);
	}
  
	#start-slider p{
		font-size: calc(var(--resize_index) * 4) !important;
	  }
	  
	

	/* Отключение анимации #contact_menu_item */
	#contact_menu_item {
	animation: none !important; /* Убираем анимацию для активного элемента */
	opacity: 1 !important; /* Устанавливаем непрозрачность */
	}

	#flag_wed,
	#flag_teach {
		display: block !important;
	}
	


	.navbar-right li a {
		text-align: center;
		padding-bottom: 8px;
		padding-top: 10px;
	}


	#main-menu{
		position: absolute;
		margin: 0px auto;
		background: var(--menu_basic_color);
		right: 0px; /* Убираем к правому краю */
		left: 0px;
		max-width: 100vw; /* Задаем фиксированную ширину */
		width: 100vw;
		max-width: 100vw;
		height: 100vh;
		max-height: 100vh;
		z-index: 999;
	}
	.navbar-collapse {
		height: 100vh;
		max-height: 100vh;
	}


	/*services*/
	section {
		padding: 45px 0;
	}

	.heading {
		font-size: 14px;
		padding-bottom: 45px;
	}

	.heading h2 {
		font-size: 26px;
	}

	.service-info h3 {
		font-size: 20px;
	}

	.our-services .col-sm-4 {
		margin-bottom: 32px;
		padding-bottom: 20px;
	}

	.our-services .col-sm-4:nth-child(4), 
	.our-services .col-sm-4:nth-child(5), 
	.our-services .col-sm-4:nth-child(6) {
		padding-top: 0;
	}

	.service-icon {
		font-size: 30px;
		height: 65px;
		line-height: 62px;
		width: 65px;
	}

	.our-services .col-sm-4:hover .service-icon:before {
		height: 90px;
		width: 90px;
	}

	.about-info {
		text-align: left;
		margin-bottom: 50px;
	}

	.team-member {
		margin-bottom: 50px;
	}

	.team-members .col-sm-3, 
	.pricing-table .col-sm-3, 
	#portfolio .col-sm-3, 
	.blog-posts .col-sm-4  {
		width: 50%;
		float: left;
	}

	.social-icons ul li a {
		font-size: 14px;
		height: 30px;
		line-height: 30px;
		width: 30px;
	}

	.count .col-xs-6 {
		margin-bottom: 35px;
	}

	#features {
		min-height: 330px;
	}

	#features i {
		font-size: 35px;
	}

	#features h3 {
		font-size: 25px;
	}

	.price span {
		font-size: 50px;
		margin-top: 25px;
	}

	.price {
		font-size: 28px;
	}

	.single-table ul {
		margin-top: 22px;
	}

	.single-table ul li {
		font-size: 14px;
		margin-top: 15px;
	}

	.btn-signup {
		font-size: 12px;
		margin-top: 25px;
		padding: 10px 35px;
	}

	.single-table{
		margin-bottom: 40px;
		padding: 20px;
	}

	.entry-header h2 {
		line-height: 20px;
	}

	.load-more {
		margin-top: 35px;
	}

	.btn-loadmore {
		font-size: 12px;
		padding: 15px 75px;
	}

	#contact-us .heading {
		padding-top: 35px;
	}

	.contact-info {
		padding-left: 0;
	}

	#footer .footer-bottom {
		text-align: center;
	}

	.footer-bottom p.pull-right {
		float: none !important;
	}
	
	#portfolio .folio-item:hover .folio-image {
		-webkit-transform: scale(2.3) rotate(-15deg) !important;
		transform: scale(2.3) rotate(-15deg) !important;
	}
	  
	
	.folio-overview a {
		margin-top: 30px;
	}



}

/* XS Portrait */
@media (max-width: 479px) {
	body {
		width: 100%;  /* Растягивается на всю ширину экрана */
		max-width: 100%; /* Подстраховка, если что-то всё же пытается выйти */
		margin: 0; /* Убираем любые отступы */
		padding: 0; /* Убираем внутренние отступы */
		overflow-x: hidden; /* Запрещаем горизонтальный скролл */
		font-size: 14px;
	}
  
	h5 a{ /*****8 установки шрифта и размера для заголовка сайта*****/
		font-size: calc(var(--resize_index)*15) !important;
	  }

	#cases_ h5 a{ /*****8 установки шрифта и размера для заголовка сайта*****/
	font-size: calc(var(--resize_index)*6.5) !important;
	}

	
	  #start-slider .caption h1 {
		font-size: calc(var(--resize_index)*7) !important;
		font-weight: 400;
	}
	#start-slider{
		text-align: center !important;	
	}


	#start-slider .left-control, 
	#start-slider .right-control,
	.left-control,
	.right-control {
		top: 50%; /* Центрирование по вертикали на 50% */
		transform: translateY(-50%); /* Сдвиг на -50% для точного центрирования */
		height: calc(var(--resize_index)*6)!important;
		width: calc(var(--resize_index)*6)!important;
		line-height: calc(var(--resize_index)*4) !important;
		font-size: calc(var(--resize_index)*5)!important;
	}

	.row.justify-content-center {
		display: block !important; /* Устанавливаем flexbox для родительского контейнера */
	  }
	  
	.parallax {
	padding: 25vh 0 !important; /* Устанавливаем вертикальные отступы секции */
	}
		  

	.team-members .col-sm-3, 
	.pricing-table .col-sm-3, 
	#portfolio .col-sm-3, 
	.blog-posts .col-sm-4 {
		width:100%;
		float: none;
	}

	.slider_checked {
		top: 50%; /* Смещение вниз относительно родительского контейнера */
		left: 50%; /* Смещение вправо относительно родительского контейнера */
		font-size: calc(var(--resize_index)*15)!important;
	  }
	  

	.single-table ul li {
		line-height: 12px;
		font-size: 12px;
	}

	.whole_slider .img-responsive {
		display: block;
		max-width: 90% !important;
		width: 90% !important;
		margin: 10px auto;
	}

	.img-responsive {
		display: block !important;
		max-width: 100% !important;
		width: 100% !important;
		height: auto;
		margin: 10px auto;
	}

	  
	.img-responsive {
		display: block;
		max-width: 90%;
		height: auto;
		margin: 0px auto;
	}

	.img-responsive2 {
		display: block;
		max-width: 100%;
		height: auto;
		margin: 0 auto;
	}


	.folio-overview a {
		margin-top: 0px;
	}

	  
  
	#about-us {
		background-size:  calc(var(--resize_index)*60) !important; /* Растягивает изображение */
	}

	#contact-form-image {
		background-size:  calc(var(--resize_index)*45) !important; /* Растягивает изображение */
	}

	#wed_FAQ {
		background-size:  calc(var(--resize_index)*45) !important; /* Растягивает изображение */
		background-position: left 7vh !important;
	}

	   /* Контейнер для флиппера */
 	.flip-container {
	height: calc(var(--resize_index)*155) !important; /* Высота флиппера */
  	}
  
  	.single-table {
	height: calc(var(--resize_index)*155) !important;
  	}
	.single-table h3{
	font-size: 18px !important;
	height: 60px;
	line-height: 36px !important;
	width: 100%;
	}


  .price {
	font-size: calc(var(--resize_index)*3) !important;
	line-height: calc(var(--resize_index)*5) !important;
  	}

	.fixed-height-list {
		height: calc(var(--resize_index)*85) !important; 
		margin-top: 0px !important;
	}
	.fixed-height-list2 {
		height: calc(var(--resize_index)*55) !important; 
		margin-top: 60px !important;
	}

	.fixed-height-list li,
	.single-table li {
	  padding-left: 0px !important;
	}
	.fixed-height-list li::before,
	.single-table li::before {
	  left: 15px !important; /* Отступ номера строки  */
	}
	.back .single-table p {
		font-size: 12px;
		line-height: 24px;
		width: 100%;
	}

					
}	




