{% extends '@Portal/base.html.twig' %}
{% block seo %}
<title>{{ 'seo.insurance.title'|trans({}, 'portal_base') }}</title>
<meta name="description" content="{{ 'seo.insurance.description'|trans({}, 'portal_base') }}" />
{% endblock %}
{% block css %}
<link rel="stylesheet" href="{{ asset('bundles/portal/css/finance.css') }}">
<link rel="stylesheet" href="{{ asset('bundles/portal/css/insurance.css') }}">
<link rel='stylesheet' href='{{ asset('bundles/portal/css/finance/calc.css') }}' />
<style>
.box__select [type=checkbox]:checked + label, .box__select [type=radio]:checked + label, .form__radio-box [type=checkbox]:checked + label, .form__radio-box [type=radio]:checked + label, .form__radio-box label:hover, .icomoon-slider-next:hover, .box__select .selected {
background-color: #E40C25;
}
.config-slider .slick-dots li.slick-active, .form__options [type=checkbox]:checked + label:before, .form__radio-inline [type=radio]:checked + label:before {
background-color: #E40C25;
border-color: #E40C25;
}
.box__select [type=checkbox]:checked + label, .box__select [type=radio]:checked + label, .form__radio-box [type=checkbox]:checked + label, .form__radio-box [type=radio]:checked + label, .form__radio-box label:hover, .icomoon-slider-next:hover, .box__select .selected {
background-color: rgba(228, 12, 37, 0.15);
color: #E40C25;
}
h1.calc-title {
display: none;
}
section.calc {
padding-top: 20px;
}
</style>
{% endblock %}
{% block content %}
<section class="breadcrumbs__new">
<div class="container">
<ol class="vidi_breadcrumbs__new" itemscope itemtype="https://schema.org/BreadcrumbList">
<li class="marker__none" itemprop="itemListElement" itemscope
itemtype="https://schema.org/ListItem">
<a itemprop="item" href="{{ path('portal_homepage') }}">
<span class="breadcrumbs__link" itemprop="name">VIDI.UA</span></a>
<meta itemprop="position" content="1"/>
</li>
<div class="arrow-bc"></div>
<li itemprop="item" class="marker__none" itemprop="itemListElement" itemscope
itemtype="https://schema.org/ListItem">
<span style="color: #ABABAB" class="breadcrumbs__link" itemprop="name">{{ 'service.service'|trans({}, 'portal_base') }}</span>
<meta itemprop="position" content="2"/>
</li>
<div class="arrow-bc"></div>
<li itemprop="item" class="marker__none" itemprop="itemListElement" itemscope
itemtype="https://schema.org/ListItem">
<span style="color: #ABABAB" class="breadcrumbs__link" itemprop="name">{{ 'finance.insurance.title'|trans({}, 'portal_base') }}</span>
<meta itemprop="position" content="3"/>
</li>
</ol>
</div>
</section>
<section class="service-head-block section-padding-page">
<div class="container">
<div class="row">
<div class="col-md-5">
<h1 class="service-head-h1">{{ 'seo.insurance.h1'|trans({}, 'portal_base') }}</h1>
</div>
<div class="col-md-6 offset-md-1 flexbox-wrapper">
<div>
<p class="section-subtitle-page mb-0">{{ 'finance.insurance.subtitle'|trans({}, 'portal_base') }}</p>
</div>
</div>
</div>
</div>
</section>
<section class="sticky-top bg-menu-fixed" id="tradeinCalc">
<div class="container">
<div class="row">
<div class="col-md-12">
<ul class="pages-menu-fixed" id="list-example">
<li class="active">
<a href="#generalInformation">Калькулятор КАСКО</a>
</li>
<li>
<a href="#aboutService">{{ 'finance.insurance.about_service'|trans({}, 'portal_base') }}</a>
</li>
<li>
<a href="#risk">{{ 'finance.insurance.risks'|trans({}, 'portal_base') }}</a>
</li>
<li>
<a href="#advantages">{{ 'finance.insurance.advantages'|trans({}, 'portal_base') }}</a>
</li>
<li>
<a href="#faq">{{ 'finance.insurance.faqs'|trans({}, 'portal_base') }}</a>
</li>
</ul>
</div>
</div>
</div>
</section>
<div class="section-padding-page" id="generalInformation">
<div class="container">
<div class="row">
<div class="col-md-12 section-title-page mb-4">
<span>Калькулятор КАСКО {{ 'finance.insurance.new_car'|trans({}, 'portal_base') }}</span>
</div>
</div>
</div>
{% include '@DcSiteBundle/Modules/insurance.html.twig' with {bigSize : true} %}
<div class="container mt-4">
<div class="row">
<div class="col-md-12 section-title-page">
<p class="section-subtitle-page">{{ 'finance.insurance.consulatation'|trans({}, 'portal_base') }}: <a href="tel:380445033353" class="color-red">+38 (044) 503–33–53</a></p>
</div>
</div>
</div>
</div>
<section>
<div class="container">
<div class="row">
<div class="col-md-12 section-title-page mb-0">
<span>{{ 'finance.insurance.used_car'|trans({}, 'portal_base') }}</span>
</div>
</div>
</div>
{% include '@Portal/Finance/casco.html.twig' %}
</section>
{% if app.request.locale == 'ru' %}
{% include '@Portal/Finance/translations/insurance_ru.html.twig' %}
{% else %}
{% include '@Portal/Finance/translations/insurance_ua.html.twig' %}
{% endif %}
{% include '@DcSite/Modules/sps-popup.html.twig' %}
{% endblock %}
{% block pageJS %}
<script type="text/javascript" src="{{ asset('bundles/core/js/vue/vue.js') }}"></script>
<script type="text/javascript" src="{{ asset('bundles/insurance/js/casco.js') }}"></script>
<script>
app.onCustomEvent('appInit', function () {
app.loadJs("{{ asset('bundles/dcsite/js/casco.js') }}", function () {
initCasco({
initUrl : '{{ path('base_casco_init') }}',
initByDealerUrl : '{{ path('base_casco_init_by_dealer') }}',
optionsUrl : '{{ path('base_casco_options') }}',
formUrl : '{{ path('base_casco_save_form') }}',
privacyUrl: '{{ privacyUrl }}',
});
});
app.loadJs("{{ asset('bundles/portal/js/casco.js') }}", function () {
casco({
token: '{{ token }}',
initUrl: '{{ path('portal_calc_init') }}',
modelsUrl: '{{ path('portal_calc_models') }}',
estimateUrl: '{{ path('portal_calc_estimate') }}',
optionsUrl : '{{ path('portal_casco_options') }}',
formUrl : '{{ path('portal_casco_save_form') }}',
privacyUrl: '{{ privacyUrl }}',
baseCoefficientType : {{ baseType }},
listCoefficientType : {{ listType }},
optionCoefficientType : {{ optionType }}
});
});
});
$(window).on('scroll',function(e) {
var doc = document.documentElement;
var top = (window.pageYOffset || doc.scrollTop) - (doc.clientTop || 0);
var height = $('.calc').height();
if(top >= 1200 && top <= (700 + height)) {
$('.casco-result').css('position','fixed');
$('.casco-result').css('top','80px');
} else {
$('.casco-result').css('position','relative');
$('.casco-result').css('top','0');
}
});
</script>
{% endblock %}