/*
Theme Name: alteco
*/
.wpcf7-not-valid{
	border:1px solid red!important;
}
.wpcf7-not-valid-tip, .wpcf7-validation-errors{
	display:none!important;
}

.editor-styles-wrapper :where(:not(.is-layout-flex,.is-layout-grid))>.wp-block {
	width: 100%;
	max-width: 92.1875vw;
	padding: 0 1.30208vw;
	margin-left: auto;
	margin-right: auto;
}
.wpcf7-response-output{
	border:none!important;
}
.footer__nav ul{
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.footer__legal ul {
	display: flex;
	gap: 24px;
}

.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output, .wpcf7 form.payment-required .wpcf7-response-output {
	color: #fff;
}
.send .wpcf7-response-output , .resetting .wpcf7-response-output{
	display: block!important;
}

/* Header AJAX live-search dropdown */

.header-search__results {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	z-index: 50;
	display: none;
	max-height: 60vh;
	overflow-y: auto;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, .15);
	padding: 12px;
}
.header-search__results.is-open { display: block; }
.header-search__group + .header-search__group { margin-top: 12px; }
.header-search__group-title {
	display: block;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .04em;
	opacity: .6;
	margin-bottom: 8px;
}
.header-search__item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px;
	border-radius: 8px;
	text-decoration: none;
	color: inherit;
	transition: background .15s ease;
}
.header-search__item:hover { background: rgba(0, 0, 0, .05); }
.header-search__item-img {
	flex: 0 0 auto;
	width: 48px;
	height: 48px;
	border-radius: 6px;
	overflow: hidden;
}
.header-search__item-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.header-search__item-ttl { font-size: 14px; line-height: 1.3; }
.header-search__empty { padding: 12px; opacity: .6; text-align: center; }
.header-search__loader { display: flex; justify-content: center; align-items: center; padding: 20px; }
.header-search__loader span {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: 3px solid rgba(0, 0, 0, .12);
	border-top-color: rgba(0, 0, 0, .55);
	animation: alteco-spin .7s linear infinite;
}
@keyframes alteco-spin { to { transform: rotate(360deg); } }
.header-search__all {
	display: block;
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid rgba(0, 0, 0, .08);
	text-align: center;
	font-weight: 600;
	text-decoration: none;
	color: inherit;
}

.contacts-form__form .wpcf7 .wpcf7-response-output{
	color: #000000!important;
}
@media screen and (min-width: 767px) {
	.header-search__wrap {
		position: relative;
	}
}


/* Блік на кнопці */
.btn-mod {
  position: relative;
  overflow: hidden;
}

.btn-mod::before {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.45) 50%,
    transparent 100%
  );
  transform: skewX(-20deg);
  pointer-events: none;
  z-index: 2;
  animation: btn-shine 2.8s ease-in-out infinite;
  animation-delay: 1.2s;
}

.slider-section .slide-text {

    min-height: 150px;
}

.slider-section__slide {  
    aspect-ratio: 1 / 1.54305556;  
}

@keyframes btn-shine {
  0%   { left: -75%; }
  40%  { left: 125%; }
  100% { left: 125%; }
}

.solution-section__item .img {
  overflow: hidden;
}

.solution-section__item .img img {
  transition: transform 0.5s ease;
}

.solution-section__item:hover .img img {
  transform: scale(1.07);
}

