{include file="header.tpl" title=$section.name keywords=$section.keywords description=$section.description}

<main class="main">

	{* banner page *}
	{include file="modules/banner.tpl"}
	{* /banner page *}

	{* Услуги *}
	{fetch_sections assign=services from=$section.sectionId status="V" image=true}{if !empty($services)}
	<section class="flex:col pad-tb-50">
		<div class="flex:col-max">
			<div class="grid:fr-1 g-gap-40">
				<div class="block-head">
					<div class="text-tmp title-40 title-tt-up title-accent-2"><h2>{$section.name}</h2></div>
				</div>

				<div class="grid:fr-4 g-gap-20 max">
					{assign var=delayNum value=0}
					{foreach item=service from=$services name=services}
						{* service item *}
						{include file="items/service.tpl" delay="`$delayNum`00"}
						{* /service item *}
						{if $delayNum eq 4}{assign var=delayNum value=0}{/if}
						{assign var=delayNum value=$delayNum+1}
					{/foreach}
				</div>
			</div>
		</div>
	</section>
	{/if}
	{* /Услуги *}

	{* ЭТАПЫ РАБОТ *}
	{fetch_section assign=stepsSection section=24 getContent=true}{if !empty($stepsSection) && $stepsSection.status eq 'V'}
	<section class="flex:col pad-tb-50 block-shadow">
		<div class="flex:col-max">
			<div class="grid:fr-1 g-gap-40">
				<div class="block-head">
					<div class="text-tmp title-40 title-tt-up title-accent-2"><h2>{$stepsSection.name}</h2></div>
				</div>

				{assign var=delayNum2 value=0}
				{bracket_regex from=$stepsSection.content strip_tags=true}
				<div class="grid:fr-3 g-gap-20 max">
					{foreach from=$regex item=item name=items}
						<div class="step-card" data-aos="zoom-out" data-aos-duration="500" data-aos-delay="{$delayNum2}00">
							<div class="step-card__number">{$smarty.foreach.items.iteration}</div>
							<div class="step-card__info">
								<div class="text-tmp title-20 title-accent">
									<h3>{$item.code}</h3>
									<p>{$item.content nofilter}</p>
								</div>
							</div>
						</div>

						{assign var=delayNum2 value=$delayNum2+1}
					{/foreach}
				</div>
			</div>

		</div>
	</section>
	{/if}
	{* /ЭТАПЫ РАБОТ *}

	{* Котакты *}
	{include file="blocks/contacts.tpl"}
	{* /Котакты *}

</main>

{include file="footer.tpl"}