body {line-height: 1.6; font-size: 1.1875rem; }
.text-shadow {
    text-shadow: 1px 1px 2px #000000;
}
header.bg-header {
    background-color: #3A73AB !important;
}
.bg-otazky {
    background-color: #CFDFEF !important;
    border-radius: 5px !important;
}
header h1, header h2 {
    text-shadow: 1px 1px 2px #000000;
}
nav ul li a {color: #0645ad !important;}
.breadcrumb-item a {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem; /* чуть больше отступ между иконкой и текстом */
}
.breadcrumb-item a img {
    height: 25px;
    width: 25px;
    object-fit: contain;
}
.breadcrumb {
    --bs-breadcrumb-divider: '➝';
    display: flex;
    flex-wrap: wrap; /* ✅ разрешаем перенос всей цепочки */
    align-items: center;
    gap: 0.25rem;
}
ol li::marker {
    font-weight: 700;
}
.justify {
    text-align: left;
}
@media (max-width: 768px) {
    .breadcrumb {
        font-size: 0.95rem; /* уменьшает весь текст внутри хлебных крошек */
        line-height: 1.4;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    .breadcrumb-item a {
        gap: 0.2rem;
    }
    .breadcrumb-item a img {
        height: 20px;
        width: 20px;
    }
}
@media (min-width: 576px) {
    .justify {
        text-align: justify;
    }
}

/* Контейнер для всей строки */
.custom-radio label {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    padding-left: 35px; /* Место под наш кастомный кружок */
    margin-bottom: 10px;
}

/* Прячем стандартную точку, но оставляем ее функциональной */
.custom-radio input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

/* Рисуем внешний круг (вместо системного) */
.custom-radio span::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;  /* Теперь размер какой захотите */
    height: 22px;
    border: 2px solid #6c757d;
    border-radius: 50%;
    background: #fff;
}

/* Рисуем точку внутри при выборе */
.custom-radio input[type="radio"]:checked + span::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #6c757d;
}

/* Общий стиль для всех иконок языков */
.flag-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px !important;  /* Фиксируем ширину */
    height: 24px !important; /* Фиксируем высоту */
    object-fit: cover;       /* Чтобы флаги не искажались */
    border-radius: 0 !important; /* Убираем скругления */
}

/* Специфический стиль для текстовой заглушки */
.lang-ru {
    background-color: #495057; /* Темно-серый, нейтральный */
    color: #ffffff;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    border: 1px solid #343a40;
    vertical-align: middle;
}

/* Убираем тень при наведении, если нужно */
.flag-icon:hover {
    filter: brightness(1.1);
    transition: 0.2s;
}
.label-circle {width: 60px !important;height: 60px !important;padding: 0 !important;display: flex !important;justify-content: center !important;align-items: center !important;border-radius: 50% !important;border: 2px solid #6c757d !important;}
.label-circle:hover {color: white !important;background-color: #A3A9AF !important;text-shadow: 1px 1px 1px #000000 !important;}
.label-nz {width: 105px !important;height: 60px !important;padding: 0 !important;display: flex !important;justify-content: center !important;align-items: center !important;border: 2px solid #6c757d !important;}
.label-nz:hover {color: white !important;background-color: #A3A9AF !important;text-shadow: 1px 1px 1px #000000 !important;}
.label-nz-long {width: 150px !important;height: 60px !important;padding: 0 !important;display: flex !important;justify-content: center !important;align-items: center !important;border: 2px solid #6c757d !important;}
.label-nz-long:hover {color: white !important;background-color: #A3A9AF !important;text-shadow: 1px 1px 1px #000000 !important;}
.label-circle-middle {width: 30px !important;height: 30px !important;padding: 0 !important;display: flex !important;justify-content: center !important;align-items: center !important;border-radius: 50% !important;border: 2px solid #6c757d !important;font-weight:600!important}
.label-circle-middle:hover {color: white !important;background-color: #A3A9AF !important;text-shadow: 1px 1px 1px #000000 !important;}
/* 1. Скрываем стандартную радио-кнопку */
.custom-radio input[type="radio"] {
    display: none; /* или opacity: 0; position: absolute; */
}
/* 2. Стилизация лейбла как кнопки/круга */
.custom-radio label {
    position: relative;
    padding-left: 30px; /* место для кружка */
    cursor: pointer;
    user-select: none;
}
/* Круг для радио */
.custom-radio label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid #6c757d; /* рамка */
    border-radius: 50%; /* круг */
    background: #fff;
}
/* Индикатор выбранного радио */
.custom-radio input[type="radio"]:checked + label::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #6c757d; /* заливка для выбранного */
}
nav ul.list-group-flush > li {
    border-bottom: 1px solid #bbb;
    padding: 0.75rem 1rem;
    transition: background-color 0.2s ease;
}
nav ul.list-group-flush > li:last-child {
    border-bottom: none; /* убираем границу у последнего пункта */
}
nav ul.list-group-flush > li:hover {
    /* Меняем только фон для всего пункта списка */
    background-color: #f0f8ff;
    /* УДАЛЕНО: color: #003366; -- это не сработает для ссылки */
}
/* 💡 НОВЫЙ СЕЛЕКТОР: Меняем цвет ссылки, когда наводим на РОДИТЕЛЬСКИЙ <li> */
nav ul.list-group-flush > li:hover a {
    color: #003366; /* Добавляем желаемый более темный цвет для текста */
    text-decoration: underline; /* Добавляем подчеркивание */
}
nav ul.list-group-flush > li a {
    text-decoration: none;
    font-weight: 500;
    color: #0056b3;
    display: block; /* Важно: заставляет ссылку занимать всю ширину <li> */
    transition: color 0.2s ease;
}
hr.custom-separator {
    border: none;
    border-bottom: 0.249rem solid #FFA67F;
    opacity: 0.8;
}
.unanswered {
    border: 2px solid #dc3545;
    background-color: #fff5f5;
    border-radius: 6px;
    padding: 10px;
}
.fancy-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 25px 0 15px;
    color: #3A73AB;
}
.fancy-line::before,
.fancy-line::after {
    content: "";
    height: 1px;
    flex: 1;
    max-width: 560px;
    /* Затухание только на внешних концах */
    background: linear-gradient(
            to right,
            rgba(58,115,171,0) 0%,
            rgba(58,115,171,0) 10%,
            rgba(58,115,171,1) 30%,
            rgba(58,115,171,1) 100%
    );
}
.fancy-line::after {
    background: linear-gradient(
            to left,
            rgba(58,115,171,0) 0%,
            rgba(58,115,171,0) 10%,
            rgba(58,115,171,1) 30%,
            rgba(58,115,171,1) 100%
    );
}
.fancy-line span {
    letter-spacing: 2px;
    padding: 0 2px;
}
.lang-ru {
    display: inline-block;
    width: 34px;
    height: 25px;
    line-height: 24px;
    background-color: #6c757d; /* темнее = визуально плотнее */
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    border-radius: 2px;
    border: 1px solid #495057;
    text-transform: uppercase;
    text-align: center;
    text-shadow: 1px 1px 1px #000000;
}
.lang-ru:hover {
    background-color: #5a6268;
}
