Лагерь: Секция 2-3

This commit is contained in:
Dekart Deploy Bot 2026-05-11 22:35:18 +03:00
parent bbb0161bcd
commit e693fa55d1
3 changed files with 290 additions and 172 deletions

View File

@ -1146,135 +1146,240 @@ html {
/* modal END */
/* bring-child */
.bring-child p {
margin-bottom: 0;
}
.bring-child-wrapper {
display: flex;
gap: 40px;
align-items: stretch;
}
.part-day {
width: calc(50% - 20px);
padding: 30px;
border-radius: 40px;
border: 2px solid #e8e8e8;
.pricing-card {
flex: 1;
background: #fff;
border-radius: 24px;
padding: 36px 32px;
display: flex;
flex-direction: column;
gap: 30px;
color: #212121;
gap: 24px;
border: 1px solid #e8e8e8;
box-shadow: 0 2px 12px rgba(0,0,0,0.04);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.block-row {
.pricing-card:hover {
transform: translateY(-4px);
box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}
.pricing-card--full {
border-color: #ae5fcd;
box-shadow: 0 4px 20px rgba(174, 95, 205, 0.1);
position: relative;
}
.pricing-card--full::before {
content: '"0#5#A#E#C#5#D#4$3#5#C';
position: absolute;
top: -12px;
left: 50%;
transform: translateX(-50%);
background: #ae5fcd;
color: #fff;
font-family: Inter, sans-serif;
font-size: 13px;
font-weight: 600;
padding: 4px 20px;
border-radius: 20px;
white-space: nowrap;
}
.pricing-card__header {
display: flex;
flex-direction: column;
align-items: center;
gap: 12px;
text-align: center;
}
.pricing-card__badge {
width: 48px;
height: 48px;
border-radius: 14px;
display: flex;
align-items: center;
gap: 10px;
justify-content: center;
}
.part-day_title {
display: flex;
flex-direction: column;
gap: 10px;
.pricing-card__badge--half {
background: rgba(59, 178, 115, 0.1);
}
.part-day_title-text {
font-size: 30px;
.pricing-card__badge--full {
background: rgba(174, 95, 205, 0.1);
}
.pricing-card__title {
font-family: Montserrat, sans-serif;
font-size: 26px;
font-weight: 700;
color: #1c2b2d;
margin: 0;
line-height: 1.2;
font-weight: 600;
}
.part-day_text {
font-size: 18px;
line-height: 1.3;
font-weight: 500;
.pricing-card__desc {
font-family: Inter, sans-serif;
font-size: 15px;
line-height: 1.5;
color: #666;
margin: 0;
}
.part-day__price {
padding-bottom: 30px;
border-bottom: 1px solid #e8e8e8;
display: flex;
flex-direction: column;
gap: 10px;
}
.part-day__price_price {
font-size: 34px;
line-height: 1;
font-weight: 600;
}
.part-day__price_time {
font-size: 18px;
font-weight: 500;
border-radius: 30px;
color: #fff;
padding: 5px 10px;
margin-left: 10px;
}
.camp-left-part .part-day__price_time {
border: 2px solid #3bb273;
background-color: #3bb273;
}
.camp-right-part .part-day__price_time {
border: 2px solid #ae5fcd;
background-color: #ae5fcd;
}
.non-bg {
background-color: transparent !important;
color: #212121;
}
.part-day__price_text {
color: #9d9d9d;
font-size: 18px;
line-height: 1.3;
font-weight: 500;
}
.btn-place {
.pricing-card__price {
text-align: center;
padding: 20px 0;
color: #ffffff;
font-size: 20px;
line-height: 1.3;
border-top: 1px solid #eee;
border-bottom: 1px solid #eee;
display: flex;
flex-direction: column;
gap: 4px;
}
.pricing-card__amount {
font-family: Montserrat, sans-serif;
font-size: 36px;
font-weight: 800;
color: #1c2b2d;
line-height: 1.1;
}
.pricing-card--half .pricing-card__amount {
color: #3bb273;
}
.pricing-card--full .pricing-card__amount {
color: #ae5fcd;
}
.pricing-card__period {
font-family: Inter, sans-serif;
font-size: 14px;
color: #999;
font-weight: 500;
}
.pricing-card__slots {
display: flex;
flex-direction: column;
gap: 8px;
}
.pricing-card__slot {
display: flex;
align-items: center;
justify-content: space-between;
padding: 10px 16px;
background: #f8f8f8;
border-radius: 10px;
}
.pricing-card__slot-time {
font-family: Inter, sans-serif;
font-size: 15px;
font-weight: 600;
width: 100%;
border-radius: 50px;
text-transform: uppercase;
transition: .3s;
color: #1c2b2d;
}
.camp-left-part .btn-place {
border: 2px solid #3bb273;
background-color: #3bb273;
.pricing-card__slot-label {
font-family: Inter, sans-serif;
font-size: 13px;
color: #999;
font-weight: 500;
}
.camp-right-part .btn-place {
border: 2px solid #ae5fcd;
background-color: #ae5fcd;
}
.btn-place:hover {
background-color: transparent !important;
color: #212121;
}
.part-day ul {
.pricing-card__features {
display: flex;
flex-direction: column;
gap: 10px;
color: #212121;
font-size: 18px;
line-height: 1.3;
font-weight: 500;
padding-left: 20px;
padding: 0;
margin: 0;
list-style: none;
}
.part-day ul li {
list-style: disc;
.pricing-card__features li {
font-family: Inter, sans-serif;
font-size: 15px;
line-height: 1.5;
color: #444;
padding-left: 24px;
position: relative;
}
.pricing-card__features li::before {
content: '¹3';
position: absolute;
left: 0;
top: 2px;
width: 18px;
height: 18px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 11px;
font-weight: 700;
}
.pricing-card--half .pricing-card__features li::before {
background: rgba(59, 178, 115, 0.15);
color: #3bb273;
}
.pricing-card--full .pricing-card__features li::before {
background: rgba(174, 95, 205, 0.15);
color: #ae5fcd;
}
.pricing-card__extra {
display: flex;
align-items: center;
gap: 8px;
padding: 12px 16px;
background: #fafafa;
border-radius: 10px;
font-family: Inter, sans-serif;
font-size: 14px;
color: #555;
font-weight: 500;
}
.pricing-card__btn {
width: 100%;
padding: 16px 0;
border: none;
border-radius: 50px;
font-family: Montserrat, sans-serif;
font-size: 16px;
font-weight: 700;
text-transform: uppercase;
cursor: pointer;
transition: background 0.3s ease;
color: #fff;
}
.pricing-card--half .pricing-card__btn {
background: #3bb273;
}
.pricing-card--half .pricing-card__btn:hover {
background: #2d9d5f;
}
.pricing-card--full .pricing-card__btn {
background: #ae5fcd;
}
.pricing-card--full .pricing-card__btn:hover {
background: #9747b8;
}
/* bring-child END */

View File

@ -24,9 +24,6 @@ const modalMentors = document.querySelector('.modal-mentors');
const modalCampRequestForm = document.querySelector('.modal-camp-request-form');
const b24template = document.querySelector('#b24-camp-template');
const b24container = document.querySelector('.b24-form-container');
btnCloseModalPrograms.addEventListener("click", function (event) {
modalPrograms.classList.remove('open');
});
@ -39,8 +36,6 @@ document.addEventListener("click", function (event) {
if (target.classList.contains("btn-close-request-form-camp")) {
modalCampRequestForm.classList.add('hidden');
// clear bitrix24 form on close (ready for re-open)
b24container.innerHTML = '';
return;
}
@ -48,18 +43,22 @@ document.addEventListener("click", function (event) {
if (campBtn) {
if (campBtn.tagName === 'A') event.preventDefault();
// prevent footer bitrix24 loader
window.b24campLoaded = true;
// show modal
modalCampRequestForm.classList.remove('hidden');
// load Bitrix24 from template
if (b24template && !b24container.hasChildNodes()) {
const clone = document.importNode(b24template.content, true);
b24container.appendChild(clone);
var container = modalCampRequestForm.querySelector('.b24-form-container');
if (!container.querySelector('.b24-form')) {
var fForm = modalCampRequestForm.dataset.b24Form;
var fLoader = modalCampRequestForm.dataset.b24Loader;
if (fForm && fLoader) {
var s = document.createElement('script');
s.setAttribute('data-b24-form', fForm);
s.setAttribute('data-skip-moving', 'true');
s.text = "(function(w,d,u){var s=d.createElement('script');s.async=true;s.src=u+'?'+(Date.now()/180000|0);var h=d.getElementsByTagName('script')[0];h.parentNode.insertBefore(s,h);})(window,document,'" + fLoader + "');";
container.appendChild(s);
}
}
return;
}

View File

@ -292,67 +292,74 @@ $metrics = [
?>
<h2 class="camp_title">Приводите ребёнка, когда вам удобно</h2>
<div class="bring-child-wrapper">
<div class="part-day camp-left-part">
<div class="part-day_title">
<div class="block-row">
<p class="part-day_title-text">Половина дня</p>
<img loading="lazy" src="<?php echo $theme_uri; ?>/assets/images/green-star.svg" width="30" height="30" alt="">
<div class="pricing-card pricing-card--half">
<div class="pricing-card__header">
<div class="pricing-card__badge pricing-card__badge--half">
<img loading="lazy" src="<?php echo $theme_uri; ?>/assets/images/green-star.svg" width="24" height="24" alt="">
</div>
<p class="part-day_text">Время пребывания на выбор (до обеда или до вечера)</p>
<h3 class="pricing-card__title">Половина дня</h3>
<p class="pricing-card__desc">Время пребывания на выбор (до обеда или до вечера)</p>
</div>
<div class="part-day__price">
<div class="block-row">
<div class="part-day__price_price" itemprop="offers" itemscope itemtype="https://schema.org/Offer"><span itemprop="price" content="<?php echo esc_attr($price_half_day); ?>"><?php echo number_format($price_half_day, 0, ',', ' '); ?></span><meta itemprop="priceCurrency" content="RUB"></div>
<div class="part-day__price_time">с 8:30 до 13:30</div>
<div class="pricing-card__price" itemprop="offers" itemscope itemtype="https://schema.org/Offer">
<span class="pricing-card__amount" itemprop="price" content="<?php echo esc_attr($price_half_day); ?>"><?php echo number_format($price_half_day, 0, ',', ' '); ?> ₽</span>
<span class="pricing-card__period">за 5 дней</span>
<meta itemprop="priceCurrency" content="RUB">
</div>
<p class="part-day__price_text">за 5 дней пребывания</p>
<div class="pricing-card__slots">
<div class="pricing-card__slot">
<span class="pricing-card__slot-time">с 8:30 до 13:30</span>
<span class="pricing-card__slot-label">утренняя смена</span>
</div>
<div class="part-day__price">
<div class="block-row">
<div class="part-day__price_price">
<?php echo number_format($price_half_day, 0, ',', ' '); ?></div>
<div class="part-day__price_time non-bg">с 13:30 до 18:30</div>
<div class="pricing-card__slot">
<span class="pricing-card__slot-time">с 13:30 до 18:30</span>
<span class="pricing-card__slot-label">вечерняя смена</span>
</div>
<p class="part-day__price_text">за 5 дней пребывания</p>
</div>
<div class="block-row">
<img loading="lazy" src="<?php echo $theme_uri; ?>/assets/images/calendar.png" width="27" height="28" alt="">
<p class="part-day_text">Тематическая неделя на выбор</p>
</div>
<button class="btn-place btn-write-camp">Занять место</button>
<ul>
<ul class="pricing-card__features">
<li><b>5 дней</b> пребывания в клубе</li>
<li>творческие занятия и мастер-классы <b>1 раз в день</b></li>
<li>умные прогулки <b>1 раз в день</b> (в зависимости от погодные условий)</li>
<li>умные прогулки <b>1 раз в день</b></li>
</ul>
<div class="pricing-card__extra">
<img loading="lazy" src="<?php echo $theme_uri; ?>/assets/images/calendar.png" width="20" height="20" alt="">
<span>Тематическая неделя на выбор</span>
</div>
<div class="part-day camp-right-part">
<div class="part-day_title">
<div class="block-row">
<p class="part-day_title-text">Полный день</p>
<img loading="lazy" src="<?php echo $theme_uri; ?>/assets/images/star-02.svg" width="30" height="30" alt="">
<button class="pricing-card__btn btn-write-camp">Занять место</button>
</div>
<p class="part-day_text">Пребывание в клубе с утра до вечера, дополнительные активности</p>
<div class="pricing-card pricing-card--full">
<div class="pricing-card__header">
<div class="pricing-card__badge pricing-card__badge--full">
<img loading="lazy" src="<?php echo $theme_uri; ?>/assets/images/star-02.svg" width="24" height="24" alt="">
</div>
<div class="part-day__price">
<div class="block-row">
<div class="part-day__price_price" itemprop="offers" itemscope itemtype="https://schema.org/Offer"><span itemprop="price" content="<?php echo esc_attr($price_full_day); ?>"><?php echo number_format($price_full_day, 0, ',', ' '); ?></span><meta itemprop="priceCurrency" content="RUB"></div>
<div class="part-day__price_time non-bg">с 8:30 до 18:30</div>
<h3 class="pricing-card__title">Полный день</h3>
<p class="pricing-card__desc">Пребывание в клубе с утра до вечера, дополнительные активности</p>
</div>
<p class="part-day__price_text">за 5 дней пребывания</p>
<div class="pricing-card__price" itemprop="offers" itemscope itemtype="https://schema.org/Offer">
<span class="pricing-card__amount" itemprop="price" content="<?php echo esc_attr($price_full_day); ?>"><?php echo number_format($price_full_day, 0, ',', ' '); ?> ₽</span>
<span class="pricing-card__period">за 5 дней</span>
<meta itemprop="priceCurrency" content="RUB">
</div>
<div class="block-row">
<img loading="lazy" src="<?php echo $theme_uri; ?>/assets/images/calendar+.png" width="27" height="28" alt="">
<p class="part-day_text">Тематическая неделя на выбор</p>
<div class="pricing-card__slots">
<div class="pricing-card__slot">
<span class="pricing-card__slot-time">с 8:30 до 18:30</span>
<span class="pricing-card__slot-label">полный день</span>
</div>
<button class="btn-place btn-write-camp">Занять место</button>
<ul>
</div>
<ul class="pricing-card__features">
<li><b>5 дней</b> пребывания в клубе</li>
<li>творческие занятия и мастер-классы <b>2 раза в день</b></li>
<li>умные прогулки <b>2 раза в день</b> (в зависимости от погодные условий)</li>
<li>умные прогулки <b>2 раза в день</b></li>
<li>тематические экскурсии каждую неделю</li>
</ul>
<div class="pricing-card__extra">
<img loading="lazy" src="<?php echo $theme_uri; ?>/assets/images/calendar+.png" width="20" height="20" alt="">
<span>Тематическая неделя на выбор</span>
</div>
<button class="pricing-card__btn btn-write-camp">Занять место</button>
</div>
</div>
</section>
@ -700,7 +707,16 @@ $metrics = [
</div>
</div>
<div class="modal-camp-request-form hidden">
<?php
$_b24_raw = carbon_get_post_meta($post_id, 'camp_bitrix_script');
$_b24_form = '';
$_b24_url = '';
if (preg_match('/data-b24-form="([^"]+)"/', $_b24_raw, $_m)) $_b24_form = $_m[1];
if (preg_match("/\\(window,document,'([^']+)'\\)/", $_b24_raw, $_m)) $_b24_url = $_m[1];
?>
<div class="modal-camp-request-form hidden"
data-b24-form="<?php echo esc_attr($_b24_form); ?>"
data-b24-loader="<?php echo esc_attr($_b24_url); ?>">
<div class="form-wrapper">
<button class="btn-close-request-form">
<img class="btn-close-request-form-camp" src="<?php echo $theme_uri; ?>/assets/images/btn-close-modal.svg" alt="кнопка закрыть окно">
@ -709,8 +725,6 @@ $metrics = [
</div>
</div>
<template id="b24-camp-template"><?php echo carbon_get_post_meta($post_id, 'camp_bitrix_script' ); ?></template>
<script>
(function() {
var mapLoaded = false;