/home/bdqbpbxa/rc-subdomains/optoman-rc.goodface.com.ua/wp-content/themes/optoman/footer.php
<?php


$template_directory = get_template_directory_uri();
$srcset = "srcset='{$template_directory}/assets/images/lazyload.png'";

//$cookie_accept = false;
//
//if (isset($_COOKIE['cookie_accept']) && !empty($_COOKIE['cookie_accept'])) {
//    $cookie_accept = true;
//}
//
//if ($cookie_accept === false):
//    $cookie_banner = get_field('cookie', 'option');
//    ?>
<!---->
<!--    <div class="cookies">-->
<!--        <div class="cookies-header">-->
<!--            --><?php //if (!empty($cookie_banner['image'])) : ?>
<!--                <img class="-lazyload" --><?php //echo $srcset; ?><!-- src="--><?php //echo $cookie_banner['image']['url']; ?><!--"-->
<!--                     alt="--><?php //echo $cookie_banner['image']['alt']; ?><!--"/>-->
<!--            --><?php //endif; ?>
<!--            <span class="title-5">--><?php //echo $cookie_banner['title']; ?><!--</span>-->
<!--        </div>-->
<!--        <div class="text body-4">-->
<!--            --><?php //echo $cookie_banner['text']; ?>
<!--        </div>-->
<!--        <div class="cookies-buttons">-->
<!--            <div class="button -medium -arrow  accept-cookies">-->
<!--                --><?php //echo $cookie_banner['accept_button_text']; ?>
<!--            </div>-->
<!--            <div class="button -outline -medium decline-cookies">--><?php //echo $cookie_banner['reject_button_text']; ?><!--</div>-->
<!--        </div>-->
<!--    </div>-->
<!---->
<?php //endif; ?>



<?php
$template_directory = get_template_directory_uri();
$logo_white = get_field('logo_white', 'option');
$footer = get_field('footer', 'option');
$socials = get_field('socials', 'option');
$address = get_field('address', 'option');
$main_email = get_field('main_email', 'option');
$phone_number = get_field('phone_number', 'option');
$footer_navigation = $footer['footer-navigation'];
$footer_buttons = $footer['footer_buttons'];
$social_label = $footer['social_label'];
$subscribe_label = $footer['subscribe'];
$up_text = $footer['up_text'];

$request_form = get_field('request_form', 'option');

$copyright = $footer['footer_copyright'];
$other_pages_navigation = $footer['other_pages_navigation'];
?>

