/* Header
--------------------------------------------- */
header#masthead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    margin: auto;
    background-color: var(--color-bg-header);
    max-width: var(--container-max-width);
    width: 100%;
    max-height: 100px;
    height: 100px;
    padding: 0 var(--container-padding-x);
}
@media (max-width: 1180px) {
   header#masthead {
     padding: 0 var(--container-padding-mob-x);
   } 
}
@media (max-width: 485px) {
      header#masthead {
     height: 60px;
   } 
}
@media (max-width: 768px) {
    header#masthead {
        gap: 20px;
    }
}
section.right-part {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
@media (max-width: 1160px) {
    section.right-part {
    justify-content: flex-end;
    gap: 40px;
    }
}
@media (max-width: 699px) {
    section.right-part {
        gap: 20px;
        display: grid;
        grid-template-columns: 1fr auto auto;
        justify-items: center;
    }
}
@media (max-width: 359px) {
    section.right-part {
    justify-content: flex-end;
    gap: 20px;
    }
}
.social-icon {
    display: flex;
    flex-wrap: wrap;
    gap: 1.125rem;
}
.social-icon a {
    background: linear-gradient(143.17deg, #9BFF3C 3.79%, #72BF4C 49.73%, #3DB35F 94.31%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
a.social-profile-telegram img {
    margin: 2px 2px 0 0;
}
.social-icon a img {
    width: 15px;
    height: 15px;
}
.social-icon a:hover img {
    filter: brightness(0) saturate(100%) invert(0%) sepia(96%) saturate(14%) hue-rotate(273deg) brightness(104%) contrast(104%);
}
@media (max-width: 992px) {
    .social-icon.footer-ico {
        padding: 23px 0 38px 0;
    } 
}
@media (max-width: 699px) {
    .social-icon  {
    display: none;
    }
.social-icon.footer-ico {
        display: flex;
        width: 100%;
        justify-content: center;
        padding: 23px 0 38px 0;
    }   
}
/* Language 
--------------------------------------------- */
  /* Стилі для контейнера випадаючого списку */
.wrapper-dropdown-5 {
    position: relative;
    display: inline-block; 
    cursor: pointer;
    user-select: none;
}
@media (max-width:72.5rem) {
   .wrapper-dropdown-5 {
        order: 4;
    }
}
.wrapper-dropdown-5.active {
    /* Стилі, коли випадаючий список активовано (відкрито) */
}
.flag_home {
    font-weight: 600;
    font-size: 20px;
    line-height: 100%;
    letter-spacing: 0;
    text-transform: uppercase;
}

.flag_home:hover{color: var(--color-secondary);}
/* Стилі для відображення поточної мови (якщо використовується <p> в li.current-lang) */
.wrapper-dropdown-5 .dropdown > .current-lang p {
    margin: 0; 
    text-transform: uppercase;
    font-weight: 700;
}
@media (max-width: 485px) {
    .flag_home {
        font-size: 14px;
    }
}
/* Стилі для UL випадаючого списку */
.wrapper-dropdown-5 .dropdown {
    position: absolute; /* Позиціонування відносно .wrapper-dropdown-5 */
    top: 100%; /* Розташування під .wrapper-dropdown-5 */
    left: 0;
    z-index: 10; /* Забезпечує, що випадаючий список зверху іншого контенту */
    display: none; /* Приховано за замовчуванням */
    min-width: 100%; /* Мінімальна ширина така ж, як контейнер */
    padding: 0;
    margin: 0;
    list-style: none;
    background-color: #fff;
    border-top: none; /* Прибираємо верхню межу, щоб злити з контейнером */
    border-radius:5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    width: max-content;
}
.wrapper-dropdown-5.active .dropdown {
    display: block; /* Показуємо випадаючий список, коли .wrapper-dropdown-5.active */
    overflow: hidden;
}
/* Стилі для елементів списку мов */
.wrapper-dropdown-5 .dropdown li.language_link {
    padding: 0;
    margin: 0;
}
.wrapper-dropdown-5 .dropdown li.language_link a {
    display: block;
    padding: 5px 10px;
    text-decoration: none;
    color: #333;
    text-transform: uppercase;
    font-weight: 700;
}
.wrapper-dropdown-5 .dropdown li.language_link a:hover {
    background-color: #F4F6F6;
}
/* Стилі для зображень прапорів (якщо ви використовуєте <img>) */
.wrapper-dropdown-5 .dropdown li.language_link a img {
    width: 20px; 
    height: auto;
    vertical-align: inherit;
    margin-right: 5px;
}
span.flag_home img  {
    height: 0.75rem;
    width: 0.9375rem;
    vertical-align: inherit;
}
@media (max-width: 485px) {
    span.flag_home img {
    height: 8px;
    width: 10px;
}
}
span.flag_home:hover img {
    filter: brightness(0) saturate(100%) invert(64%) sepia(18%) saturate(1288%) hue-rotate(65deg) brightness(98%) contrast(91%);
}
@media (max-width:485px) {
    img.header__logo {
    height: 45px;
    width: auto;
}
}
/* Navigation
--------------------------------------------- */
.main-navigation {
	display: block;
	width: max-content;
}
@media (max-width: 72.5rem) {
    .main-navigation {
        order: 5;
    }
}
ul.sub-menu a {
font-weight: 600;
font-size: 14px;
line-height: 100%;
letter-spacing: 0;
text-transform: uppercase;
}
.main-navigation a.active, li.menu-item.active::before {
    color: var(--color-active-link-menu);
}
 .main-navigation a:hover {
    color: var(--color-secondary);
} 
 .main-navigation a {
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 100%;
    letter-spacing: 0;
    text-transform: uppercase;
}
@media (max-width: 1160px) {
    .main-navigation a {
        min-width: 163px;
        padding-left: 20px !important;
    }
}
@media (max-width: 576px) {
    .main-navigation a {
        font-size: 14px;
    }
}
@media (max-width: 992px) {
    .main-navigation a {
    text-transform: none;
}
    .main-navigation a:hover {
        background-color: var(--color-secondary);
        color: white;
    }
}
@media (max-width: 576px) {
     .main-navigation a {
        padding-left: 12px !important;
    }
}
.main-navigation ul {
	display: none;
	list-style: none;
	margin: 0;
	padding-left: 0;
}

.main-navigation ul ul {
	float: left;
	position: absolute;
	top: 100%;
	left: -999em;
	z-index: 99999;
}
@media (max-width: 1160px) {
ul#primary-menu > li {
    align-items: flex-start !important;
    flex-direction: column;
}
ul.sub-menu.open {
    left: auto;
    display: block;
    position: relative;
    padding: 0;
    margin: 0 0 0 10px;
}
span.icon {
    position: absolute;
    top: 8px;
    right: -25px;
}
}
.main-navigation ul ul ul {
	left: -999em;
	top: 100%;
}
@media (min-width: 600px) {
    ul.sub-menu {
    background: var(--sub-menu-background);
    padding: 1.25rem;
    box-shadow: 1px 14px 22px 5px rgba(0, 0, 0, 0.47);
    -webkit-box-shadow: 1px 14px 22px 5px rgba(0, 0, 0, 0.47);
    -moz-box-shadow: 1px 14px 22px 5px rgba(0, 0, 0, 0.47);
}
}
ul.sub-menu li {
    margin: 0 !important;
    padding: 5px 0;
}

.main-navigation ul ul li:hover > ul,
.main-navigation ul ul li.focus > ul {
	display: block;
	left: auto;
}

.main-navigation ul ul a {
	width: 200px;
}

.main-navigation li {
	position: relative;
}

ul#primary-menu > li {
    display: flex;
    gap: 3px;
    align-items: center;
}
@media (max-width: 600px) {
ul#primary-menu > li {
   width: max-content;
   margin-top: 8px;
}
}

