html, body {
  overflow-x: hidden;
}

.contact-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    padding: 10px 20px;
    /*border-bottom: 3px solid green;*/
    font-family: Arial, sans-serif;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-item i {
    background: green;
    color: #fff;
    border-radius: 50%;
    padding: 8px;
    font-size: 14px;
}

.contact-item a {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.social-icons a i {
    margin-left: 8px;
}

header {
    /*background: #0000002b !important;*/
    background: #0000006b !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.gallery-slider .swiper-button-next:after, .swiper-rtl .swiper-button-prev:after, .wp-block-cb-carousel-v2 .cb-button-prev, .wp-block-cb-carousel-v2.cb-rtl .cb-button-next {
    color: white;
}

.wp-block-cb-carousel-v2 .cb-pagination .cb-pagination-bullet.swiper-pagination-bullet-active {
    background: white !important;
    color: white;
}

.ast-logo-title-inline .ast-site-identity {
    padding: 10px;
}

.uagb-block-0a9ed72d  {
    background: #0E0D06 !important;
}

.d-none {
    display: none;
}

/* Scope of Works */

.scope-of-work {
    position: relative;
    overflow: hidden;
}

.scope-of-work img {
    width: 100%;
    height: auto;
    display: block;
    filter: brightness(45%) blur(0.3px); /* затемнение + лёгкий блюр */
    transform: scale(1.05); /* чуть увеличить для аккуратного вида */
}

.scope-of-work h3 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -330%);
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.4;
    z-index: 2;
    text-shadow: 0 2px 6px rgba(0,0,0,0.7); /* чтобы текст был читаемым */
}


/* */
.gallery-slider img {
    border-radius: 8px;
}

a:focus {
    text-decoration: none !important;
    outline: none !important;
}


/* */

/* Фон попапа */
.custom-popup {
    opacity: 0;
    visibility: hidden;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.custom-popup.active {
    opacity: 1;
    visibility: visible;
}


/* контейнер */
.custom-popup-content {
    position: relative;
    background: #111;
    color: #fff;
    padding: 30px;
    max-width: 800px;
    width: 100%;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    overflow-y: auto;
    max-height: 90vh;
}

/* крестик */
.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    transition: 0.2s;
}

.popup-close:hover {
    color: #f1c40f;
}

/* Контент формы */
.popup-inner {
    display: flex;
    flex-direction: row;
    gap: 30px;
}

/* Левая колонка (текст, контакты) и правая (форма) */
.popup-inner > div {
    flex: 1;
    min-width: 0;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .popup-inner {
        flex-direction: column;
        gap: 20px;
    }
    .custom-popup-content {
        padding: 20px;
    }
    .popup-close {
        font-size: 28px;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}


/* Стили для попап-формы */
.custom-popup-content form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.custom-popup-content label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #f5f5f5;
}

.custom-popup-content input,
.custom-popup-content textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #444;
    border-radius: 8px;
    background: #1a1a1a;
    font-size: 15px;
    transition: all 0.25s ease;
}

.custom-popup-content input:focus,
.custom-popup-content textarea:focus {
    border-color: #f1c40f;
    box-shadow: 0 0 0 3px rgba(241, 196, 15, 0.25);
    outline: none;
}

.custom-popup-content textarea {
    min-height: 120px;
    resize: vertical;
}

.custom-popup-content .sureforms-error {
    font-size: 12px;
    color: #e74c3c;
    margin-top: 4px;
}

.custom-popup-content button,
.custom-popup-content input[type="submit"] {
    background: linear-gradient(135deg, #f1c40f, #d4a017);
    color: #000;
    font-weight: 600;
    font-size: 15px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-popup-content button:hover,
.custom-popup-content input[type="submit"]:hover {
    background: linear-gradient(135deg, #ffd633, #e6b800);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.custom-popup-content button:active,
.custom-popup-content input[type="submit"]:active {
    transform: translateY(0);
    box-shadow: none;
}


.srfm-form-container.srfm-bg-color {
    background: transparent !important;
}

.typewriter {
    display: inline-block;
    border-right: 2px solid #000;
    white-space: nowrap;
    overflow: hidden;
}

.hero-title .uagb-ifb-title,
.hero-title .uagb-ifb-desc {
    visibility: hidden;
}

.services-sections .wp-block-uagb-container {
    position: relative;
    overflow: hidden;
    display: inline-block;
    opacity: 0;               /* скрыты по умолчанию */
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.services-sections .wp-block-uagb-container.visible {
    opacity: 1;
    transform: translateY(0);
}

/* картинка как фон */
.services-sections .wp-block-uagb-container .wp-block-uagb-image {
    position: relative;
    z-index: 1;
}

.services-sections .wp-block-uagb-container img {
    width: 100%;
    height: auto;
    display: block;
}

/* затемнение поверх картинки */
.services-sections .wp-block-uagb-container::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
    opacity: 1;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

/* текст поверх всего */
.services-sections .uagb-heading-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    color: #fff;
    text-align: center;
    padding: 10px 15px;
    font-size: 18px;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
    width: 90%;
}

/* когда блок виден */
.services-sections .wp-block-uagb-container.visible .uagb-heading-text {
    opacity: 1;
    transform: translate(-50%, 50%) scale(1);
}

.text-green {
    color: green;
}


.our-image .wp-block-uagb-image {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.our-image .wp-block-uagb-image.visible {
    opacity: 1;
    transform: translateY(0);
}


/* */

.anim-left, .anim-right {
    opacity: 0;
    transition: all 0.8s ease-out;
}

/* сдвиг для начальной позиции */
.anim-left {
    transform: translateX(-100px);
}

.anim-right {
    transform: translateX(100px);
}

/* когда блок активен (появился) */
.anim-left.active,
.anim-right.active {
    transform: translateX(0);
    opacity: 1;
}

@media (min-width: 921px) {
    .ast-theme-transparent-header #masthead {
        position: fixed;
        left: 0;
        right: 0;
    }
}

#lang-switcher {
 background: transparent;
 padding: 3px;
 color: green;
}

.custom-popup-content label {
 color: white !important;
}

.srfm-form-container .srfm-form .srfm-block:not(.srfm-number-block) .srfm-input-common {
 border-color: white !important;
}

.custom-popup-content .srfm-form-container .srfm-form .srfm-block:not(.srfm-number-block) .srfm-input-common {
    color: white;
    background-color: black; /* опционально */
}



@media only screen and (max-width: 767px) {
    .uagb-block-4dc48e3e.wp-block-uagb-image {
        margin-left: 4%;
    }
}

@media only screen and (max-width: 1024px) {
 .contact-item i{
  display: none;
 }
}