<? if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) die(); ?>
<?
$this->setFrameMode(true);
$file = CFile::ResizeImageGet($arResult["PREVIEW_PICTURE"], array('width' => 220, 'height' => 300), BX_RESIZE_IMAGE_PROPORTIONAL, true);

?>
<section class="first-screen">
    <p class="first-screen__title h1"><?php echo $arResult['NAME'] ?></p>
    <?php if($file['src']):?>
        <div class="first-screen__image">
            <img src="<?php echo $file['src'] ?>" alt="<?php echo $arResult['NAME'] ?>">
            <?php if($arResult['PROPERTIES']['TITLE_PHOTO']['VALUE']):?>
                <div class="first-screen__image__text"><?php echo $arResult['PROPERTIES']['TITLE_PHOTO']['~VALUE']?></div>
            <?php endif?>
        </div>
    <?php endif?>
    <? if ($arResult['PROPERTIES']['PRICE']['VALUE']): ?>
        <p class="first-screen__price"><?php echo $arResult['PROPERTIES']['PRICE']['VALUE'] ?></p>
    <?php endif ?>

    <?php if ($arResult["PREVIEW_TEXT"]): ?>
        <div class="first-screen__text"><?php echo $arResult["PREVIEW_TEXT"] ?></div>
    <?php endif ?>
    <p class="first-screen__button" data-event="jqm" data-param-id="32" data-name="callback">
        <a class="btn btn-default btn-xl">Получить консультацию</a>
    </p>
</section>