<footer class="footer">
    <div class="container">
        <div class="footer-row">
            <div class="col info">
                <?php if ($logo_white)  :
                    if (is_front_page()) : ?>
                        <div class="logo">
                            <img  class="-lazyload"
                                <?php echo $srcset; ?> src="<?php echo $logo_white['url']; ?>" alt="<?php echo $logo_white['alt']; ?>">
                        </div>
                    <?php else : ?>
                        <a href="<?php echo get_home_url(); ?>" class="logo">
                            <img class="-lazyload" <?php echo $srcset; ?> src="<?php echo $logo_white['url']; ?>" alt="<?php echo $logo_white['alt']; ?>">
                        </a>
                    <?php endif;
                endif; ?>
                <ul class="-pc">
                    <?php if (!empty($main_email)): ?>
                        <li>
                            <a href="<?php echo $main_email['link']['url'] ?>"
                               target="<?php echo $main_email['link']['target'] ?>">
                                <?php echo file_get_contents($main_email['image']['url']) ?>
                                <?php echo $main_email['link']['title'] ?>
                            </a>
                        </li>
                    <?php endif; ?>
                    <?php if (!empty($address)): ?>
                        <li>
                            <a href="<?php echo $address['link']['url'] ?>"
                               target="<?php echo $address['link']['target'] ?>">
                                <?php echo file_get_contents($address['image']['url']) ?>
                                <?php echo $address['link']['title'] ?>
                            </a>
                        </li>
                    <?php endif; ?>
                    <?php if (!empty($phone_number)): ?>
                        <li>
                            <a href="<?php echo $phone_number['link']['url'] ?>"
                               target="<?php echo $phone_number['link']['target'] ?>">
                                <?php echo file_get_contents($phone_number['image']['url']) ?>
                                <?php echo $phone_number['link']['title'] ?>
                            </a>
                        </li>
                    <?php endif; ?>

                </ul>
            </div>
            <div class="col navigation">
                <?php
                if (!empty($footer_navigation)) :
                    foreach ($footer_navigation as $link) :
                        $prepared_link = get_link_group_field($link['link']); ?>
                        <a class="button-2 default-link"
                           href="<?php echo $prepared_link['url']; ?>"
                           target="<?php echo $prepared_link['target']; ?>"><?php echo $prepared_link['title']; ?></a>
                    <?php
                    endforeach;
                endif;
                ?>
            </div>
            <div class="col buttons">
                <?php if (!empty($footer_buttons)) :
                    foreach ($footer_buttons as $button) :?>
                        <?php echo get_button_group_field($button['button']); ?>
                    <?php endforeach;
                endif; ?>
            </div>
        </div>
        <div class="footer-row">
            <div class="info -mobile">
                <ul>
                    <?php if (!empty($main_email)): ?>
                        <li>
                            <a href="<?php echo $main_email['link']['url'] ?>"
                               target="<?php echo $main_email['link']['target'] ?>">
                                <?php echo file_get_contents($main_email['image']['url']) ?>
                                <?php echo $main_email['link']['title'] ?>
                            </a>
                        </li>
                    <?php endif; ?>
                    <?php if (!empty($address)): ?>
                        <li>
                            <a href="<?php echo $address['link']['url'] ?>"
                               target="<?php echo $address['link']['target'] ?>">
                                <?php echo file_get_contents($address['image']['url']) ?>
                                <?php echo $address['link']['title'] ?>
                            </a>
                        </li>
                    <?php endif; ?>
                    <?php if (!empty($phone_number)): ?>
                        <li>
                            <a href="<?php echo $phone_number['link']['url'] ?>"
                               target="<?php echo $phone_number['link']['target'] ?>">
                                <?php echo file_get_contents($phone_number['image']['url']) ?>
                                <?php echo $phone_number['link']['title'] ?>
                            </a>
                        </li>
                    <?php endif; ?>

                </ul>
            </div>

            <div class="col -pc">
                <div class="footer-label">
                    <?php echo $social_label; ?>
                </div>
                <div class="footer-socials">
                    <?php if (!empty($socials)) : ?>
                        <?php foreach ($socials as $social) : ?>
                            <a href="<?php echo $social['link']['url']; ?>" class="footer-socials-item"
                               target="<?php echo $social['link']['target']; ?>">
                                <?php echo file_get_contents($social['image']['url']) ?>
                            </a>
                        <?php endforeach; ?>
                    <?php endif; ?>
                </div>
            </div>
            <div class="col subscribe">
                <div class="footer-label">
                    <?php echo $subscribe_label; ?>
                </div>
                <div class="form-wrapper">
                    <div class="form">
                        <?php echo do_shortcode('[contact-form-7 id="bc155ad" title="Footer Subscribe"]'); ?>
                    </div>
                    <div class="thanks-container">
                        <?php
                        if (!empty($request_form['thanks_subscription'])) :
                            ?>
                            <div class="text body-2">
                                <?php echo $request_form['thanks_subscription']; ?>
                                <?php
                                if (!empty($request_form['thanks_image'])) :
                                    ?>
                                    <div class="img">
                                        <img class="-lazyload" <?php echo $srcset; ?> src="<?php echo $request_form['thanks_image']['url']; ?>"
                                             alt="<?php echo $request_form['thanks_image']['alt']; ?>">
                                    </div>
                                <?php endif; ?>
                            </div>
                        <?php
                        endif;
                        ?>
                    </div>
                </div>
            </div>
            <div class="col back -pc">
                <div class="back-to-top">
                    <span><?php echo $up_text; ?></span>
                    <div class="top-circle"></div>
                </div>
            </div>
        </div>
        <div class="footer-info-row">
            <div class="navigation">
                <?php
                if (!empty($other_pages_navigation)) :
                    foreach ($other_pages_navigation as $link) :
                        $prepared_link = get_link_group_field($link['link']); ?>
                        <a class="button-2 default-link"
                           href="<?php echo $prepared_link['url']; ?>"
                           target="<?php echo $prepared_link['target']; ?>"><?php echo $prepared_link['title']; ?></a>
                    <?php
                    endforeach;
                endif;
                ?>
            </div>

            <div class="additional-row -mobile">
                <div>
                    <div class="footer-label">
                        <?php echo $social_label; ?>
                    </div>
                    <div class="footer-socials">
                        <?php if (!empty($socials)) : ?>
                            <?php foreach ($socials as $social) : ?>
                                <a href="<?php echo $social['link']['url']; ?>" class="footer-socials-item"
                                   target="<?php echo $social['link']['target']; ?>">
                                    <?php echo file_get_contents($social['image']['url']) ?>
                                </a>
                            <?php endforeach; ?>
                        <?php endif; ?>
                    </div>
                </div>
                <div class="col back">
                    <div class="back-to-top">
                        <span><?php echo $up_text; ?></span>
                        <div class="top-circle"></div>
                    </div>
                </div>
            </div>

            <div class="body-4 copyright"> <?php echo $copyright; ?></div>
        </div>
    </div>
