{% set class = class|default('') %}
{% set mortgageSettings = get_mortgage_settings() %}
{% if mortgageSettings.title and mortgageSettings.subtitle %}
<div class="mortgage {{ class }}">
<div class="container container_spacer">
<div class="mortgage__inner">
<div class="mortgage__content">
<div class="mortgage__main">
<h2 class="mortgage__title h2_laptop">
{{ mortgageSettings.title }}
</h2>
<div class="mortgage__subtitle text__grey03">
{{ mortgageSettings.subtitle }}
</div>
<a href="{{ path('request:mortgage_modal') }}"
title="Ипотека"
class="mortgage__button button"
data-modal
data-goal-yandex-submit="{{ settings().successGoal }}"
data-goal-yandex-click="{{ settings().clickFormGoal }}"
data-goal-vk-submit="{{ settings().successGoal }}"
data-goal-vk-click="{{ settings().clickFormGoal }}"
>
Подать заявку на расчет
</a>
</div>
{% include '_parts/pattern.html.twig' with {'class': 'pattern_wide mortgage__pattern'} %}
</div>
{% if mortgageSettings is has_image('imageName') %}
<div class="mortgage__picture-wrap">
{% include '_parts/image/adaptive-image.html.twig' with {
object: mortgageSettings,
field: 'imageFile',
size: 'mortgage_index_image',
alt: 'Ипотека',
class: 'mortgage__image',
classPicture: 'mortgage__picture',
} %}
</div>
{% endif %}
</div>
</div>
</div>
{% endif %}