@media (min-width: 1300px) {
    .main-navigation ul li:not(:first-child) {
    margin: 0 0 0 2.625rem;
    }
}
@media (min-width: 1161px) {
    .main-navigation ul li:not(:first-child) {
    margin: 0 0 0 20px;
}
}
ul.sub-menu.open {
    left: auto;
}
span.icon:after {
    content: "+";
    display: inline-block;
    transition: 0.5s;
    margin-left: 0.3125rem;
    font-size: 20px;
}

li.menu-item-has-children > a:hover:after, li.menu-item-has-children > a:focus:after, li.menu-item-has-children > a:target:after, span.icon.is-active {
    transform: rotate(45deg);    
}

li.home:before {
    font-family: dashicons;
    content: "\f102";
    line-height: 0;
}

/* Small menu. 
-------------------------------------------------*/
.main-navigation.toggled ul {
	display: block;
    margin-top: 50px;
}
@media screen and (min-width: 1161px) {

	.menu-toggle {
		display: none;
	}

	.main-navigation ul {
        display: flex;
        font-size: 16.8px;
        font-weight: 500;
        flex-wrap: wrap;
        
	}
}

/* Burger menu
-------------------------------------------------*/
@media screen and (max-width: 72.5rem) {
.menu-toggle {
background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: 26.25px; 
  height: 21px; 
  font-size: 0;
    order: 1;
  }

.burger {
  width: 26.25px; 
  height: 2px;
  background-color: var(--burger-color);
  border-radius: 5px; 
}
nav.main-navigation.toggled .menu-toggle {
    position: absolute;
    right: 12px;
    top: 12px;
   }
nav.main-navigation.toggled .menu-toggle .burger:nth-child(1) {
  transform: rotate(45deg);
  position: relative;
  top: 6px;
}

 nav.main-navigation.toggled .menu-toggle .burger:nth-child(2) {
  opacity: 0;
} 

nav.main-navigation.toggled .menu-toggle .burger:nth-child(3) {
  transform: rotate(-45deg);
  position: relative;
  top: -8px;
}
}
nav.main-navigation.toggled {
    position: absolute;
    background: white;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    width: 100vw;
    margin: auto;
    height: 100%;
    z-index: 99999;
}
nav.main-navigation.toggled div#primary-menu {
    margin-top: 20px;
}
nav.main-navigation.toggled a {
    padding: 5px 0;
}
@media (max-width: 1160px) {
    nav.main-navigation.toggled a {
       padding: 8px 0; 
    }
}
a.contact-us {
    min-width: 200px;
    height: 44px;
    border-radius: 30px;
    border-width: 1px;
    border: 1px solid var(--acent, #62BC52);
    padding-top: 16px;
    padding-right: 38px;
    padding-bottom: 16px;
    padding-left: 38px;
    background-color: #fff;
    font-weight: 600;
    font-size: 14px;
    line-height: 0.8;
    letter-spacing: 0;
    text-align: center;
    text-decoration: none;
}
a.contact-us:hover {
cursor: pointer;
background: linear-gradient(247.02deg, #9BFF3C 17.85%, #72BF4C 42.04%, #3DB35F 65.51%),
linear-gradient(185.84deg, #9BFF3C 7.22%, #72BF4C 49.09%, #3DB35F 89.72%);
color: white;
}
@media (max-width: 485px){
    a.contact-us {
        min-width: 0;
      width: max-content;
        height: 23px;
        font-size: 10px;
        display: flex;
        align-items: center;
        padding: 12px 16px 10px 16px;
    }
}
/* footer
-------------------------------------------------*/

footer#colophon {
    display: flex;
    flex-direction: column;
    background-color:  var(--color-bg-footer);
}
.site-info {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 1.5rem;
    width: 100%;
    max-width: var(--container-max-width);
    padding: 25px var(--container-padding-x) 60px var(--container-padding-x);
    margin: auto;
}
@media (max-width: 800px) {
    .site-info {
        grid-template-columns: 1fr;
    }
}
.site-info h4 {
    margin: 0;
    padding-bottom: 10px;
    color: white;
    font-size: var(--font-size-h4);
}
hr.footer {
    background-color: #a0adb5;
    border: 0;
    height: 2px;
    margin: 36px 0 0 0;
    width: 100%;
}
.site-info section {
    color: white;
    display: flex;
    flex-direction: column;
}
/* Footer nav  
---------------------------------------*/
ul#footer-menu {
    margin: 0;
    padding: 0;
}
ul#footer-menu li {
    list-style: none;
    color: white;
}
ul#footer-menu li a {
    color: white;
}
ul#footer-menu li a:hover {
   text-decoration: underline; 
}
/* popap  
---------------------------------------*/
/* Стилі для попапу */
.popup {
  display: none; /* Спочатку прихований */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Напівпрозорий фон */
  z-index: 1000;
}
.popup-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 70px 20px;
  max-width: 95%;
  width: auto;
  text-align: center;
}
@media (max-width: 992px) {
    .popup-content {
        width: 80%;
    }
} 
@media (max-width: 576px) {
    .popup-content {
        width: 90%;
    }
}
.close-btn {
  background: none;
  border: none;
  font-size: 40px;
    padding: 10px;
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
}
.close-btn:hover {
     color: var(--color-secondary);
}
form#contact-form {
    display: flex;
    justify-content: flex-start;
    gap: 122px;
}
.form-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    border: none;
}
@media (max-width: 1050px) {
    form#contact-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.form-group {
    gap: 15px;
}
}
.form-group div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
}
.popup-content h2 {
    text-align: left;
      font-size: calc(20px + (34 - 20) * ((100vw - 360px) / (1440 - 360)));
}
@media (max-width: 992px) {
    .popup-content h2 {
        text-align: center;
    }
}
.popup-content label {
    color: #777777;
    font-weight: 400;
    font-size: 18px;
    line-height: 130%;
    letter-spacing: 0;
    text-align: left;
}
form#contact-form input, form#contact-form textarea {
    background: #F4F6F6;
    border: 1px solid #F4F6F6;
    width: 388px;
    gap: 10px;
    border-radius: 30px;
    border-width: 1px;
    padding-top: 14px;
    padding-right: 20px;
    padding-bottom: 14px;
    padding-left: 20px;

