<?php
/**
 * Template Name: Подготовка к школе (Bento 2026)
 *
 * Полный рефакторинг: логика вынесена в Pksh_Data (inc/class-pksh-data.php),
 * секции — в template-parts/pksh/*.php.
 *
 * @package Dekart
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

// Автозагрузка Pksh_Data (синглтон, кэширует все get_option / carbon_get_post_meta)
if ( ! class_exists( 'Pksh_Data' ) ) {
	require_once get_template_directory() . '/inc/class-pksh-data.php';
}
// Инициализируем один раз при загрузке шаблона
$data = Pksh_Data::instance();

get_header();
?>

<?php get_template_part( 'template-parts/svg-sprite' ); ?>

<main class="page page-pksh">

	<?php
	get_template_part( 'template-parts/pksh/breadcrumbs' );
	get_template_part( 'template-parts/pksh/hero' );
	get_template_part( 'template-parts/pksh/social-counters' );
	get_template_part( 'template-parts/pksh/guarantee-hero' );
	get_template_part( 'template-parts/pksh/checklist' );
	get_template_part( 'template-parts/pksh/how-it-works' );
	get_template_part( 'template-parts/pksh/cta-test' );
	get_template_part( 'template-parts/pksh/results' );
	get_template_part( 'template-parts/pksh/compare' );
	get_template_part( 'template-parts/pksh/programs' );

	// Shared template-part (легаси, не вынесен в pksh/)
	get_template_part( 'template-parts/block-price' );

	get_template_part( 'template-parts/pksh/teachers' );
	get_template_part( 'template-parts/pksh/gallery' );
	get_template_part( 'template-parts/pksh/guarantee-standalone' );
	get_template_part( 'template-parts/pksh/faq' );
	get_template_part( 'template-parts/pksh/reviews' );
	get_template_part( 'template-parts/pksh/trust-authority' );
	get_template_part( 'template-parts/pksh/external-reviews' );
	get_template_part( 'template-parts/pksh/final-cta' );
	get_template_part( 'template-parts/pksh/contacts' );
	get_template_part( 'template-parts/pksh/sticky-cta' );
	?>

</main>

<?php get_footer(); ?>
