<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();
/** @var array $arParams */
/** @var array $arResult */
/** @global CMain $APPLICATION */
/** @global CUser $USER */
/** @global CDatabase $DB */
/** @var CBitrixComponentTemplate $this */
/** @var string $templateName */
/** @var string $templateFile */
/** @var string $templateFolder */
/** @var string $componentPath */
/** @var CBitrixComponent $component */
$this->setFrameMode(true);

?>
<?php if (!empty($arResult['PROPERTIES']['TITLE']['~VALUE']) || !empty($arResult['PROPERTIES']['DESCRIPTION']['VALUE'])): ?>
    <section class="text-section section container">
        <?php if (!empty($arResult['PROPERTIES']['TITLE']['~VALUE'])): ?>
            <h1 class="text-section__title">
                <?= $arResult['PROPERTIES']['TITLE']['~VALUE'] ?>
            </h1>
        <?php endif; ?>
        <?php if (!empty($arResult['PROPERTIES']['DESCRIPTION']['~VALUE'])): ?>
            <p class="text-section__text">
                <?= $arResult['PROPERTIES']['DESCRIPTION']['~VALUE'] ?>
            </p>
        <?php endif; ?>
    </section>
<?php endif; ?>

<section class="contacts section container">
    <?php if (!empty($arResult['PROPERTIES']['HEAD_OFFICE']['~VALUE'])): ?>
        <div class="contacts__item hover-scale">
            <img src="<?= DEFAULT_TEMPLATE_PATH ?>/img/svg/mark-circle.svg" alt="contacts-icon">
            <div class="contacts__item-descr">
                <h2>
                    <?= $arResult['PROPERTIES']['HEAD_OFFICE']['~VALUE'] ?>
                </h2>
                <p>
                    <?= $arResult['PROPERTIES']['HEAD_OFFICE']['~DESCRIPTION'] ?>
                </p>
            </div>
        </div>
    <?php endif; ?>
    <?php if (!empty($arResult['PROPERTIES']['PROD_OFFICE']['~VALUE'])): ?>
        <div class="contacts__item hover-scale">
            <img src="<?= DEFAULT_TEMPLATE_PATH ?>/img/svg/mark-square.svg" alt="contacts-icon">
            <div class="contacts__item-descr">
                <h2>
                    <?= $arResult['PROPERTIES']['PROD_OFFICE']['~VALUE'] ?>
                </h2>
                <p>
                    <?= $arResult['PROPERTIES']['PROD_OFFICE']['~DESCRIPTION'] ?>
                </p>
            </div>
        </div>
    <?php endif; ?>
    <?php if (!empty($arResult['PROPERTIES']['SCHEDULE_TITLE']['~VALUE']) || !empty($arResult['PROPERTIES']['SCHEDULE_TEXT']['~VALUE'])): ?>
        <div class="contacts__item hover-scale">
            <img src="<?= DEFAULT_TEMPLATE_PATH ?>/img/svg/calendar.svg" alt="contacts-icon">
            <div class="contacts__item-descr">
                <h2>
                    <?= $arResult['PROPERTIES']['SCHEDULE_TITLE']['~VALUE'] ?>
                </h2>
                <?= $arResult['PROPERTIES']['SCHEDULE_TEXT']['~VALUE'] ?>
            </div>
        </div>
    <?php endif; ?>
    <?php if (!empty($arResult['PROPERTIES']['PHONE_TITLE']['~VALUE']) || !empty($arResult['PROPERTIES']['PHONE_TEXT']['~VALUE'])): ?>
        <div class="contacts__item hover-scale">
            <img src="<?= DEFAULT_TEMPLATE_PATH ?>/img/svg/phone-icon.svg" alt="contacts-icon">
            <div class="contacts__item-descr">
                <h2>
                    <?= $arResult['PROPERTIES']['PHONE_TITLE']['~VALUE'] ?>
                </h2>
                <?= $arResult['PROPERTIES']['PHONE_TEXT']['~VALUE'] ?>
            </div>
        </div>
    <?php endif; ?>
    <?php if (!empty($arResult['PROPERTIES']['EMAIL_TITLE']['~VALUE']) || !empty($arResult['PROPERTIES']['EMAIL_TEXT']['~VALUE'])): ?>
        <div class="contacts__item hover-scale">
            <img src="<?= DEFAULT_TEMPLATE_PATH ?>/img/svg/email-icon.svg" alt="contacts-icon">
            <div class="contacts__item-descr">
                <h2>
                    <?= $arResult['PROPERTIES']['EMAIL_TITLE']['~VALUE'] ?>
                </h2>
                <a href="mailto:<?= $arResult['PROPERTIES']['EMAIL_TEXT']['VALUE'] ?>">
                    <?= $arResult['PROPERTIES']['EMAIL_TEXT']['~VALUE'] ?>
                </a>
            </div>
        </div>
    <?php endif; ?>
</section>

<?php if (!empty($arResult['PROPERTIES']['MAP']['~VALUE'])): ?>
    <section class="map section container">
        <?= $arResult['PROPERTIES']['MAP']['~VALUE'] ?>
    </section>
<?php endif; ?>

<?php if (!empty($arResult['PROPERTIES']['BANK_DETAILS_TITLE']['~VALUE']) || !empty($arResult['PROPERTIES']['BANK_DETAILS_TEXT']['~VALUE'])): ?>
    <section class="contacts-requisites about-requisites section container">
        <?php if (!empty($arResult['PROPERTIES']['BANK_DETAILS_TITLE']['~VALUE'])): ?>
            <div class="about-requisites__item about-requisites__item--details hover-scale">
                <h2 class="about-requisites__title">
                    <?= $arResult['PROPERTIES']['BANK_DETAILS_TITLE']['~VALUE'] ?>
                </h2>
                <?= $arResult['PROPERTIES']['BANK_DETAILS_TEXT']['~VALUE'] ?>
            </div>
        <?php endif; ?>
        <?php if (!empty($arResult['PROPERTIES']['BANK_DETAILS_TITLE']['~VALUE'])): ?>
            <div class="about-requisites__item about-requisites__item--details hover-scale">
                <h2 class="about-requisites__title">
                    <?= $arResult['PROPERTIES']['LEGAL_INFO_TITLE']['~VALUE'] ?>
                </h2>
                <?= $arResult['PROPERTIES']['LEGAL_INFO_TEXT']['~VALUE'] ?>
            </div>
        <?php endif; ?>
    </section>
<?php endif; ?>