/*!
Theme Name: polyforma
Author: Игорь
Version: 1.0.0

*/
textarea {
    outline: none;
}

/* Alignments
--------------------------------------------- */
.alignleft {

    /*rtl:ignore*/
    float: left;

    /*rtl:ignore*/
    margin-right: 1.5em;
    margin-bottom: 1.5em;
}

.alignright {

    /*rtl:ignore*/
    float: right;

    /*rtl:ignore*/
    margin-left: 1.5em;
    margin-bottom: 1.5em;
}

.aligncenter {
    clear: both;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5em;
}

.form-submin {
    position: relative;
}

.form-submin .btn {
    width: 100%;
    background-color: var(--accent);
    color: var(--white);
}

.form-submin .btn:hover {
    background-color: var(--white);
    color: var(--accent);
}

.wpcf7-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
}

._img {
    position: relative;
    min-height: 296px;
}

._img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;

}

/* Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    max-width: 500px;
    width: 90%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.popup.is-active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.popup__content {
    position: relative;
}

.popup__title {
    margin-bottom: 20px;
    text-align: center;
}

.popup__close {
    position: absolute;
    top: -25px;
    right: -25px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    line-height: 0;
}

/* Стили для формы внутри попапа (адаптируйте под себя) */
.popup .wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.popup .wpcf7-form-control:not(.wpcf7-submit) {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.popup .wpcf7-submit {
    align-self: center;
}

.popup__content .form__row,
.popup__content .form__row-top {
    display: grid;
    gap: 16px;
}

.form__bottom {
    position: relative;
}

.fancybox__slide.has-iframe .fancybox__content {
    padding: 0;
}

@media (min-width: 0) and (max-width: 767.9px) {
    .form_block .btn {
        margin: 0 auto;
    }

    .form_block .form__row-top {
        flex-direction: column;
        gap: 16px;
    }

    .form_block .form__row {
        row-gap: 16px;
        margin-bottom: 18px;
    }

}


@media (min-width: 991.9px) {

    .form_block .btn {
        margin-left: auto;
        width: max-content;
    }
}

.form_block .form__contacns {
    position: absolute;
    left: clamp(1.875rem, -2.599rem + 7.22vw, 4.063rem);
    bottom: 43px;
}

@media (min-width: 0) and (max-width: 767.9px) {
    .form_block .form__contacns {
        flex-direction: column;
        justify-content: center;
        width: max-content;
        margin: 60px auto 1px;

    }

    .form_block .form__contacns--bottom span,
    .form_block .form__contacns--top span {
        text-align: center;
    }

    .form_block .form__contacns--bottom a,
    .form_block .form__contacns--top a {
        margin: auto;
    }

}

@media (min-width: 0) and (max-width: 991.9px) {
    .form_block .form__contacns {

        position: initial;
        margin-top: 40px;
        /* padding-right: 150px; */
    }

}

.form_block .form__row-top .wpcf7-form-control-wrap {
    flex: 1;
}

.form_block .form__row-top input {
    width: 100%;
}

.step:not(.last_step) label input {
    position: fixed;
    width: 0.01px;
    height: 0.01px;
    visibility: hidden;
    z-index: -100;
    pointer-events: none;
}


#header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 3;

}



#header.scrolled .header__top,
#header.scrolled .header__bottom {
    display: none;
}

@media (width>=0) and (width<=992px) {
    #header .logo img {
        max-width: 139px;
    }
}

@media (width >=992px) {
    #header.scrolled .logo img {
        max-width: 155px;
    }
}


.header__phone,
a .header__btn .btn {
    white-space: nowrap;
}

#header.scrolled .logo {
    margin-left: 60px;
}

.logo a {
    transition: all 0.3s ease 0s;
}


.buger {
    width: 42px;
    height: 42px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px 7px;
}

.buger__line {
    width: 100%;
    height: 3px;
    background-color: var(--color);
}

/* Стили для анимации бургера */
.header__container {
    position: relative;
}

#header.scrolled .buger {
    display: flex;
}

.buger {
    cursor: pointer;
    transition: all 0.3s ease 0s;


    position: absolute;
    top: 50%;
    left: 15px;
    transform: translate(0%, -50%);
    display: none;
}