font-weight: 500;
font-size: 18px;
line-height: 100%;
letter-spacing: 0;
color:  #1A1A1A;
}
form#contact-form input {
    height: 50px;
}
 form#contact-form textarea {
    height: 86px;
}
@media (max-width: 1050px) {
    form#contact-form input, form#contact-form textarea {
    width: 100%;
    }
}
form#contact-form input:focus, form#contact-form textarea:focus, form#contact-form input:active, form#contact-form textarea:active {
    border: 1px solid var(--color-secondary) !important;
    outline: none !important;
}

/* Сховати стандартну кнопку */
input#file-upload {
    display: none;
}
/* Стилі для мітки (замінюємо її на кнопку з іконкою скріпки) */
.file-upload-label {
    padding: 10px 20px;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 0;
}
.file-upload-label i {
  font-size: 20px; /* Розмір іконки */
}
/* Стиль для зміненої іконки після вибору файлу */
label.file-upload-label.file-selected img, label.file-upload-label.file-selected {
    filter: brightness(0) saturate(100%) invert(64%) sepia(18%) saturate(1288%) hue-rotate(65deg) brightness(98%) contrast(91%);
    color: var(--color-secondary);
}
button#request-consultation, button#request-consultation-btn, .return-to-home {
    background: linear-gradient(143.17deg, #9BFF3C 3.79%, #72BF4C 49.73%, #3DB35F 94.31%);
    height: 47px;
    border-radius: 30px;
    padding-top: 16px;
    padding-right: 30px;
    padding-bottom: 16px;
    padding-left: 30px;
    border: 0;
    color: #FFFFFF;
    font-size: 12px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 2;
}
@media (max-width: 1050px) {
    button#request-consultation {
        width: 100%;
        margin-top: 12px;
    }
}
@media (max-width: 320px) {
    button#request-consultation, button#request-consultation-btn {
        line-height: 1.4;
    }
}
button#request-consultation:hover img, button#request-consultation-btn:hover img, .return-to-home:hover img {
     margin-left: 8px;
}
button#request-consultation:hover,button#request-consultation-btn:hover, .return-to-home:hover {
     cursor: pointer;
}
/* Стилі для body, коли попап відкритий */
body.open-form {
  overflow: hidden; /* Забороняє прокручування сторінки, коли попап відкритий */
}
/* Footer */
.footer {
    background: var(--bg-dark);
    padding: 81px 0 97px 0;
    background-color: #888888;
    color: white;
}
.footer a {
    color: white;
}
.footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}
.footer__top, .footer__form {
max-width: 1230px;
padding: 0 var(--container-padding-mob-x);
margin: 0 auto;
}
@media (max-width: 992px) {
    .footer__top {
        flex-direction: column;
        justify-content: center;
        gap: 20px;
    }
    .footer {
        padding: 45px 0 0 0;
    }
}
.footer__brand {
    max-width: 202px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
@media (max-width: 992px) {
    .footer__brand {
        margin: auto;
    }
}
/* .footer__column {
  flex: 1 1 200px;
  min-width: 200px;
} */
.footer__contacts {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 28px;
    max-width: 310px;
}
@media (max-width: 992px) {
    .footer__contacts {
        align-items: center;
        text-align: center;
        gap: 15px;
        max-width: 100%;
    }
}
.footer__logo {
  max-width: 120px;
  margin-bottom: 10px;
  max-width: 310px;
}

.footer__description {
font-weight: 400;
font-size: 12px;
line-height: 140%;
letter-spacing: 0;
text-align: center;
color: #FFFFFF;
margin-top: 28px;
}
@media (max-width: 992px) {
    .footer__description {
margin-top: 4px;
    }
}
.footer__links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__links li {
  margin-bottom: 26px;
}
@media (max-width: 992px) {
    .footer__links li {
        margin-bottom: 12px;
    }
}
.footer__links a {
color: white;
font-weight: 600;
font-size: 14px;
line-height: 100%;
letter-spacing: 0;
text-transform: uppercase;
}
.footer__links a:hover {
  color: var(--color-secondary);
}
.menu li.current-menu-item > a[href^="#"],
.menu li.current_page_item > a[href^="#"] {
    color: inherit !important;
    background-color: transparent !important;
    font-weight: normal !important;
    pointer-events: auto;
}
.current_page_item a  {
   color: var(--color-secondary);
}

.footer__contacts p,
.footer__contacts a {
font-weight: 400;
font-size: 18px;
line-height: 150%;
letter-spacing: 0;
margin: 0;
}
@media (max-width: 576px) {
    .footer__contacts p, .footer__contacts a {
        font-size: 22px;
    }
}
.footer__form p {
font-weight: 400;
font-size: 18px;
line-height: 150%;
letter-spacing: 0;
text-align: left;
}
@media (max-width: 992px) {
    .footer__form p {
        text-align: center;
    }
 }
 @media (max-width: 576px) {
    .footer__form p {
        font-size: 12px;
    }
 }
 .footer__form form {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.footer__form input {
width: 257px;
height: 47px;
border-radius: 30px;
padding-top: 16px;
padding-right: 30px;
padding-bottom: 16px;
padding-left: 30px;

font-weight: 400;
font-size: 12px;
line-height: 100%;
letter-spacing: 0;
text-align: left;
outline: none;
background: #C8C8C8;
}
.footer__form button {
width: 151px;
height: 47px;
border-radius: 30px;
padding-top: 16px;
padding-right: 30px;
padding-bottom: 16px;
padding-left: 30px;
background: linear-gradient(143.17deg, #9BFF3C 3.79%, #72BF4C 49.73%, #3DB35F 94.31%);

color: white;
font-weight: 600;
font-size: 12px;
line-height: 100%;
letter-spacing: 0;
text-align: center;
text-transform: uppercase;
border: none;
outline: none;
}
.footer__form button:hover {
    cursor: pointer;
}
@media (max-width: 992px) {
    .footer__form input, .footer__form button {
        width: 50%;
        margin: auto;
    }
}
@media (max-width: 576px) {
        .footer__form input, .footer__form button {
        width: 100%;
        margin: auto;
    }
}
.footer__bottom {
border-top: 1px solid #FFFFFF;
padding: 28px;
margin-top: 64px;
}
@media (max-width: 992px) {
    .footer__bottom{
        margin-top: 50px;
    }
}
.footer__bottom p, .footer__bottom a  {
font-weight: 500;
font-size: 14px;
line-height: 150%;
letter-spacing: 0;
text-transform: uppercase;
text-align: center;
margin: 0;
}
@media (max-width: 768px) {
    .footer__bottom p, .footer__bottom a {
        font-size: 10px;
    }
}
.footer__bottom a {
text-decoration: underline;
}

@media (max-width: 992px) {
    .footer__column.footer__links.pc {
        display: none;
}
}
.footer__nav {
    display: flex;
    gap: 20px;
    justify-content: space-between;
}
@media (min-width: 992px) {
    .footer__nav {
        display: none;
}
}
@media (max-width: 992px) {
    .footer__nav {
        display: flex;
        gap: 70px;
        justify-content: space-between;
        max-width: 320px;
        width: 100%;
        margin: auto;
    }
}
@media (max-width:360px) {
.footer__nav {
    gap: 20px;
}
}

.btn-up {
    position: fixed;
    right: 10px;
    bottom: 0px;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 50px;
    z-index: 9;
}

.btn-up {
  background: linear-gradient(143.17deg, #9BFF3C 3.79%, #72BF4C 49.73%, #3DB35F 94.31%);
}
.btn-up:hover {
    background: linear-gradient(143.17deg, #454c3f 3.79%, #64f71a 49.73%, #1e7b39 94.31%);
}
.btn-up::before {
    content: "";
    width: 40px;
    height: 40px;
    background: transparent no-repeat center center;
    background-size: 100% 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23fff' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M7.646 4.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1-.708.708L8 5.707l-5.646 5.647a.5.5 0 0 1-.708-.708l6-6z'/%3E%3C/svg%3E");
}
.btn-up_hide {
    display: none;
}