</footer>

<style>
    .CybotCookiebotDialogBodyButton,
    #CybotCookiebotDialogFooter #CybotCookiebotDialogBodyLevelButtonCustomize, #CybotCookiebotDialogFooter #CybotCookiebotDialogBodyLevelButtonLevelOptinAllowallSelection{
        color: #365463 !important;
        background-color: #18D8C7 !important;
        border-color: #18D8C7 !important;
    }
    .application-products .product_faq-answer table tbody tr td:first-child {
    text-align: left;
     width: 50% !important; 
}

.application-products .product_faq-answer table tbody tr td:last-child {
    text-align: right;
    width: 50% !important;
}
.search-result-matches{
    position: relative;
}
.search-result-matches:after {
    content: "";
    display: block;
    width: 15px;
    height: 15px;
    background-repeat: no-repeat;
    background-size: contain;
    vertical-align: middle;
    margin-left: 24px;
    position: initial;
}
.search-result-matches {
    color: #18D8C7;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    margin-top: 0px;
    display: flex;
    align-items: center;
    padding: 0;
    border-radius: 0px;
    margin-left: auto;
    margin-right: 0;
    order: 3;
    white-space: nowrap;
}
</style>
 <style>
    /* Enhanced Search Results Styles - только подсветка */
    
    .search-result-link {
        display: flex;
        align-items: center;
        padding: 8px 16px;
        text-decoration: none;
        color: #365463;
        transition: background-color 0.2s ease;
        border-radius: 4px;
    }
    
    .search-result-link:hover {
        background-color: #F3F6F7;
        text-decoration: none;
        color: #365463;
    }
    
    .search-result-title {
        font-weight: 400;
        font-size: 18px;
        line-height: 1.4;
        margin-bottom: 0px;
        color: #365463;
        text-transform: uppercase;
        width: 240px;
        margin-right: 24px;
        order: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .search-result-context {
        font-size: 14px;
        font-weight: 400;
        line-height: 1;
        color: #365463;
        margin-top: 0px;
        order: 2;        
        max-width: 625px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-right: 24px;
    }
    
    .search-result-matches {
        color: #18D8C7;
        font-size: 14px;
        font-weight: 400;
        line-height: 1;
        margin-top: 0px;
        display: flex;
        align-items: center;
        padding: 0;
        border-radius: 0px;
        margin-left: auto;
        margin-right: 0;
        order: 3;
        white-space: nowrap;
        position: static !important;
    }
    .search-result-matches:after{
        content: "";
        display: block;
        width: 15px;
        height: 15px;
        background-image: url("data:image/svg+xml;utf8,<svg width='15' height='15' viewBox='0 0 15 15' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M5 12.5L10 7.5L5 2.5' stroke='%2318D8C7' stroke-width='2'/></svg>");
        background-repeat: no-repeat;
        background-size: contain;
        vertical-align: middle;
        margin-left: 24px;
        opacity: 0;
        transition: all .3s;
    }
    .search-result-link:hover .search-result-matches:after{
        opacity: 1;
    }
    
    /* Подсветка совпадений */
    .search-result-title mark,
    .search-result-context mark {
        background: rgba(24, 216, 199, 0.1) !important;
        padding: 0px 2px !important;
        border-radius: 0px !important;
        color: inherit !important;
        font-weight: 600 !important;
    }
    
    
    
    /* Анимация появления */
    .search-result-item {
        animation: fadeInUp 0.3s ease-out;
        margin-bottom: 4px;
    }
    .search-result-item:last-child {
        margin-bottom: 0;
    }
    
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    /* Стили для страницы поиска */
    .search-results-grouped {
        margin-top: 20px;
    }
    
    .search-result-group {
        margin-bottom: 16px;
        padding-bottom: 16px;
        border-bottom: 1px solid #D4DEE3;
        border-radius: 0px;
        overflow: hidden;
    }

    .search-result-group:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }
    
    .search-result-group-header {
        background: transparent;
        padding: 0px 0px;
        font-weight: 400;
        font-size: 14px;
        line-height: 1;
        color: rgba(54, 84, 99, 0.5);
        border-bottom: 0px;
        margin-bottom: 16px;
    }
    
    .search-result-group .search-result-item:last-child {
        border-bottom: none;
    }
    
    .search-result-group .search-result-link {
        border-bottom: 0;
    }
    
    .search-result-group .search-result-link:last-child {
        border-bottom: none;
    }

    /* Адаптивность */
    @media (max-width: 768px) {
        .search-result-link {
            padding: 0;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
        }       

        .search-result-title {
            margin-bottom: 6px;
            width: 100%;
            max-width: 100%;
            min-width: 100%;
            margin-right: 0;
        }
        
        .search-result-context {
            font-size: 12px;
            max-width: 100%;
            min-width: 100%;
            margin-bottom: 8px;
        }

        .search-result-item {
            margin-bottom: 12px;
        }

        .search-result-matches {
            margin-left: 0;
        }
        .search-result-matches:after {
            content: none;
        }
    }


    .header-search .search-results .search-info .view-all {
        text-transform: uppercase;
    }


    @media screen and (max-width: 1023px) {
        .header-search .search-results {
            padding: 24px 20px;
            border-radius: 0;
            max-height: calc(100dvh - 212px);
            margin-top: 1px;
        }
    }


    .search-results-grouped .search-result-group {
        margin-bottom: 16px;
        padding-bottom: 16px;
        border-bottom: 1px solid #D4DEE3;
        border-radius: 0px;
        overflow: hidden;
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
    }
    .search-results-grouped .search-result-group .search-result-group-header {
        width: 100%;
    }
    .search-results-grouped .search-result-group .search-result-item {
        margin-bottom: 0;
        width: calc(33.3333% - 8px);
    }
    .search-results-grouped .search-result-group .search-result-link {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        padding: 12px 16px;
        position: relative;
    }
    .search-results-grouped .search-result-group .search-result-title {
        width: 100%;
        margin-right: 0;
        margin-bottom: 6px;
        padding-right: 25px;
    }
    .search-results-grouped .search-result-group .search-result-context {
        max-width: 100%;
        width: 100%;
        margin-right: 0px;
        margin-bottom: 12px;
    }
    .search-results-grouped .search-result-group .search-result-matches {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 0;
    }
    .search-results-grouped .search-result-group .search-result-matches:after {
        margin-left: 0px;
        position: absolute;
        top: 17px;
        right: 16px;
        opacity: 0;
        transition: all .3s;
    }
    .search-results-grouped .search-result-group .search-result-link:hover .search-result-matches:after {
        opacity: 1;
    }

    .search-section .result-count {
        margin-bottom: 16px;
    }

    @media screen and (max-width: 1023px) {
        .search-results-grouped .search-result-group .search-result-item {
            width: calc(50% - 8px);
        }
    }
    @media screen and (max-width: 767px) {
        .search-results-grouped .search-result-group .search-result-item {
            width: 100%;
            margin-bottom: 12px;
        }
        .search-results-grouped .search-result-group .search-result-item:last-child {
            margin-bottom: 0;
        }
        .search-results-grouped .search-result-group .search-result-link {
            padding: 0;
        }
        .search-results-grouped .search-result-group .search-result-title {
            padding-right: 0;
        }
        .search-results-grouped .search-result-group .search-result-context {
            margin-bottom: 8px;
        }
        .search-results-grouped .search-result-group .search-result-group-header {
            margin-bottom: 12px;
        }
    }
    .header-search-no-result {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .header-search-no-result:before {
        content: "";
        display: inline-block;
        width: 20px;
        height: 20px;
        background-image: url("data:image/svg+xml;utf8,<svg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'><g clip-path='url(%23clip0_3082_1721)'><path d='M10 17.5C14.1421 17.5 17.5 14.1421 17.5 10C17.5 5.85786 14.1421 2.5 10 2.5C5.85786 2.5 2.5 5.85786 2.5 10C2.5 14.1421 5.85786 17.5 10 17.5Z' stroke='%23365463' stroke-width='1.25' stroke-miterlimit='10'/><path d='M7.1875 9.375C7.70527 9.375 8.125 8.95527 8.125 8.4375C8.125 7.91973 7.70527 7.5 7.1875 7.5C6.66973 7.5 6.25 7.91973 6.25 8.4375C6.25 8.95527 6.66973 9.375 7.1875 9.375Z' fill='%23365463'/><path d='M12.8125 9.375C13.3303 9.375 13.75 8.95527 13.75 8.4375C13.75 7.91973 13.3303 7.5 12.8125 7.5C12.2947 7.5 11.875 7.91973 11.875 8.4375C11.875 8.95527 12.2947 9.375 12.8125 9.375Z' fill='%23365463'/><path d='M13.125 13.75C12.4766 12.6289 11.3883 11.875 10 11.875C8.61172 11.875 7.52344 12.6289 6.875 13.75' stroke='%23365463' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'/></g><defs><clipPath id='clip0_3082_1721'><rect width='20' height='20' fill='white'/></clipPath></defs></svg>");
        background-repeat: no-repeat;
        background-size: contain;
        vertical-align: middle;
    }
    </style>
<?php wp_footer(); ?>
</body>
</html>