.buger__line {
    transition: all 0.3s ease 0s;
}

.buger._active .buger__line:nth-child(1) {
    transform: rotate(45deg) translate(7px, 6px);
}

.buger._active .buger__line:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.buger._active .buger__line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Стили для мобильного меню */
.header__mobile__container {
    text-align: left;
}

.header__mobile__close {}

.header__mobile__close svg {
    width: 40px;
    height: 40px;
}

.header__mobile__close svg path {
    stroke: var(--color);
}

.header__mobile__inner {
    height: 100vh;
    width: 100%;
    overflow-x: auto;


}

.header__mobile {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: transform 0.3s ease 0s;

    text-align: center;
    transform: translateX(-100%);
}

.header__mobile._active {
    transform: translateX(0);
}


.header__mobile-top {
    margin-bottom: 20px;
}

.header__mobile li {
    margin-bottom: 6px;
}

.header__mobile a {
    font-size: 20px;
    color: var(--color);
    transition: color 0.3s ease 0s;
}

.header__mobile a:hover {
    color: var(--accent);
}

a .header__mobile._active {
    transform: translateX(0);
}

body.open__menu {
    overflow: hidden;
}

/* Стили для кнопки на верх */

.scroll-to-top {
    position: fixed;
    bottom: 150px;
    right: 30px;
    color: var(--accent);
    border: 2px solid var(--accent);
    padding: 9px;
    border-radius: 3px;
    transition: all 0.3s ease 0s;
    opacity: 0;
}

.scroll-to-top:hover {
    background-color: var(--accent);
    color: #fff;
}

.scroll-to-top.is-visible {
    opacity: 1;
}

.scroll-to-top svg {
    display: block;
}


/* Стили для кнопки  показать еще */
.load-more__container {
    text-align: center;
}

.load-more {
    margin-top: 40px;
    margin-left: auto;
    margin-right: auto;
}


/* //======================================================================================================================================================== */


.header__btn .btn {
    white-space: nowrap;
}


@media (min-width: 0) and (max-width: 767.9px) {
    .header__phone {
        margin: 0;
    }

    .header__btn {
        display: none;
    }

    .hero__form--contacts {
        flex-direction: column;
        gap: 16px
    }
}


@media (min-width: 0) and (max-width: 991.9px) {
    .buger {
        display: flex;
    }

    .header__center {
        padding: 16px 0;
        background-color: rgba(255, 255, 255, 1);
        /* backdrop-filter: blur(30px) */
    }

    #hero {
        padding-top: 100px;
    }

    .header .btn {
        padding: 12px 16px;
        line-height: 1.2;
        font-size: 14px;
    }

    .logo {
        margin-left: 60px;

    }

    .logo img {
        max-width: 155px;
    }


    .hero__container.flex {
        display: block;
    }
}

@media (min-width: 992px) {
    .header__center {
        padding: 20px 0;
        background-color: #fff;
    }

    #hero {
        padding-top: 200px;
    }

    .hero__container {
        align-items: start;
    }
}

.form-group .wpcf7-list-item {
    margin-left: 0;
}


.form_block .wpcf7-response-output {
    background-color: #000;
    z-index: 10;
    position: absolute;
    right: 56px;
}

.product-content p:has(img) {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(4, 1fr);
}



.hidden-file-input {
    display: none;
    /* Скрываем стандартный инпут */
}

.custom-file-button {
    /* Стили для кастомной кнопки, например, фон, padding */
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--accent);
    color: white;
    border-radius: 3px;
    cursor: pointer;
    font-family: sans-serif;
}

.fileName {
    margin-left: 10px;
}

.add-file-btn {
    display: inline-block;
    margin-left: 20px;
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-color: currentColor;
    transition: all 0.5s ease-in;
}

.add-file-btn:hover {
    text-decoration-color: transparent;

}

.form-submit {
    position: relative;
}

.upload-files {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.upload-wrapper .fileName {
    display: inline-block;
    padding: 10px;
}

.upload-files .upload-wrapper:nth-child(5) .add-file-btn {
    display: none !important;
}

.lptracker_phone {
    transition: all 0.5s ease-in;
    cursor: pointer;
}

.lptracker_phone:hover {
    text-decoration: underline;
}