         /*
Theme Name: nl
*/

 
/* Обычный (Regular) - вес 400 */
@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 400; 
    src: url('fonts/Nunito-Regular.woff2') format('truetype');
}

/* Жирный (Bold) - вес 700 */
@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 700;
    src: url('fonts/Nunito-Bold.woff2') format('truetype');
}

/* Супер-жирный (Black) - вес 900 */
@font-face {
    font-family: 'Nunito'; 
    font-style: normal;
    font-weight: 900;
    src: url('fonts/Nunito-Black.woff2') format('truetype');
}



/* Обычный (Regular) - вес 400 (на всякий случай) */
@font-face {
    font-family: 'Comfortaa';
    font-style: normal;
    font-weight: 400;
    src: url('fonts/Comfortaa-Regular.woff2') format('truetype');
}


/* Полужирный (SemiBold) - вес 600. Самый красивый для этого шрифта. */
@font-face {
    font-family: 'Comfortaa';
    font-style: normal;
    font-weight: 600;  
    src: url('fonts/Comfortaa-SemiBold.woff2') format('truetype');
}
 
 /* Полужирный (SemiBold) - вес 600. Самый красивый для этого шрифта. */
@font-face {
    font-family: 'Comfortaa';
    font-style: normal;
    font-weight: 700; 
    src: url('fonts/Comfortaa-Bold.woff2') format('truetype');
}
 

:root {
    --bg-color: #F0F7FF;
    --primary-color: #4D96FF;
    --secondary-color: #6BCB77;
    --accent-color: #FFD93D;
    --danger-color: #FF6B6B;
    --card-radius: 1.5rem;
    --btn-radius: 50px;
    --border-width: 3px;
}






body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--bg-color);
    background-image: radial-gradient(#D6E6F2 2px, transparent 2px);
    background-size: 30px 30px;
    color: #2D3436;
    font-size: 17px;
}

img {
  max-width: 100%;
  height: auto;
}

/* Типографика */
h1, h2, h3, h4, .btn, .nav-link, .badge {
    font-family: 'Comfortaa', sans-serif;
    letter-spacing: 0.5px;
}

/* Навигация */
.navbar-pop {
    background: #fff;
    border-bottom: var(--border-width) solid #E1E8EF;
    padding: 1rem 0;
}
.nav-link { font-size: 1.1rem; font-weight: 600; color: #333; }
.nav-link:hover, .nav-link.active { color: var(--primary-color); }

/* Хлебные крошки (Breadcrumbs) */
.breadcrumb-pop .breadcrumb-item a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 700;
    background: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    border: 2px solid #E1E8EF;
    display: inline-block;
}
.breadcrumb-pop .breadcrumb-item.active {
    color: #636e72;
    padding: 5px 12px;
    font-weight: 700;
}

/* Карточки категорий */
.card-category {
    border: none;
    border-radius: var(--card-radius);
    background: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 10px 0 #E1E8EF; /* Жесткая тень снизу */
    border: var(--border-width) solid #E1E8EF;
    height: 100%;
    text-decoration: none;
    display: block;
    color: inherit;
    overflow: hidden;
}

.card-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 0 #d1dce5;
    border-color: var(--primary-color);
}
.card-category:active {
    transform: translateY(2px);
    box-shadow: 0 5px 0 #d1dce5;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    padding: 15px;
    border-radius: 50%;
    background: #F0F7FF;
    color: var(--primary-color);
}