@keyframes word-pop {
  from {
    opacity: 0;
    transform: translateY(18px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.title .word {
  display: inline-block;
  opacity: 0;
  animation: word-pop 0.5s ease forwards;
}

@media screen and (max-width: 767px) {
	.solar-calc__block {
		padding: 1.1rem;
		border-radius: .75rem;
		max-width: 100%;
		overflow: hidden;
	}
	.solar-calc__block {
		padding: 0.2rem;
		border-radius: .75rem;
	}
	.solar-calc__chart {
		overflow-x: scroll;
		overflow-y: hidden;
	}
}


/* Слайдер для стандартной WP-галереи ([gallery]).
   Внешний вид навигации (стрелки, счётчик "1 / 4", тонкая прогресс-линия)
   повторяет .slider-navigation-block / .slider-btn из main.min.css сайта. */

.gallery {
	position: relative;
	max-width: 100%;
	display: grid; 
	margin-bottom: 30px !important;
}

.gallery .gallery-item {
	grid-area: 1 / 1;
	width: 100% !important;
	margin: 0 !important;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.5s ease;
}

.gallery .gallery-item.is-active {
	opacity: 1;
	pointer-events: auto;
	z-index: 1;
}

.gallery .gallery-icon {
	margin: 0;
}

.gallery .gallery-icon a {
	display: block;
	    border: 0;
}

.gallery .gallery-icon img {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
	border: 0 !important;
    margin-top: 0;
}

/* ---- навигация ---- */

.gallery-slider-nav {
	width: 100%;
	margin-top: 1.2rem;
	position: relative;
	padding-top: 1.2rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.gallery-slider-nav__prog {
	width: 100%;
	height: 1px;
	background: #e6e6e6;
	display: flex;
	position: absolute;
	top: 0;
	left: 0;
}

.gallery-slider-nav__prog-bar {
	height: 1px;
	background: #1b56a1;
	width: 0%;
	transition: width 0.4s linear;
}

.gallery-slider-nav__numbers {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 0.2rem;
	font-size: 0.95rem;
	color: #1b56a1;
	line-height: 1;
	font-weight: 300;
	flex: 1 1 auto;
	min-width: 0;
}

.gallery-slider-nav__current {
	color: #e00;
	font-size: 1.3rem;
	font-weight: 600;
}

.gallery-slider-nav__caption {
	margin-left: 0.6rem;
	padding-left: 0.75rem;
	border-left: 1px solid #e6e6e6;
	color: #6b6b6b;
	font-size: 0.85rem;
	font-weight: 400;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	min-width: 0;
	flex: 1 1 auto;
}

.gallery-slider-nav__btns {
	gap: 1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
}

.gallery-slider-nav__btn {
	width: 1.6rem;
	height: 1.6rem;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	border-radius: 50%;
	cursor: pointer;
	border: 1px solid #1b56a1;
	padding: 0;
	transition: all 0.4s ease-in-out;
}

.gallery-slider-nav__btn::after {
	content: "";
	width: 0.6rem;
	height: 0.5rem;
	display: inline-block;
	background: #1b56a1;
	mask-image: url('data:image/svg+xml,<svg width="12" height="10" viewBox="0 0 12 10" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.146638 5.35373L4.64649 9.85348C4.74031 9.9473 4.86755 10 5.00023 10C5.13291 10 5.26015 9.9473 5.35397 9.85348C5.44778 9.75966 5.50049 9.63242 5.50049 9.49975C5.50049 9.36707 5.44778 9.23983 5.35397 9.14602L1.70721 5.49997H11.5C11.6326 5.49997 11.7598 5.4473 11.8536 5.35353C11.9473 5.25977 12 5.1326 12 5C12 4.8674 11.9473 4.74023 11.8536 4.64647C11.7598 4.5527 11.6326 4.50003 11.5 4.50003H1.70721L5.35397 0.85398C5.44778 0.760165 5.50049 0.632925 5.50049 0.50025C5.50049 0.367576 5.44778 0.240335 5.35397 0.14652C5.26015 0.0527047 5.13291 0 5.00023 0C4.86755 0 4.74031 0.0527047 4.64649 0.14652L0.146638 4.64627C0.100151 4.6927 0.0632725 4.74784 0.0381107 4.80854C0.0129499 4.86924 0 4.9343 0 5C0 5.0657 0.0129499 5.13076 0.0381107 5.19146C0.0632725 5.25215 0.100151 5.3073 0.146638 5.35373Z" fill="%231B56A1"/></svg>');
	mask-position: center center;
	mask-size: 100% 100%;
	mask-repeat: no-repeat;
	transition: all 0.4s ease-in-out;
}

.gallery-slider-nav__btn:hover {
	background: #1b56a1;
}

.gallery-slider-nav__btn:hover::after {
	background: #fff;
}

.gallery-slider-nav__btn--next::after {
	transform: rotate(180deg);
}

.gallery-slider-nav__btn--disabled {
	opacity: 0.4;
	pointer-events: none;
}

/* На сайте есть общее правило .text-block *:not(img,ul,ol,li,blockquote,span,strong,br,iframe){margin-bottom:1.5rem}
   Оно добавляет отступ снизу всем div/button внутри навигации слайдера и ломает её раскладку —
   явно обнуляем именно у элементов навигации. */
.gallery-slider-nav,
.gallery-slider-nav__prog,
.gallery-slider-nav__prog-bar,
.gallery-slider-nav__numbers,
.gallery-slider-nav__btns,
.gallery-slider-nav__btn {
	margin-bottom: 0 !important;
}