Global 2026-07-28
This commit is contained in:
parent
7d6d4def15
commit
bae213a408
@ -1,7 +1,7 @@
|
||||
/* critical-home.css — critical above-fold styles for front-page only */
|
||||
:root{--main-color:#BF568E;--main-blue:#006DB7;--main-yellow:#FFD43E;--color-primary:#2563EB;--color-primary-dark:#1D4ED8;--color-primary-hover:#1E40AF;--color-secondary:#F59E0B;--color-bg-dark:#0F172A;--color-text:#0F172A;--color-text-muted:#475569;--color-text-light:#64748B;--color-rating:#F59E0B;--color-accent:#FFD43E;--color-focus-ring:rgba(37,99,235,.4);--font-display:"Plus Jakarta Sans","Inter","Oswald",sans-serif;--font-body:"Inter","Roboto",-apple-system,sans-serif;--text-body-sm:14px;--space-1:4px;--space-2:8px;--space-3:16px;--radius-sm:12px;--radius-md:20px;--radius-lg:24px;--radius-pill:100px;--radius-xl:24px;--shadow-sm:0 2px 12px rgba(15,23,42,.06);--shadow-md:0 8px 24px rgba(15,23,42,.1);--shadow-lg:0 16px 40px rgba(15,23,42,.12);--transition-fast:200ms ease-out;--transition-base:300ms ease-out;--focus-ring:0 0 0 4px var(--color-focus-ring);--z-index-header:200;--z-index-fixed:300;--z-index-modal:500;--accent-light:#F5F3FF;--accent-200:#DDD6FE;--accent-500:#8B5CF6;--accent-700:#5B21B6;--bg-soft:#F8FAFC;--text-tertiary:#94A3B8;--shadow-xl:0 20px 50px rgba(0,0,0,.15);--card-radius:20px;--card-shadow:0 2px 16px rgba(0,0,0,.06)}
|
||||
html{overflow-x:hidden;height:auto}
|
||||
body{color:#000;font-family:Roboto;background:#FFF;margin:0}
|
||||
body{overflow-x:hidden;color:#000;font-family:Roboto;background:#FFF;margin:0}
|
||||
main{display:flex;flex-direction:column;gap:0}
|
||||
.ds-container{max-width:1280px;margin:0 auto;padding-inline:16px}
|
||||
@media(min-width:768px){.ds-container{padding-inline:24px}}
|
||||
@ -43,7 +43,7 @@ main{display:flex;flex-direction:column;gap:0}
|
||||
.ds-hero__rating-text{font-size:13px;color:rgba(255,255,255,.65)}
|
||||
.ds-hero__address{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:13px;color:rgba(255,255,255,.7);margin-bottom:10px}
|
||||
.ds-hero__address svg{flex-shrink:0}
|
||||
.ds-hero__hours-badge{display:inline-flex;align-items:center;gap:4px;font-size:12px;color:rgba(255,255,255,.85);background:rgba(255,255,255,.08);padding:2px 10px;border-radius:100px;white-space:nowrap}
|
||||
.ds-hero__hours-badge{display:inline-flex;align-items:center;gap:8px;font-size:12px;color:rgba(255,255,255,.85);padding:2px 10px;border-radius:100px;white-space:nowrap}
|
||||
.ds-hero__social-proof{display:inline-flex;align-items:center;gap:8px;margin-top:12px;padding:8px 16px;background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.15);border-radius:10px;font-size:13px;color:rgba(255,255,255,.85);font-weight:500;line-height:1.4;max-width:520px}
|
||||
.ds-hero__social-proof svg{flex-shrink:0;opacity:.8}
|
||||
.ds-hero__cta-btn{display:inline-flex;align-items:center;gap:8px;font-family:var(--font-body);font-weight:600;background:var(--color-primary);color:#fff;border:none;border-radius:12px;cursor:pointer;padding:16px 40px;font-size:17px;box-shadow:0 4px 16px rgba(124,58,237,.35);margin:14px 0;text-decoration:none;width:fit-content}
|
||||
@ -64,7 +64,7 @@ main{display:flex;flex-direction:column;gap:0}
|
||||
.ds-hero__float--2{bottom:22%;left:-24px;background:linear-gradient(135deg,rgba(124,58,237,.2),rgba(168,85,247,.08));color:#D8C8FF;border:1px solid rgba(124,58,237,.15)}
|
||||
.ds-hero__float--3{bottom:4%;right:6%;background:linear-gradient(135deg,rgba(59,178,160,.2),rgba(59,178,160,.08));color:#B8E6DF;border:1px solid rgba(59,178,160,.15)}
|
||||
@media(max-width:860px){.ds-hero{padding:40px 0}.ds-hero__inner{flex-direction:column}.ds-hero__visual{flex:none;width:100%;max-width:360px;height:auto;min-height:320px;margin:0 auto}.ds-hero__photo-frame{width:260px;height:260px;border-width:5px}.ds-hero__h1{font-size:32px}}
|
||||
@media(max-width:768px){.ds-hero__visual{display:none}.ds-hero__content{max-width:none}.ds-hero__metrics{flex-wrap:wrap;gap:10px}.ds-hero__metric{flex:0 0 calc(50% - 5px);max-width:calc(50% - 5px);min-width:0;padding:12px 10px}.ds-hero__metric-number{font-size:clamp(22px,6vw,28px)}.ds-hero__cta-btn{width:100%;justify-content:center;margin-top:20px}}
|
||||
@media(max-width:768px){.ds-hero__visual{display:none}.ds-hero__content{max-width:none}.ds-hero__hours-badge{padding:0;border-radius:0}.ds-hero__metrics{flex-wrap:wrap;gap:10px}.ds-hero__metric{flex:0 0 calc(50% - 5px);max-width:calc(50% - 5px);min-width:0;padding:12px 10px}.ds-hero__metric-number{font-size:clamp(22px,6vw,28px)}.ds-hero__cta-btn{width:100%;justify-content:center;margin-top:20px}}
|
||||
@media(max-width:480px){.ds-hero__h1{font-size:26px}.ds-hero__cta-btn{padding:14px 20px;font-size:15px}}
|
||||
@media(max-width:860px){.desktop{display:none!important}.mobile{display:flex!important}body{padding-top:30px}.header{position:fixed;top:0;z-index:100}.header-nav{padding:23px 10px}.top-header-row{padding:0;border-bottom:none}.header-logo img{width:158px;height:30px;margin-left:-10px}.icon-links{display:flex;gap:25px;align-items:center}.burger-btn{margin-left:5px;display:flex;flex-direction:column;gap:6px;width:24px;height:18px;background:0 0;border:none;padding:0}.burger-btn span{width:100%;height:2px;background-color:#fff;border-radius:1px}.bottom-header-row{position:absolute;right:10px;top:30px}.menu-wrapper{display:none;position:fixed;left:0;top:120px;z-index:999999;background:#fff;width:100%;height:calc(100vh - 130px);overflow:auto;padding-bottom:100px}.bottom-header-row.open .menu-wrapper{display:flex;flex-direction:column}.header-menu{width:100%;display:block;font-size:16px;padding:70px 10px 0}.header-nav a{color:#000}.header-menu .menu-item{padding:10px 0;border-bottom:1px solid #8c8c8c75}.header-menu .menu-item:last-child{border-bottom:none}.header-menu .menu-item-has-children{flex-direction:column;align-items:flex-start}.header-menu .menu-item-has-children::before{width:14px;height:18px;right:17px;background-image:url(../images/slider-arow.svg);rotate:-90deg}.header-menu .sub-menu{position:relative;top:100%;padding:0;visibility:hidden;width:max-content;gap:0;border-radius:0;overflow:hidden;max-height:0;background:#fff}.header-menu .menu-item-has-children:hover .sub-menu{visibility:visible;max-height:100vh}.header-menu .menu-item-has-children:hover::before{rotate:90deg}.btn-free-lesson-header{display:none;width:286px;margin:30px auto 0}.btn-close-menu{width:286px;margin:10px auto 0;background:#ffd43e;border-radius:10px;padding:10px;font-family:Oswald;font-weight:500;font-size:22px;display:flex;justify-content:center;text-transform:uppercase;color:var(--main-color);border:none;cursor:pointer}.icon-close-menu{position:absolute;top:6px;right:10px}}
|
||||
.sticky-cta{display:none;position:fixed;bottom:0;left:0;right:0;z-index:1000;padding:8px 16px max(12px,env(safe-area-inset-bottom));background:linear-gradient(to top,rgba(255,255,255,.98) 60%,transparent)}
|
||||
|
||||
@ -174,8 +174,9 @@
|
||||
}
|
||||
/* ── Хайлайты из about-school ── */
|
||||
.answer-block__highlights {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
gap: 16px;
|
||||
max-width: 820px;
|
||||
margin: 28px auto 0;
|
||||
@ -187,6 +188,8 @@
|
||||
align-items: center;
|
||||
gap: 14px;
|
||||
padding: 18px 20px;
|
||||
flex: 1 1 240px;
|
||||
min-width: 200px;
|
||||
background: rgba(255, 255, 255, 0.7);
|
||||
border-radius: 14px;
|
||||
box-shadow: 0 2px 12px rgba(37, 99, 235, 0.06);
|
||||
@ -225,9 +228,12 @@
|
||||
}
|
||||
@media (max-width: 639px) {
|
||||
.answer-block__highlights {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 12px;
|
||||
}
|
||||
.answer-block__highlight {
|
||||
flex: 1 1 100%;
|
||||
min-width: 0;
|
||||
}
|
||||
}
|
||||
@media (max-width: 639px) {
|
||||
.answer-block__card {
|
||||
@ -1171,6 +1177,11 @@
|
||||
background: var(--color-primary, #2563EB);
|
||||
color: #FFFFFF;
|
||||
}
|
||||
.comparison__row--head .comparison__cell {
|
||||
justify-content: center;
|
||||
text-align: center;
|
||||
}
|
||||
.comparison__row--head .comparison__cell--param,
|
||||
.comparison__row--head .comparison__cell--dekart,
|
||||
.comparison__row--head .comparison__cell--state {
|
||||
color: #FFFFFF;
|
||||
@ -1200,8 +1211,8 @@
|
||||
font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
|
||||
}
|
||||
.comparison__cell--param {
|
||||
font-weight: 600;
|
||||
color: var(--color-text, #0F172A);
|
||||
font-weight: 700;
|
||||
color: var(--color-primary-dark, #1D4ED8);
|
||||
font-size: 0.9375rem;
|
||||
}
|
||||
.comparison__cell--dekart {
|
||||
|
||||
@ -9,6 +9,9 @@
|
||||
html {
|
||||
overflow-x: hidden;
|
||||
}
|
||||
body {
|
||||
overflow-x: hidden;
|
||||
}
|
||||
:root {
|
||||
--main-color: #BF568E;
|
||||
--main-blue: #006DB7;
|
||||
@ -274,9 +277,8 @@ html {
|
||||
}
|
||||
.ds-hero__address svg { flex-shrink: 0; }
|
||||
.ds-hero__hours-badge {
|
||||
display: inline-flex; align-items: center; gap: 4px;
|
||||
display: inline-flex; align-items: center; gap: 8px;
|
||||
font-size: 12px; color: rgba(255,255,255,0.85);
|
||||
background: rgba(255,255,255,0.08);
|
||||
padding: 2px 10px; border-radius: 100px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
@ -496,6 +498,7 @@ html {
|
||||
@media (max-width: 768px) {
|
||||
.ds-hero__visual { display: none; }
|
||||
.ds-hero__content { max-width: none; }
|
||||
.ds-hero__hours-badge { padding: 0; border-radius: 0; }
|
||||
.ds-hero__metrics { flex-wrap: wrap; gap: 10px; }
|
||||
.ds-hero__metric {
|
||||
flex: 0 0 calc(50% - 5px);
|
||||
@ -11581,6 +11584,7 @@ main > .pksh-section:first-child {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
padding: 28px 0 0;
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
.teachers-cards__all-link {
|
||||
display: inline-flex;
|
||||
|
||||
@ -2729,6 +2729,7 @@ function dekart_branch_register_settings()
|
||||
register_setting('dekart_branch_group', 'branch_price_camp', array( 'sanitize_callback' => 'sanitize_text_field' ));
|
||||
register_setting('dekart_branch_group', 'branch_price_clubs', array( 'sanitize_callback' => 'sanitize_text_field' ));
|
||||
register_setting('dekart_branch_group', 'branch_work_hours', array( 'sanitize_callback' => 'sanitize_text_field' ));
|
||||
register_setting('dekart_branch_group', 'branch_hours', array( 'sanitize_callback' => 'sanitize_text_field' ));
|
||||
register_setting('dekart_branch_group', 'branch_google_place_id', array( 'sanitize_callback' => 'sanitize_text_field' ));
|
||||
register_setting('dekart_branch_group', 'branch_google_maps_url', array( 'sanitize_callback' => 'esc_url_raw' ));
|
||||
register_setting('dekart_branch_group', 'branch_google_business_url', array( 'sanitize_callback' => 'esc_url_raw' ));
|
||||
@ -2796,10 +2797,15 @@ function dekart_branch_settings_page()
|
||||
<input type="text" name="branch_postal_code" value="<?php echo esc_attr(get_option('branch_postal_code', '')); ?>">
|
||||
</div>
|
||||
<div class="branch-field">
|
||||
<label>Часы работы (текст)</label>
|
||||
<label>Часы работы (текст — контакты)</label>
|
||||
<input type="text" name="branch_work_hours" value="<?php echo esc_attr(get_option('branch_work_hours', 'пн-пт 8:30–19:00, сб 9:00–15:00')); ?>">
|
||||
<p class="desc">Показывается в блоке контактов. Например: "пн-пт 8:30–19:00, сб 9:00–15:00"</p>
|
||||
</div>
|
||||
<div class="branch-field">
|
||||
<label>Часы работы (текст — хедер)</label>
|
||||
<input type="text" name="branch_hours" value="<?php echo esc_attr(get_option('branch_hours', 'ежедневно с 8:00 до 19:00, кроме субботы')); ?>">
|
||||
<p class="desc">Показывается на главной странице в hero-секции, рядом с адресом. Например: "ежедневно с 8:00 до 19:00, кроме субботы" или "пн-пт 8:00–19:00, сб 9:00–14:00"</p>
|
||||
</div>
|
||||
<div class="branch-field">
|
||||
<label>Google Place ID</label>
|
||||
<input type="text" name="branch_google_place_id" value="<?php echo esc_attr(get_option('branch_google_place_id', '')); ?>">
|
||||
|
||||
@ -101,14 +101,14 @@ if (! empty($extra_msgs) && is_array($extra_msgs)) {
|
||||
<svg aria-hidden="true" width="16" height="16"><use href="#icon-location-pin"/></svg>
|
||||
<span><?php echo esc_html(trim($branch_addr . ( $branch_addr && $branch_city ? ' — ' : '' ) . $branch_city)); ?></span>
|
||||
<?php $branch_hours = get_option('branch_hours'); if ($branch_hours) : ?>
|
||||
<span class="ds-hero__hours-badge">🕐 <?php echo esc_html($branch_hours); ?></span>
|
||||
<span class="ds-hero__hours-badge"><svg aria-hidden="true" width="16" height="16"><use href="#icon-clock"/></svg> <?php echo esc_html($branch_hours); ?></span>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<h1 id="hero-front-title" class="ds-hero__h1"><?php echo esc_html(crb_get_post_meta($post_id, 'banner_h1', 'Частная школа ' . $branch_city_prep)); ?></h1>
|
||||
|
||||
<p class="ds-hero__subtitle">Небольшие классы до 10 человек, опытные педагоги и углублённый английский с 1‑го класса. Учебные занятия проходят в первую половину дня (до 13:00). После обеда — продлёнка с досуговыми занятиями, прогулками и помощью с домашними заданиями (до 19:00). Можно забрать ребёнка после уроков или оставить на продлёнку. В продлёнку входят обед, полдник, помощь с ДЗ и кружки. Индивидуальный подход к каждому ученику. Приходите посмотреть школу и познакомиться с учителем. Открыт набор на <span class="ds-hero__year"><?php echo esc_html($school_year); ?></span> учебный год.</p>
|
||||
<p class="ds-hero__subtitle">Небольшие классы до 15 человек, опытные педагоги и углублённый английский с 1‑го класса. Учебные занятия проходят в первую половину дня (до 13:00). После обеда — продлёнка с досуговыми занятиями, прогулками и помощью с домашними заданиями (до 19:00). Можно забрать ребёнка после уроков или оставить на продлёнку. В продлёнку входят обед, полдник, помощь с ДЗ и кружки. Индивидуальный подход к каждому ученику. Приходите посмотреть школу и познакомиться с учителем. Открыт набор на <span class="ds-hero__year"><?php echo esc_html($school_year); ?></span> учебный год.</p>
|
||||
|
||||
<?php if (! empty($floats)) : ?>
|
||||
<div class="ds-hero__mobile-usps">
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user