/* Цветовые модификаторы для карточек */
.card-math .card-icon { color: #4D96FF; background: #E6F0FF; }
.card-rus .card-icon { color: #FF6B6B; background: #FFF0F0; }
.card-logic .card-icon { color: #FFD93D; background: #FFF9E6; }
.card-eng .card-icon { color: #6BCB77; background: #E9F9EB; }

/* Кнопки */
.btn-pop {
    border-radius: var(--btn-radius);
    padding: 10px 25px;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 5px 0 rgba(0,0,0,0.1);
    transition: all 0.1s;
    border: none;
}
.btn-pop:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(0,0,0,0.1); }

.btn-primary-pop { background-color: var(--primary-color); color: white; box-shadow: 0 5px 0 #2b7de0; }
.btn-primary-pop:hover { background-color: #3b89f5; color: white; }

/* Футер */
.footer-pop {
    background: #fff;
    border-top: var(--border-width) solid #E1E8EF;
    margin-top: 4rem;
    padding: 2rem 0;
}/* Добавь это в style-kids.css */

/* Герой-блок (Шапка главной) */
.hero-section {
    background: linear-gradient(135deg, #4D96FF 0%, #6BCB77 100%);
    color: white;
    border-radius: 0 0 50% 50% / 40px; /* Изогнутый низ */
    padding: 4rem 0 6rem 0;
    margin-bottom: -3rem; /* Чтобы карточки наехали на фон */
    text-align: center;
}

/* Цветные карточки для главной */
.home-card {
    border: none;
    border-radius: 2rem;
    padding: 2rem;
    height: 100%;
    color: white;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    position: relative;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.home-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    color: white;
}

/* Декоративный круг внутри карточки */
.home-card::after {
    content: '';
    position: absolute;
    top: -20px; right: -20px;
    width: 100px; height: 100px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
}

/* Цвета разделов */
.bg-trainers { background: linear-gradient(135deg, #FF9966 0%, #FF5E62 100%); } /* Оранжевый */
.bg-sims     { background: linear-gradient(135deg, #A18CD1 0%, #FBC2EB 100%); } /* Фиолетовый */
.bg-calc     { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); } /* Голубой */
.bg-visual   { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); color: #005c4b !important; } /* Мятный */
.bg-tests    { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); } /* Желто-розовый */
.bg-convert  { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); } /* Индиго */
.bg-library  { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); } /* Розовый */

.home-icon { font-size: 3.5rem; margin-bottom: 1rem; }



/* --- Стили для SEO-текста (Внутри редактора) --- */
.fcfb-html-box,
.content {
    font-size: 1.15rem; /* Чуть крупнее стандарта для читаемости */
    line-height: 1.4;
    color: #333!important;; /* Мягкий серый цвет */
}

.fcfb-html-box > *:last-child,
.content > *:last-child {
  margin-bottom: 0;
}

/* Заголовки внутри текста */
.fcfb-html-box h2,
.fcfb-html-box h3,
.content h2, 
.content h3 {
    font-family: 'Comfortaa', sans-serif;
    color: #2D3436; /* Темный цвет */
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}




.fcfb-html-box h2,
.content h2 { 
font-size: 1.8rem; 
}


.fcfb-html-box h3,
.content h3 { font-size: 1.5rem; }


/* Параграфы */
.fcfb-html-box p,
.content p {
    margin-bottom: 1.5rem;
}

/* Списки (Самое важное!) */
/* Делаем их красивыми без классов bootstrap */
.fcfb-html-box ul, 
.fcfb-html-box ol,
.content ul, 
.content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.fcfb-html-box li,
.content li {
    margin-bottom: 0.3rem;
    position: relative;
}

/* Кастомные маркеры для списка (Вместо черных точек) */
.fcfb-html-box ul,
.content ul {
    list-style: none; /* Убираем стандартные точки */
}

.fcfb-html-box  ul li::before,
.content ul li::before {
    content: "●"; /* Или можно иконку: "\F26A" (bootstrap check) */
    color: var(--primary-color); /* Синий цвет маркера */
    font-weight: 900;
    display: inline-block;
    width: 1.2em;
    margin-left: -1.2em;
}

/* Ссылки внутри текста */
.fcfb-html-box  a,
.content a {
    color: var(--primary-color);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    font-weight: 700;
}

.fcfb-html-box  a:hover,
.content a:hover {
    color: #3b89f5;
    text-decoration: none;
}

/* Картинки внутри текста */
.fcfb-html-box img,
.content img {
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
    margin: 1.5rem 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}








/* =========================================
   СТИЛИ ДЛЯ СТРАНИЦЫ УПРАЖНЕНИЯ
   ========================================= */

/* --- 1. ЛЕВЫЙ САЙДБАР (Навигация) --- */
.sticky-sidebar {
    position: sticky;
    top: 20px;
    z-index: 10;
    padding-right: 10px;
}

.nav-module-groups {
    max-height: calc(100vh - 100px);
    overflow-x: auto;
    padding-right: 10px 
}


/* Группа модуля */
.nav-module-group {
    margin-bottom: 1.5rem;
}

/* Заголовок модуля (Не кликабельный) */
.nav-module-title {
    font-family: 'Comfortaa', sans-serif;
    color: #95a5a6;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    padding-left: 12px;
}

/* Ссылка на ДРУГОЕ упражнение */
.nav-exercise-link {
    display: block;
    padding: 10px 15px;
    margin-bottom: 4px;
    border-radius: 12px;
    color: #2D3436;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.nav-exercise-link:hover {
    background: #fff;
    color: var(--primary-color);
    border-color: #E1E8EF;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

/* Блок ТЕКУЩЕГО упражнения (Активный контейнер) */
.nav-exercise-item.active {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border: 2px solid var(--primary-color);
    overflow: hidden;
    margin-bottom: 10px;
}

/* Заголовок текущего */
.nav-exercise-item.active .current-title {
    display: block;
    padding: 12px 15px;
    font-weight: 800;
    color: var(--primary-color);
    background: #F0F7FF;
    border-bottom: 1px solid #E1E8EF;
}

/* Список задач (Якоря) */
.nav-tasks-list {
    padding: 8px 0;
    background: #fff;
}

.nav-task-anchor {
    display: flex;
    align-items: center;
    padding: 8px 15px 8px 25px; /* Отступ слева для иерархии */
    font-size: 0.9rem;
    color: #636e72;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: color 0.2s;
}

/* Линия ветки */
.nav-task-anchor::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 0; bottom: 0;
    width: 2px;
    background: #E1E8EF;
}

/* Точка на ветке */
.nav-task-anchor::after {
    content: "";
    position: absolute;
    left: 9px;
    top: 50%;
    width: 8px; height: 8px;
    background: #fff;
    border: 2px solid #b2bec3;
    border-radius: 50%;
    transform: translateY(-50%);
}

.nav-task-anchor:hover { color: var(--primary-color); background: #f9f9f9; }
.nav-task-anchor:hover::after { border-color: var(--primary-color); background: var(--primary-color); }


/* --- 2. КАРТОЧКА ЗАДАЧИ (TASK CARD) --- */
.task-card {
    background: #fff;
    border: 3px solid #E1E8EF;
    border-radius: 1.5rem;
    margin-bottom: 3rem; /* Отступ между задачами */
    overflow: hidden;
    scroll-margin-top: 100px; /* Чтобы при клике на якорь шапка не перекрывала */
}

.task-header {
    background: #F8FBFF;
    padding: 1.5rem;
    border-bottom: 3px solid #E1E8EF;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.task-id {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: #999;
    background: #fff;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid #E1E8EF;
}

.task-desc {
    padding: 1.5rem;
    color: #333;
    font-size: 1.1rem;
    border-bottom: 1px solid #f1f1f1;
    line-height: 1.5;
}
 
.task-desc  p:last-of-type{
   margin-bottom: 0
}

.task-main {
    padding: 1.5rem;
    background: #fff;
    position: relative;
}
.task-main > *:last-child {
  margin-bottom: 0 !important;
}
/* --- 3. СКРЫТЫЕ БЛОКИ (RESULT, HELP, LOG) --- */
/* Общий контейнер для скрытых блоков */
.task-section-wrapper {
    border-top: 3px solid #E1E8EF;
    background: #fff;
}

/* Заголовок скрытого блока */
.task-section-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 1px;
    padding: 1rem  1.5rem  10px  1.5rem ;
 
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Контент скрытого блока */
.task-section-content {
    padding: 5px 20px 20px 20px;
}

/* Стиль Результата */
.task-result .task-section-label { color: var(--secondary-color); }
.task-result .content-box {
    background: #F0FFF4;
    border: 2px solid #C3E6CB;
    color: #2D3436;
    padding: 15px;
    border-radius: 12px;
}

.content-box > *:last-child {
  margin-bottom: 0 !important;
}

/* Стиль Подсказки */
.task-help .task-section-label { color: var(--accent-color); }
.task-help .content-box {
    background: #FFFBE6;
    border: 2px solid #FFE58F;
    color: #555;
    padding: 15px;
    border-radius: 12px;
}

/* Стиль Лога */
.task-log .task-section-label { color: #636e72; }
.task-log .content-box {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    padding: 10px;
    border-radius: 12px;
    max-height: 120px;
    overflow-y: auto;
    font-size: 1rem;
}

/* Панель кнопок */
.task-btns {
    background: #F8FBFF;
    padding: 20px;
    border-top: 3px solid #E1E8EF;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}








/* 1. Скрытые блоки по умолчанию */
/* Мы используем свой класс .hidden-section вместо .collapse, 
   чтобы не конфликтовать с остатками CSS бутстрапа */
.hidden-section {
    display: none;
}

/* 2. Поиск */
#headerSearchRow {
    display: none; /* Скрыт изначально */
}




/* 4. Сайдбар (Offcanvas) на jQuery */
.offcanvas-jquery {
    display: none;
    position: fixed;
    top: 0; bottom: 0; left: -320px;
    width: 350px;
    background: #fff;
    z-index: 1050;
    padding: 20px;
    box-shadow: 10px 0 30px rgba(0,0,0,0.1);
    overflow-y: auto;
}

/* Фон затемнения */
.jquery-backdrop {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1040;
    backdrop-filter: blur(2px);
}



/* 4. КНОПКА ПОИСКА ВСЕГДА КРУГЛАЯ */
.btn-search-trigger {
    width: 45px; 
    height: 45px;
    min-width: 45px; /* Чтобы не сжималась */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
}



.offcanvas-jquery .nav-module-groups {
  max-height: 100%;
  overflow-x: hidden;
  padding-right: 0;
}



 

/* Таймер обратного отсчёта в попапе */
.preview-timer {
    position: absolute;
    top: 50%; 
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 8rem;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.05);
    pointer-events: none;
    z-index: 10;
    line-height: 1;
}

.preview-content {
    position: relative;
   
    padding-top: 20px;
}

/* Убираем интерактивность в превью */
.preview-content .bfp-items-result {
    pointer-events: none;
}

.preview-content .bfp-item {
    cursor: default !important;
}




 
 
.fcfb-popup .fcfb_pp_close.fcfb-icon-close-circle {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 29px;
  min-width: 29px;
  height: 29px;
  background-size: 20px !important;
}
 
 
 button.trainer-btn-blue, button.trainer-btn-white, button.trainer-btn-green, button.trainer-btn-red, button.trainer-btn-turquoise  {
  padding: 8px 24px;
  font-weight: 600;
  border: none;
  border-radius: 28px;
  cursor: pointer; 
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  min-width: 140px;
}

.trainer-btn-turquoise:active:not(:disabled), 
.trainer-btn-blue:active:not(:disabled), 
.trainer-btn-white:active:not(:disabled), 
.trainer-btn-green:active:not(:disabled), 
.trainer-btn-red:active:not(:disabled) {
  transform: translateY(1px);
   
}

.trainer-btn-turquoise:hover:not(:disabled)::after, 
.trainer-btn-blue:hover:not(:disabled)::after, 
.trainer-btn-white:hover:not(:disabled)::after, 
.trainer-btn-green:hover:not(:disabled)::after, 
.trainer-btn-red:hover:not(:disabled)::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 20px;
  height: 200%;
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(30deg);
  animation: shine 0.6s ease;
}

@keyframes shine {
  to { left: 120%; }
}

/* Синяя */
button.trainer-btn-blue {
  background: #0d6efd;
  color: white; 
    box-shadow: inset 0 -5px 0 rgba(0,0,0,0.2);
}

button.trainer-btn-blue:hover:not(:disabled) {
  background: #3a85f0;
}

/* Белая */
button.trainer-btn-white {
  background: white;
  color: #333;
  border: 1px solid #e1e0e0; 
    box-shadow: inset 0 -5px 0 rgba(0,0,0,0.2);
}

button.trainer-btn-white:hover:not(:disabled) {
  background: #f5f5f5;
}

/* Зеленая */
button.trainer-btn-green {
  background: #198754;
  color: white;
      box-shadow: inset 0 -5px 0 rgba(0,0,0,0.2);
}

button.trainer-btn-green:hover:not(:disabled) {
  background: #157347;
}

/* Красная */ 
button.trainer-btn-red {
  background: #f35c6b;
  color: white;
     box-shadow: inset 0 -5px 0 rgba(0,0,0,0.2);
}

button.trainer-btn-red:hover:not(:disabled) {
  background: #c82333;
}

/* Берюзовы */ 
button.trainer-btn-turquoise {
  background:  #4acfc1;
  color: white;
     box-shadow: inset 0 -5px 0 rgba(0,0,0,0.2);
}

button.trainer-btn-turquoise:hover:not(:disabled) {
  background:  turquoise;
}

 


/* Disabled */
.trainer-btn-blue:disabled, .trainer-btn-white:disabled, .trainer-btn-turquoise:disabled,
.trainer-btn-green:disabled, .trainer-btn-red:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}


#popup_trainer_preview .fcfb-popup-scrollable {
 
  max-width: 1000px;
  
}



.clamp_2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.clamp_3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.clamp_4 {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.clamp_5 {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.clamp_6 {
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.clamp_7 {
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.clamp_8 {
  display: -webkit-box;
  -webkit-line-clamp: 8;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.clamp_full {
  -webkit-line-clamp: 10000 !important;
}



.clamp-link:hover {
	opacity: .7;
    cursor: pointer;
    display: table
}


/* #wpadminbar {
 
  position: static;
}



 */










 


.fcfb-type-step {
  padding: 0;
}

.fcfb-type-step .fcfb-type-checkboxlist, 
.fcfb-type-step .fcfb-type-radio {
  min-height: 220px;
    margin-bottom: -40px
}

.test-results-container {
background: #fff;
  border: 3px solid #E1E8EF;
  border-radius: 1.5rem;
  margin-bottom: 3rem;
  overflow: hidden;
    padding: 1.5rem;
}

.test-summary-section p,
.test-category-section p {
  margin-bottom: 10px;
}

.test-progress-bar-container {
  background-color: #f0f0f0;
  border-radius: 5px;
  height: 10px;
  width: 100%;
  margin-top: 5px;
  margin-bottom: 10px;
}

.test-progress-bar {
  background-color: #4CAF50;
  height: 100%;
  border-radius: 5px;
  text-align: center;
  line-height: 20px;
  color: white;
  width: 0%;
  transition: width 0.3s ease;
}

.test-question-block {
  padding: 15px;
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #ddd;
}

.test-correct-question {
  background-color: #e8f7ec;
  border-color: #b3e0b8;
}

.test-incorrect-question {
  background-color: #fceeee;
  border-color: #f4b9b9;
}

.test-partial-question {
  background-color: #fff8e5;
  border-color: #ffe082;
}

.test-question-text {
  font-weight: bold;
  margin-bottom: 5px;
}

.test-answer-text {
  margin-bottom: 5px;
}

.test-explanation-text {
  font-style: italic;
  color: #3c3c3c;
  padding-bottom: 10px;
}

.test-explanation-text:last-of-type {
  padding-bottom: 0;
}

.test-result-text {
  font-weight: bold;
}

.test-correct {
  color: green;
}

.test-incorrect {
  color: red;
}

.test-partial {
  color: orange;
}

.fcfb-form-test {
 
  line-height: 1.4;
  font-size: 16px;
  border-radius: 22px;
  background: #fff;
  border: 3px solid #E1E8EF;
  border-radius: 1.5rem;
  overflow: hidden;
   
}

.fcfb-form-test .fcfb-container{
 
 
  font-size: 16px;
}


.fcfb-form-test .fcfb-header {
    border: none; 
    border-bottom: 3px solid #E1E8EF;
    padding: 1.5rem;
    background: #F8FBFF;
}


.fcfb-form-test .fcfb-in {
 padding: 1.5rem;
}


.fcfb-form-test .fcfb-fields {
    border: none!important;
}

.fcfb--steps .fcfb-radio,
.fcfb--steps .fcfb-checkbox {
  padding-right: 0;
}

.fcfb--steps .fcfb-radio label,
.fcfb--steps .fcfb-checkbox label {
  border: 1px solid #ddd;
  padding: 10px;
  width: 100%;
}

.fcfb--steps .fcfb-radio label:hover,
.fcfb--steps .fcfb-checkbox label:hover {
  background: #f5f4f4;
}

.fcfb-next-step {
  background-color: #62a9f4 !important;
}

.fcfb--steps .fcfb-checkbox-field,
.fcfb--steps .fcfb-radio-field {
  min-height: 225px;
}

.fcfb--steps .fcfb-v1.fcfb-required .fcfb-label label::before {
  display: none;
}

.fcfb--steps .fcfb-v1.fcfb-required .fcfb-label label {
  font-size: 18px;
  padding-bottom: 8px;
  line-height: 1.3;
}

.test-last-tests {
  margin-top: 30px;
}

.test-last-tests-title {
  font-size: 25px;
  margin-bottom: 10px;
}













/* ═══ КАЛЬКУЛЯТОРЫ: общие стили ═══ */

.calculators {
  --c-radius: 12px;
  --c-shadow: 0 2px 8px rgba(0,0,0,0.08);
  --c-primary: #4D96FF; 
  --c-primary-dark: #3A7BE0;
  --c-secondary: #A8C8FF;
  --c-success: #2ECC71;
  --c-warning: #F39C12;
  --c-danger: #E74C3C;
  --c-bg: #FFFFFF;
  --c-bg2: #F4F7FE;
  --c-bg3: #FFF9E6;
  --c-text: #2D3436;
  --c-muted: #6C757D;
  --c-border: #E0E0E0;
  max-width: 1200px;
  margin: 0 auto;
  font-family: 'Nunito', sans-serif;
  color: var(--c-text);
}
.calc-b {
  background: var(--c-bg);
  border-radius: var(--c-radius);
  box-shadow: var(--c-shadow);
  padding: 16px 20px;
  margin-bottom: 16px;
}


a.calc-b {
display: table;
    width: 100%;
    text-decoration: none;
    border-left: 3px solid var(--c-primary);
        transition: padding-left 0.3s ease-in-out; 
 font-size: 18px

}


a.calc-b:hover {
padding-left: 30px;
      

}


.calc-t {
  font-family: 'Comfortaa', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--c-text);
  margin: 0 0 14px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.calc-t i {
  color: var(--c-primary);
  font-size: 1.2rem;
}
.calc-lb {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--c-text);
  margin-bottom: 4px;
}
.calc-in,
.calc-w .form-control {
  border-radius: 8px;
  border: 2px solid var(--c-border);
  padding: 8px 12px;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.calc-in:focus,
.calc-w .form-control:focus {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(77,150,255,0.15);
  outline: none;
}
.calc-btn {
  background: var(--c-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 20px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.calc-btn:hover {
  background: var(--c-primary-dark);
  color: #fff;
}
.calc-btn:active {
  transform: scale(0.97);
}
.calc-r {
  background: var(--c-bg2);
  border-radius: 8px;
  padding: 12px 16px;
  min-height: 48px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.calc-rl {
  font-size: 0.9rem;
  color: var(--c-muted);
}
.calc-rv {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--c-primary);
}
.calc-rd {
  font-size: 0.85rem;
  color: var(--c-muted);
  width: 100%;
}
.calc-r-block {
  background: var(--c-bg2);
  border-radius: 8px;
  padding: 16px;
  margin-top: 12px;
}
.calc-st {
  font-size: 1rem;
  margin-top: 8px;
  margin-bottom: 0;
}
.calc-st th {
  background: var(--c-bg2);
  font-weight: 700;
  white-space: nowrap;
}
.calc-st tr:last-child td {
  font-weight: 700;
  color: var(--c-primary);
}
.calc-err {
  color: var(--c-danger);
  font-size: 0.85rem;
  margin-top: 4px;
}
.calc-vis {
  position: relative;
}
.calc-vis-note {
  font-size: 0.8rem;
  color: var(--c-muted);
  text-align: center;
  margin-top: 6px;
}
.calc-rev-content {
  /*! font-size: 0.95rem; */
  line-height: 1.7;
}
.calc-desc h4 {
  font-family: 'Comfortaa', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--c-primary);
  margin: 16px 0 8px 0;
}
.calc-desc h4:first-child { margin-top: 0; }
.calc-desc p {
  line-height: 1.6;
  margin-bottom: 8px; 
}
.calc-f {
  background: var(--c-bg2);
  border-left: 3px solid var(--c-primary);
  padding: 10px 14px;
  border-radius: 0 8px 8px 0;
  margin: 10px 0;
  font-size: 1rem;
}
.calc-tip {
  background: var(--c-bg3);
  border-radius: 8px;
  padding: 10px 14px;
  margin: 10px 0;
  font-size: 0.9rem;
}
.calc-tip::before { content: '💡 '; }
.calc-steps-list {
  list-style: none;
  padding: 0;
  margin: 10px 0;
  counter-reset: step;
}
.calc-steps-list li {
  counter-increment: step;
  padding: 8px 12px 8px 44px;
  position: relative;
  margin-bottom: 6px;
  background: var(--c-bg2);
  border-radius: 8px;
  line-height: 1.5;
  font-size: 0.9rem;
}
.calc-steps-list li::before {
  content: counter(step);
  position: absolute;
  left: 12px;
  top: 8px;
  width: 24px;
  height: 24px;
  background: var(--c-primary);
  color: #fff;
  border-radius: 50%;
  text-align: center;
  line-height: 24px; 
  font-weight: 700;
  font-size: 0.8rem;
}
.calc-test {
  background: #FFF3CD;
  border-radius: 8px;
  padding: 14px;
  margin-top: 24px;
  font-family: monospace;
  font-size: 13px;
}
.calc-test-out {
  background: #fff;
  padding: 12px;
  border-radius: 6px;
  white-space: pre-wrap;
  margin-top: 8px;
  max-height: 400px;
  overflow-y: auto;
}
@media (max-width: 768px) {
  .calc-b { padding: 12px 14px; }
  .calc-btn { width: 100%; }
  .calc-rv { font-size: 1.2rem; }
  .calc-r { flex-direction: column; align-items: flex-start; }
}