/*   
Theme Name: Веха New
Author: Erique
*/

#bingc-phone-button.bingc-show {
    right: 2%;
    left: auto !important;
}
#bingc-phone-button div.bingc-phone-button-tooltip.bingc-phone-button-tooltip-bottom-left {
    left: auto !important;
    right: 6px;
}
#bingc-phone-button div.bingc-phone-button-tooltip.bingc-phone-button-tooltip-bottom-left svg.bingc-phone-button-arrow {
    right: 29px;
    left: auto !important;
}
.sub-menu a[href]:hover {
    text-decoration: underline;
}
.wsp-pages-title {
    display: none;
}
.wpml-ls-item-toggle {
    white-space: nowrap;
}
body.archive .padding-wrap,
body.single-post .padding-wrap {
    padding-top: 127px;
}
body.archive .breadcrumbs {
    margin-bottom: 34px;
}
body.archive .text-content ul {
    padding: 0;
    margin: 0 -18px;
    display: flex;
    flex-wrap: wrap;
}
body.archive .text-content {
    margin-top: 40px;
}
body.archive .text-content ul li {
    width: 33.33333333%;
    display: inline-block;
    padding: 0 20px 20px;
    float: left;
}
body.archive .text-content ul li::before {
    display: none;
}
body.archive .text-content ul li img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    margin-bottom: 20px;
}
body.archive .text-content ul li a:hover::before {
    background-color: #2C3E4C;
}
body.archive .text-content ul li a.img::before {
    display: none;
}
body.archive .pagination a {
    display: inline-block;
    margin: 0 10px;
}
@media (max-width: 899px) {
    body.archive .text-content ul {
        margin-left: -10px;
        margin-right: -10px;
    }
    body.archive .text-content ul li {
        padding: 0 10px;
    }
    body.archive .text-content ul li img {
        height: 170px;
    }
    .pagination a, .pagination span {
        display: inline-block;
        margin: 0 14px;
    }
}
@media (max-width: 767px) {
    body.archive .text-content ul li {
        width: 50%;
    }
    body.archive .text-content ul li img {
        height: 190px;
    }
    body.archive .pagination a, .pagination span {
        font-size: 16px;
    }
    body.archive .pagination a.prev,
    body.archive .pagination a.next {
        font-size: 0;
        position: relative;
        width: 20px;
    }
    body.archive .pagination a.prev::before,
    body.archive .pagination a.prev::after {
        content: '';
        width: 13px;
        height: 2px;
        background-color: #2C3E4C;
        transform-origin: center center;
        transform: rotateZ(45deg);
        position: absolute;
        left: 0;
        top: 13px;
    }
    body.archive .pagination a.prev::before {
        transform: rotateZ(-45deg);
        top: 5px;
    }
    body.archive .pagination a.next::before,
    body.archive .pagination a.next::after {
        content: '';
        width: 13px;
        height: 2px;
        background-color: #2C3E4C;
        transform-origin: center center;
        transform: rotateZ(-45deg);
        position: absolute;
        right: 0;
        top: 13px;
        left: auto;
    }
    body.archive .pagination a.next::before {
        transform: rotateZ(45deg);
        top: 5px;
    }
    body.archive .pagination .nav-links * {
        float: left;
    }
    body.archive .padding-wrap,
    body.single-post .padding-wrap {
        padding-top: 67px;
    }
}
@media (max-width: 480px) {
    body.archive .text-content ul li {
        width: 100%;
        float: none;
    }
}
@media (max-width: 420px) {
    body.archive .pagination {
        padding-left: 0;
        display: table;
        width: auto !important;
        margin: 0 auto;
    }
    body.archive .pagination::before {
        display: none;
    }
}

.blog-list__text-content {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
	justify-content: space-between;
	margin: 0 auto;
}

.blog-list__text-content article {
	display: flex;
	flex-direction: column;
	max-width: calc(33% - 60px);
}

.entry-title { 
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Количество видимых строк */
    -webkit-box-orient: vertical;  
    overflow: hidden;
    height: 3em; /* Фиксируем высоту: (кол-во строк * line-height) */
    line-height: 1.5em;
}

.excerpt {
	flex-grow: 1;
}

@media (max-width: 768px){
	.blog-list__text-content article {
		max-width: calc(50% - 30px);
	}
}

@media (max-width: 425px){
	.blog-list__text-content article {
		max-width: 100%;
	}
}

.blog-list__text-content article img {
	max-width: 100%;
}

.submit-btn.is-loading {
  opacity: 0.85;
  pointer-events: none;
}

.submit-btn.is-loading::after {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-left: 12px;
  vertical-align: -3px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-top-color: #fff;
  animation: veha-btn-spin 0.8s linear infinite;
}

@keyframes veha-btn-spin {
  to {
    transform: rotate(360deg);
  }
}

/* AMP */
.header.-desk {
	background-color: #E5E5E5 !important;
}

@media (min-width: 768px) {
	.header.-desk {
	  background-color: #fff !important;
	}
}

