diff --git a/wp-content/themes/dekart/assets/css/podgotovka-k-shkole.css b/wp-content/themes/dekart/assets/css/podgotovka-k-shkole.css index 644e0a4..630d408 100644 --- a/wp-content/themes/dekart/assets/css/podgotovka-k-shkole.css +++ b/wp-content/themes/dekart/assets/css/podgotovka-k-shkole.css @@ -114,10 +114,6 @@ background: rgba(124, 58, 237, 0.2); color: #fff; } -.bento-p--light { - color: rgba(255,255,255,0.65); -} - .bento-p { font-size: 1rem; line-height: 1.65; @@ -125,6 +121,10 @@ background: rgba(124, 58, 237, 0.2); margin: 0 0 20px; } +.bento-p--light { + color: rgba(255,255,255,0.65); +} + /* ── Centered section header (replaces inline style="text-align:center" on bento__full) ── */ .section-header--centered { text-align: center; @@ -2715,40 +2715,40 @@ background: rgba(124, 58, 237, 0.2); /* ── Honest Timer ── */ .honest-timer { text-align: center; - margin: 20px 0 12px; + margin: 24px 0 16px; } .honest-timer__label { display: block; font-size: 0.875rem; color: var(--slate-500, #64748B); - margin-bottom: 10px; + margin-bottom: 12px; font-weight: 600; } .honest-timer__digits { display: inline-flex; align-items: center; - gap: 4px; + gap: 8px; } .honest-timer__unit { display: flex; flex-direction: column; align-items: center; - gap: 2px; + gap: 4px; } .honest-timer__num { display: block; - min-width: 52px; - padding: 6px 8px; + min-width: 60px; + padding: 10px 14px; background: linear-gradient(135deg, #1E1B4B, #312E81); color: #fff; font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; - border-radius: 10px; + border-radius: 12px; line-height: 1.2; text-align: center; } @@ -2764,14 +2764,17 @@ background: rgba(124, 58, 237, 0.2); font-size: 1.5rem; font-weight: 700; color: var(--slate-300, #CBD5E1); - margin-bottom: 18px; + align-self: center; + line-height: 1; + margin-bottom: 0; } @media (max-width: 480px) { .honest-timer__num { - min-width: 40px; + min-width: 44px; font-size: 1.25rem; - padding: 4px 6px; + padding: 8px 10px; + border-radius: 10px; } .honest-timer__sep { font-size: 1.25rem; @@ -2784,12 +2787,19 @@ background: rgba(124, 58, 237, 0.2); ═══════════════════════════════════════════════════════════ */ .pksh-compare { + width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 16px; margin-top: -16px; } +/* Fix: stretch full width in CSS Grid (bento = 12-col grid) */ +.bento[aria-label="Сравнение"] .pksh-compare { + grid-column: 1 / -1; + width: 100%; +} + .pksh-compare::-webkit-scrollbar { height: 6px; } .pksh-compare::-webkit-scrollbar-thumb { background: var(--accent, #7C3AED); diff --git a/wp-content/themes/dekart/functions.php b/wp-content/themes/dekart/functions.php index 223f1a1..1859bd7 100644 --- a/wp-content/themes/dekart/functions.php +++ b/wp-content/themes/dekart/functions.php @@ -686,6 +686,58 @@ function add_carbon() { ->set_default_value( 'Осталось 3 места в группе' ), )) // ==================================================== + // Вкладка: Сравнение (Как мы отличаемся) + // ==================================================== + ->add_tab('📊 Как мы отличаемся', array( + Field::make( 'html', 'pksh_compare_tab_desc', '' ) + ->set_html( '
Секция: .pksh-compare. Таблица сравнения Декарт vs Репетитор vs Кружок. Каждая строка — отдельная запись. Порядок = порядок вывода.
' ), + Field::make( 'complex', 'pksh_compare_rows', 'Строки таблицы' ) + ->set_layout( 'tabbed-horizontal' ) + ->set_help_text( 'Добавьте строки сравнения. Для каждой строки: критерий, текст для трёх колонок, иконка ✓/✗ для каждой колонки.' ) + ->add_fields( array( + Field::make( 'text', 'criteria', 'Критерий' ) + ->set_width( 100 ) + ->set_help_text( 'Название строки, например: «Гослицензия»' ), + Field::make( 'html', 'pksh_compare_dekart_header', '' ) + ->set_html( '- Важно: Данные по репетиторам и кружкам — рыночная оценка, требуют уточнения. - Пожалуйста, подтвердите или скорректируйте цифры у руководителя. -
+ + +Ребёнок познакомится с педагогом, попробует задания. Вы увидите методику своими глазами. Никакой оплаты и договоров.
-🔥 Осталось 2 места в группе 5–6 лет. Успейте!
@@ -1001,28 +1059,6 @@ $opt_social_raw = get_option( 'branch_social' ) ?: carbon_get_post_meta( $post_