/*
Theme Name: GP Agency Дочерняя тема
Theme URI:  
Author: Goodwin
Author URI: https://goodwinpress.ru/
Version: 1.0.0
Description: Адаптивность, приятный внешний вид, готовые блоки на Главной, высокая скорость загрузки, дополнительные страницы для витрины и карточек проектов, услуг, контактов. Получение заявок через поп-ап и формы Contact Form 7. Встроенная кнопка для чатов под популярные мессенджеры. Микроразметка. Отложенная загрузка изображений и видео. Блог. 
Text Domain: gp-agency
Template: gp-agency
 */

.backtop {
	background-color: #27376b;
	border: 1px solid #27376b;
	transition: all 0.3s ease-in
}
.backtop:hover {
	background-color: #4F63A7;
	border: 1px solid #4F63A7;
	transition: all 0.3s ease-in
}
.menu-trigger {
    top: 0
}

.service-item__subtitle {
    border-bottom: 0;
    padding: 0;
}

.contact-page__map {
    padding: 0px;
    border: 0px;
}

@media (min-width: 1000px) {
	.service-item {
			flex-basis:23%;
			margin-bottom: 1rem;
	}
}
.home-service-section .flex-port {
    justify-content: center;
		gap: 2rem;
}
.home-service-section .port {
    max-width: 1400px
}
.project-item__caption {
    background: rgba(39, 55, 107, .65);
}
.project-thumbnail:before {
    opacity: 0.7;
}
.feedback-content {
	background: rgba(39, 55, 107, .9)
}
footer, .credits {
	background-color: #27376B;
}
.footer__logo {
	filter: brightness(0) saturate(100%) invert(100%);
}
.site-title, .text-title {
    top: 1rem;
    width: 180px;
}
.service-item__title {
    height: 85px;
	  display: flex;
    align-items: center;
	  justify-content: center;
}
@media only screen and (max-width: 1280px) {
    .home-top-section__image {
        height: 120vh;
		}
}
@media only screen and (max-width: 400px) {
    .home-top-section__image {
        height: 52vh;
    }
}
/*@media only screen and (max-width: 768px) {
    .service-item {
        flex-basis: 48%;
    }
}
@media only screen and (max-width: 600px) {
    .service-item {
        flex-basis: 70%;
    }
}*/
footer {
    padding-top: 2rem;
}
.footer__contacts {
    width: var(--full-width);
    max-width: 700px;
    margin: 2rem auto;
    padding: 0 1rem;
}
.footer__contacts {
    margin: 1rem auto 0;
}
.footer__phones {
    margin-top: 1rem;
}
.footer__menu {
    padding: 1rem 0 0;
}
.credits {
    padding: 1rem 2rem;
}
.advantage-item__title {
    height: 42px;
    display: flex !important;
    align-items: center;
    justify-content: center;
}
@media (max-width: 700px) {
	.container {
		flex-direction: column;
	}
	.image-block {
		margin-right: 0 !important;
		margin-bottom: 20px;
	}
}
.header__inner-nav {
    left: 45%;
}
.header__inner-nav li {
    font-size: 1rem;
}
@media (max-width: 1400px) {
	a.header-contact {
    font-size: 1rem;
	}
}
@media (max-width: 1160px) {
	.feedback-item {
    padding: 9rem;
	}
}
@media only screen and (max-width: 500px) {
    .feedback-item {
        padding: 0;
    }
}
/*.feedback-content {
    padding: 1rem 2rem;
    width: auto;
    margin-left: auto;
    color: #fff;
    font-size: .9rem;
    line-height: auto;
}
.feedback-item {
    padding: 6rem 0 0 0;
}*/
.sertificate-block {
	display: flex;
	flex-wrap: nowrap;
	justify-content: space-between;
	align-items: stretch;
	gap: 20px;
}
.sertificate-block a {
	flex-basis: 50%;
}
.sertificate-block div {
	flex-basis: 50%;
}
.sertificate-block figure {
	flex-basis: 50%;
}
.sertificate-block figure img,
p a img {
	height: 250px;
	width: auto;
	max-width: 100%;
}
@media (max-width: 1000px) {
	.sertificate-block figure img,
	p a img {
		height: 180px;
		width: auto;
		max-width: 100%;
	}
}
@media (max-width: 768px) {
	.sertificate-block figure img,
	p a img {
		height: auto;
		width: auto;
		max-width: 100%;
	}
}
figcaption {
	text-align: center;
	font-size: 14px;
	/*margin-top: 20px;*/
}
@media (max-width: 768px) {
  .sertificate-block {
		flex-direction: column;
		align-items: center;
		gap: 5px !important;
  }
		.sertificate-block p {
			margin-bottom: 5px;
		}
}
@media only screen and (max-width: 768px) {
   .home-service-section .service-item {
        margin-bottom: 1rem;
    }
}



.feedback-content p
{
	margin-bottom: 8px;
	font-size: 1rem;
}

.feedback-item 
{
	min-height: 800px;
}



.home-top-section__image.lazy-loaded {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* от 400px до 600px */
@media (min-width: 400px) and (max-width: 600px) {
    .home-top-section__image.lazy-loaded {
        min-height: 350px;
    }
}

/* от 600px до 1000px */
@media (min-width: 600px) and (max-width: 1000px) {
    .home-top-section__image.lazy-loaded {
        min-height: 800px;
    }
}

/* от 1000px до 1280px */
@media (min-width: 1000px) and (max-width: 1280px) {
    .home-top-section__image.lazy-loaded {
        min-height: 1200px;
    }
}

/* до 400px */
@media (max-width: 399px) {
  .home-top-section__image.lazy-loaded {
      min-height: 200px; /* или другая подходящая высота */
  }
}

.home-top-section__image.lazy-loaded {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9; /* или выстави нужное соотношение, например 4/3 */
  object-fit: cover; /* или contain — зависит от того, нужно ли обрезать */
}

@media (max-width: 400px) {
  .home-top-section__image.lazy-loaded {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important; /* показывать картинку полностью */
  }

  /* если у родителя есть фиксированная высота */
  .home-top-section__image.lazy-loaded,
  .home-top-section__image.lazy-loaded img {
    max-height: none !important;
  }
}


.feedback-item {
    display: flex;
    align-items: flex-end; /* прижимаем вложенный .flex-port к низу */
    background-size: cover;
    background-position: center;
    min-height: 400px; /* задай нужную минимальную высоту */
}
.feedback-item .flex-port {
    width: 100%;
}



@media (min-width: 1400px) and (max-width: 1920px) {
  .feedback-item {
    min-height: 600px; /* подбирается индивидуально, можно увеличить +150–200px */
  }
}

.page-id-693 .home-action-section.last-section.single-action {
    display: none !important;
}

@media (min-width: 1281px) and (max-width: 1535px) {
	h1.home-top-section__title {
		margin-bottom: 3rem;
		margin-top: 3rem;
	}
}


.feedback-content {
    padding: 1rem 2rem;
    width: auto;
    color: #fff;
    font-size: .75rem;
    line-height: 1.4;
}
.feedback-item {
    padding: 10rem 0 0;
}

#popup-order .popup__personal-data-warning {
    margin-top: 1rem;
}