.wpml-ls-slot-shortcode_actions.wpml-ls-item.wpml-ls-current-language.wpml-ls-last-item.wpml-ls-item-legacy-dropdown .wpml-ls-item-toggle::after {
  display: none;
}

/* Hierarchical heading inside post */
.custom-toc {
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 4px;
}
.custom-toc h3 { margin-top: 0; }
.custom-toc ul { list-style: none; padding-left: 0; }
.custom-toc li { margin-bottom: 5px; }

/* Sinlge post */
ol, ul {
	padding-left: 20px;
}

.text-content {
	justify-content: center;
}

.short-info-container {
	position: relative;
	margin-bottom: 20px;
}

.short-info-container img {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9; /* Укажите пропорции ваших миниатюр */
	object-fit: cover;
	display: block;
}

.short-info {
	position: absolute;
	top: 20px;
	right: 20px;
	display: flex;
	align-items: center;
	gap: 10px;
	color: #fff;
	font-size: 14px;
	background-color: #14A8F2;
	padding: 10px;
	border-radius: 4px;
	z-index: 9999;
}

.short-info svg {
	width: 20px;
	height: 20px;
}

.h1 {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.author-info__link {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: #fff;
}

.author-info__link img {
	border-radius: 50%;
	overflow: hidden;
	width: 40px;
	height: 40px;
	object-fit: cover;
	display: inline-block;
	margin-right: 10px;
	border: 1px solid #fff;
}

/* Page author */
.author-header {
	display: flex;
	align-items: center;
	margin-bottom: 40px;
	margin-top: 150px;
}

.author-avatar {
	margin-right: 40px;
	width: 480px;
	height: auto;
	border-radius: 50%;
	overflow: hidden;
}

@media (max-width: 1200px) {
	.author-avatar {
		width: 300px;
	}
}

@media (max-width: 992px) {
	.author-avatar {
		width: 200px;
	}
}

@media (max-width: 768px) {
	.author-avatar {
		width: 150px;
	}
}

@media (max-width: 576px) {
	.author-avatar {
		width: 100px;
	}
}

@media (max-width: 480px) {
	.author-avatar {
		width: 80px;
	}
}

@media (max-width: 320px) {
	.author-avatar {
		width: 60px;
	}
}

.author-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

article:has(.author-post-info) {
	text-align: center;
	margin-bottom: 80px;
	max-width: 100%;
}

.img {
	width: 100%
	height: 600px;
}

article img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.author-post-info {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 30px;
	margin: 20px 0;
}

.author-avatar-small {
	border-radius: 50%;
	overflow: hidden;
}   

.author-post-name-link {
	text-decoration: none !important;
	color: #2C3E4C !important;
}

.author-post-info span {
	font-weight: 600;
	color: #14A8F2;
}

.page-numbers {
	margin-right: 10px;
}

/* Page blog */
body.archive .padding-wrap,
body.single-post .padding-wrap {
    padding-top: 127px;
}
body.archive .breadcrumbs {
    margin-bottom: 34px;
}
body.archive .text-content ul {
    padding: 0;
    margin: 0 -18px;
    display: flex;
    flex-wrap: wrap;
}
body.archive .text-content {
    margin-top: 40px;
}
body.archive .text-content ul li {
    width: 33.33333333%;
    display: inline-block;
    padding: 0 20px 20px;
    float: left;
}
body.archive .text-content ul li::before {
    display: none;
}
body.archive .text-content ul li img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    margin-bottom: 20px;
}
body.archive .text-content ul li a:hover::before {
    background-color: #2C3E4C;
}
body.archive .text-content ul li a.img::before {
    display: none;
}
body.archive .pagination a {
    display: inline-block;
    margin: 0 10px;
}
@media (max-width: 899px) {
    body.archive .text-content ul {
        margin-left: -10px;
        margin-right: -10px;
    }
    body.archive .text-content ul li {
        padding: 0 10px;
    }
    body.archive .text-content ul li img {
        height: 170px;
    }
    .pagination a, .pagination span {
        display: inline-block;
        margin: 0 14px;
    }
}
@media (max-width: 767px) {
    body.archive .text-content ul li {
        width: 50%;
    }
    body.archive .text-content ul li img {
        height: 190px;
    }
    body.archive .pagination a, .pagination span {
        font-size: 16px;
    }
    body.archive .pagination a.prev,
    body.archive .pagination a.next {
        font-size: 0;
        position: relative;
        width: 20px;
    }
    body.archive .pagination a.prev::before,
    body.archive .pagination a.prev::after {
        content: '';
        width: 13px;
        height: 2px;
        background-color: #2C3E4C;
        transform-origin: center center;
        transform: rotateZ(45deg);
        position: absolute;
        left: 0;
        top: 13px;
    }
    body.archive .pagination a.prev::before {
        transform: rotateZ(-45deg);
        top: 5px;
    }
    body.archive .pagination a.next::before,
    body.archive .pagination a.next::after {
        content: '';
        width: 13px;
        height: 2px;
        background-color: #2C3E4C;
        transform-origin: center center;
        transform: rotateZ(-45deg);
        position: absolute;
        right: 0;
        top: 13px;
        left: auto;
    }
    body.archive .pagination a.next::before {
        transform: rotateZ(45deg);
        top: 5px;
    }
    body.archive .pagination .nav-links * {
        float: left;
    }
    body.archive .padding-wrap,
    body.single-post .padding-wrap {
        padding-top: 67px;
    }
}
@media (max-width: 480px) {
    body.archive .text-content ul li {
        width: 100%;
        float: none;
    }
}
@media (max-width: 420px) {
    body.archive .pagination {
        padding-left: 0;
        display: table;
        width: auto !important;
        margin: 0 auto;
    }
    body.archive .pagination::before {
        display: none;
    }
}
/*
.text-content {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
	justify-content: space-between;
	margin: 0 auto;
}

article {
	display: flex;
	flex-direction: column;
	max-width: calc(33% - 60px);
}

.entry-title { 
    display: -webkit-box;
    -webkit-line-clamp: 2; 
	-webkit-box-orient: vertical;  
    overflow: hidden;
    height: 3em; 
    line-height: 1.5em;
}

.excerpt {
	flex-grow: 1;
}*/

