<?if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();?>

<?php if (!empty($arResult)): ?>
<?php
    $title = $arParams['MENU_TITLE'];
    $moreItems = array_slice($arResult, -3);
?>
<div class="footer__top-item">
    <?php if ($title): ?>
    <button class="footer__btn js-footer-btn">
        <?= $title ?>
        <svg width="12" height="13" viewBox="0 0 12 13" fill="none" xmlns="http://www.w3.org/2000/svg">
            <path fill-rule="evenodd" clip-rule="evenodd" d="M10.28 4.47a.75.75 0 0 1 0 1.06L6.53 9.28a.75.75 0 0 1-1.06 0L1.72 5.53a.75.75 0 0 1 1.06-1.06L6 7.69l3.22-3.22a.75.75 0 0 1 1.06 0Z" fill="currentColor"></path>
        </svg>
    </button>
    <?php endif; ?>
    <ul class="footer__list js-footer-list">
        <?php foreach ($arResult as $arItem): ?>
            <li class="footer__list-item">
                <a href="<?= $arItem['LINK'] ?>">
                    <?= $arItem['TEXT'] ?>
                </a>
            </li>
        <?php endforeach; ?>
    </ul>
</div>
<?php endif; ?>