@media (max-width: 768px){
	.blog-list__text-content article {
		max-width: calc(50% - 30px);
	}
}

@media (max-width: 425px){
	.blog-list__text-content article {
		max-width: 100%;
	}
}

.blog-list__text-content article img {
	max-width: 100%;
}

.blog-list__text-content article {
	position: relative;
}

.short-info {
	position: absolute;
	top: 20px;
	right: 20px;
	display: flex;
	align-items: center;
	gap: 10px;
	color: #fff;
	font-size: 14px;
	background-color: #14A8F2;
	padding: 10px;
	border-radius: 4px;
	z-index: 99;
}

.short-info svg {
	width: 20px;
	height: 20px;
}

.post-author__link {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 20px;
}

.post-author__avatar {
	border-radius: 50%;
	overflow: hidden;
	width: 40px;
	height: 40px;
	object-fit: cover;
	display: inline-block;
	margin-right: 10px;
	border: 1px solid #fff;
}

.share-block {
	position: fixed; 
	left: 200px; 
	top: 50%; 
	transform: translateY(-50%); 
	display:flex; 
	flex-direction: column; 
	align-items:center; 
	gap:12px; 
    margin: 20px 0; 
	padding: 10px; 
	border: 1px solid #14A8F2; 
	border-radius: 5px; 
	background-color: #14A8F2;
}

@media (max-width: 1440px) {
	.share-block {
		left: 70px !important;
	}
}

@media (max-width: 1024px) {
	.share-block {
		top: auto !important;
		left: auto !important;
		transform: translateY(0%) !important; 
		right: 20px !important;
		bottom: 20px !important;
	}
}
 
 /* Related Services */
.related-services__list {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

.related-services__item {
    width: calc(33.33333333% - 20px);
}

@media (max-width: 768px) {
    .related-services__item {
        width: calc(50% - 20px);
    }
}

@media (max-width: 425px) {
    .related-services__item {
        width: 100%;
    }
}

.related-services__item .services-item {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Header dropdown: make selected submenus one-column.
   Add `has-small-sub-menu` CSS class to top-level menu items in WP admin. */
.menu__list > li.has-small-sub-menu {
    position: relative;
}

.menu__list > li.has-small-sub-menu > .sub-menu {
    width: auto;
    min-width: 220px;
    max-width: 340px;
    left: 0;
    top: 100%;
    padding: 14px 16px;
    display: none;
    flex-wrap: nowrap;
}

.menu--desktop .menu__list > li.has-small-sub-menu:hover > .sub-menu {
    display: block;
}

.menu__list > li.has-small-sub-menu > .sub-menu > li {
    flex: none;
    width: 100%;
}

/* Header dropdown: colors + typography overrides */
.menu__list > li.has-small-sub-menu > .sub-menu a {
    color: #6c8aa0; /* gray */
    font-size: 14px !important;
    text-decoration: none;
    text-transform: none;
}

.menu__list > li.has-small-sub-menu > .sub-menu .sub-menu__title-link {
    text-transform: none;
    font-weight: 600;
}

.menu__list > li.has-small-sub-menu > .sub-menu a:hover {
    color: #14A8F2;
    text-decoration: underline;
}

/* Active/current item in dropdown */
.menu__list > li.has-small-sub-menu > .sub-menu .current-menu-item > a,
.menu__list > li.has-small-sub-menu > .sub-menu a.active {
    color: #14A8F2;
}

@media (min-width: 991px){
	#vehaMobileMenu {
		display: none;
	}
}

._page {
	padding-top: 71px !important;
}

@media (max-width: 991px) {
	._page {
		padding-top: 71px !important;
	}
}

._blog-padding-top,
._price-padding-top {
	padding-top: 127px;
}