@import url('https://fonts.googleapis.com/css2?family=Tenor+Sans&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
    font-family: 'Tenor Sans', sans-serif;
}

html, body {
    width: 100%;
    height: 100%;
}

a {
    text-decoration: none !important;
}

ul,
ol,
li {
    list-style: none;
}

body {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    font-family: "Arial", sans-serif;
    min-height: 100%;
    background-color: #FAFAFB;
}

/*Header*/

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 12;
    background-color: #FAFAFB;
}

.header__container {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    padding: 0 135px;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    position: relative;
}

.header__logo {
    font-size: 20px;
    position: relative;
    z-index: 15;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: black;
}

.header__logo:hover {
    color: #333;
}

.menu__body--center {
    flex-grow: 1;
    text-align: center;
}

.menu__list {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu__list li {
    margin: 0 20px;
}

.menu__link {
    text-decoration: none;
    color: inherit;
    position: relative; /* Для управления линией подчеркивания */
    transition: color 0.3s ease; /* Плавный переход для цвета */
}

.menu__link:hover {
    color: #333;
}

.header__menu {
    display: flex;
    align-items: center;
    gap: 48px;
    z-index: 15;
}

.personal_icon {
    cursor: pointer;
    display: flex;
    align-items: center;
}

.personal_icon img {
    width: 24px;
    height: 24px;
}

/*Персональное меню*/
.personal__menu {
    position: fixed;
    top: 48px;
    right: -250px;
    width: 250px;
    height: calc(100% - 48px);
    background-color: #FAFAFB;
    z-index: 10;
    transition: right 0.3s ease;
    padding: 20px;
    overflow-y: auto;
}

.personal__menu.active {
    right: 0;
}

.personal__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.personal__list li {
    margin: 20px 0;
}

.personal__link {
    text-decoration: none;
    color: #000;
    transition: color 0.3s ease;
}

.personal__link:hover {
    color: #333;
}

/* Стили для бургер-меню */
.menu__icon {
    width: 20px;
    height: 13px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu__icon span,
.menu__icon::before,
.menu__icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #000;
    transition: all 0.3s ease;
}

.menu__icon span {
    top: 50%;
    transform: translateY(-50%);
}

.menu__icon::before {
    top: 0;
}

.menu__icon::after {
    bottom: 0;
}

/* Стили для активного состояния */
.menu__icon.active span {
    opacity: 0;
}

.menu__icon.active::before {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.menu__icon.active::after {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* Стили для бокового меню */
.sidebar__menu {
    position: fixed;
    top: 48px;
    right: -250px;
    width: 250px;
    height: calc(100% - 48px);
    background-color: #FAFAFB;
    z-index: 10;
    transition: right 0.3s ease;
    padding: 20px;
    overflow-y: auto;
}

.sidebar__menu.active {
    right: 0; /* Выезжает при активации */
}

.sidebar__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar__list li {
    margin: 20px 0;
}

.sidebar__link {
    text-decoration: none;
    color: #000;
    transition: color 0.3s ease;
}

.sidebar__link:hover {
    color: #333;
}

@media (min-width: 1025px) {
    /* Применяем только для десктопов */
    @media (min-width: 1025px) {
        /* Применяем только для десктопов */
        .menu__link:hover {
            color: #333; /* Цвет текста при наведении */
        }

        .menu__link:hover::after {
            content: '';
            position: absolute;
            bottom: -4px; /* Расположение линии под текстом */
            left: 0;
            width: 100%; /* Ширина линии равна ширине текста */
            height: 4px; /* Толщина линии */
            background-color: #C3C4C5; /* Более светлый цвет (серый из палитры сайта) */
            border-radius: 4px; /* Закругленные края */
        }
    }
}

/*Content*/
/*Начальная страница*/
main {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1 1 auto;
    width: 100%;
    background-color: #FAFAFB;
}

.index_body {
    height: 100%;
    width: 100%;
    background-color: #697077;

}

.index_body h2 {
    color: #FAFAFB;
}

.index_logo {
    text-transform: uppercase;
    color: #FAFAFB;
    font-size: 48px;
    font-weight: normal;
    margin-bottom: 5rem;
}

.container {
    height: 100%;
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

.index_button {
    background-color: #FAFAFB;
    border: 2px solid #F1F6F5;
    padding: 0.8em 1em;
    margin: 2rem;
    user-select: none;
    text-transform: uppercase;
    letter-spacing: 2.2px;
    cursor: pointer;
    border-radius: 10px;
    transform: translateY(0);
    transition: all 0.5s linear;
}

.index_button:hover {
    box-shadow: inset 8rem 0 0 0 #697077, inset -8rem 0 0 0 #697077; /* Изменяем цвет тени на #697077 */
    background-color: #697077; /* Изменяем цвет фона на #697077 */
    transform: translateY(-0.5rem); /* Эффект поднятия кнопки */
    border-color: black; /* Цвет границы */
}

/*Основная страница*/
.container_home {
    padding-left: 50px;
    padding-right: 50px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 70px;
    max-width: 1350px;
    width: 100%;
    box-sizing: border-box;
}

/* Стили для слайдера */
.carousel {
    width: 100%;
    height: 447px;
    margin: 50px auto;
    border-radius: 24px;
    overflow: hidden;
    position: relative;

}

.carousel-inner {
    height: 100%;
}

.carousel-item {
    height: 100%;
    background: linear-gradient(180deg, rgba(195, 196, 197, 0.25) 0%, rgba(94, 94, 95, 0.25) 100%);
}


/* Контейнер для контента слайда */
.slider_content {
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: center;
    gap: 30px;

}

/* Текстовая часть слайдера */
.slider_text {
    width: 490px;
    height: 215px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    color: #263238;
}

/* Заголовок */
.slider_title {
    font-weight: 400;
    font-size: 40px;
    line-height: 46px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

/* Текст */
.slider_text span {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 14px;
}

.hidden-span {
    visibility: hidden;
}

/* Кнопка */
.slider_button {
    width: 320px;
    height: 51px;
    border-radius: 12px;
    padding: 18px 37px;
    gap: 10px;
    border: 2px solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    cursor: pointer;
    text-transform: uppercase;
    margin-top: 30px;
    color: #263238;
    z-index: 10;
    position: relative;
    transition: background-color 0.3s ease;
}

.slider_button:hover {
    background: linear-gradient(180deg, rgba(150, 151, 152, 0.4) 0%, rgba(50, 50, 51, 0.4) 100%);
    color: #263238;

}

/* Изображение в слайдере */
.slider_image {
    width: 560px;
    height: 347px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.slider_image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.carousel-control-prev,
.carousel-control-next {
    width: 30px;
    height: 30px;
    opacity: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    z-index: 10;
    position: absolute;
    top: 50% !important;
}

.carousel-control-prev {
    left: -45px !important;
    right: auto;
}

.carousel-control-next {
    right: -45px !important;
    left: auto;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 30px;
    height: 30px;
    background-color: #808080;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    background-size: 100% 50% !important;
}

.carousel-control-prev:focus,
.carousel-control-next:focus {
    opacity: 0.5 !important;
}

@media (hover: none) {
    .carousel-control-prev:hover,
    .carousel-control-next:hover {
        opacity: 0.5 !important;
    }
}

.carousel-control-prev:active,
.carousel-control-next:active {
    opacity: 0.9 !important;
}





/*BLOCK-2*/
.block-2-img-wrapper {
    background: linear-gradient(180deg, rgba(195, 196, 197, 0.25) 0%, rgba(94, 94, 95, 0.25) 100%);
    width: 455px;
    height: 400px;
    margin-left: 0;
    margin-right: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    box-shadow: 0 4px 4px 0 #26323826;

}

.block-2-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.block-2-text-wrapper {
    width: 527px;
    height: 361px;
    margin-left: auto;
    margin-right: 0;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.block-2-text-wrapper h2 {
    font-weight: 400;
    font-size: 24px;
    line-height: 40px;
    text-transform: uppercase;
    color: #263238;
    margin-bottom: 14px;
    margin-top: 8px;
}

.block-2-text-wrapper span {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 14px;
    margin-top: 10px;
}

.block-2-text-wrapper button {
    align-self: flex-start;
}

.block-2-text {
    font-weight: 500;
    font-size: 20px !important;
    line-height: 30px !important;
    margin-top: 10px;

}

.block-2-text-wrapper > .slider_button {
    margin-top: 40px;
}

/*Фильтры и поиск*/

/* Стили для ряда с поиском */
.search-section {
    display: flex;
    justify-content: space-between; /* Заголовок слева, поиск справа */
    align-items: center; /* Вертикальное центрирование */
    width: 100%;
    margin-bottom: 50px;
    padding-top: 70px; /* Добавляем отступ сверху 50px */
}

.search-section h3 {
    text-transform: uppercase;
    font-size: 25px;
}


/* Заголовок в своей колонке */
.search-section .col-auto {
    padding-left: 0;
}

/* Контейнер поиска в своей колонке */
.search-section .col {
    padding-right: 0; /* Убираем лишний отступ справа */
}

/* Контейнер поиска */
.search {
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Поиск прижимается к правому краю */
    position: relative;

}

/* Стили для формы поиска */
.search_form {
    position: relative; /* Относительное позиционирование для иконок */
    display: flex;
    align-items: center;
}

.search_input.expanded-filter {
    border-radius: 8px 8px 0 0;
}

/* Контейнер фильтров */
.filter-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 400px; /* Такая же ширина как у input */
    max-height: 400px; /* Максимальная высота с прокруткой */
    overflow-y: auto;
    background: #FAFAFB;
    border: 1px solid #263238;
    border-top: none;
    border-radius: 0 0 8px 8px;
    z-index: 1000;
    display: none; /* Скрыт по умолчанию */
    box-shadow: 0 4px 4px 0 #26323826;
    padding: 15px;
}

/* Показываем фильтры при активации */
.filter-dropdown.active {
    display: block;
}

/* Стили для формы внутри выпадающего контейнера */
.filter-form {
    width: 100%;
}

/* Заголовки внутри фильтра */
.categories-section h3,
.filter-section h3 {
    font-size: 16px;
    text-transform: uppercase;
    color: #263238;
    margin-bottom: 10px;
}

/* Сетка категорий */
.categories-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Стили для переключателей */
.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-check-input {
    margin: 0;
}

.form-check-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: #263238;
}

/* Стили для select */
.filter-section select {
    width: 100%;
    padding: 8px;
    border: 1px solid #263238;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: #263238;
    background: #FAFAFB;
}

/* Кастомизация скроллбара */
.filter-dropdown::-webkit-scrollbar {
    width: 8px;
}

.filter-dropdown::-webkit-scrollbar-track {
    background: #FAFAFB;
}

.filter-dropdown::-webkit-scrollbar-thumb {
    background: #263238;
    border-radius: 4px;
}

.filter-dropdown::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.form-check-input:checked {
    background-color: #263238 !important;
    border-color: #263238 !important;
}

/* Стили для поля ввода */
.search_input {
    width: 400px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #263238;
    padding: 8px 60px 8px 12px; /* Отступ справа увеличен для иконок */
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #263238;
    box-sizing: border-box;
}

/* Placeholder */
.search_input::placeholder {
    color: #263238;
    opacity: 0.7;
}

.search_input:focus {
    outline: none;
    box-shadow: none;
    border-color: #263238; /* Сохраняем темно-серую границу */
}

/* Стили для иконок */
.search-icon, .filter-icon {
    position: absolute; /* Абсолютное позиционирование внутри формы */
    height: 16px; /* Предполагаемый размер иконок, настройте под свои */
    width: 16px;
    top: 50%; /* Центрируем по вертикали */
    transform: translateY(-50%); /* Точная центровка */
}

/* Позиционирование конкретных иконок */
.search-icon {
    right: 30px; /* Отступ от правого края для первой иконки */
    cursor: pointer;
}

.filter-icon {
    right: 10px; /* Отступ от правого края для второй иконки */
    cursor: pointer;
}

.search_input.expanded {
    border-radius: 8px 8px 0 0; /* Закругляем только верхние углы */
}

/* Контейнер результатов поиска */
#search__response {
    position: absolute;
    top: 100%;
    right: 0;
    width: 400px;
    max-height: 300px;
    overflow-y: auto;
    background: #FAFAFB;
    border: 1px solid #263238;
    border-top: none;
    border-radius: 0 0 8px 8px;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 4px 0 #26323826;
}

#search__response.with-results {
    display: block;
}

/* Стили для ссылок в результатах поиска */
.search-test-link {
    display: block; /* Каждая ссылка в своей строке */
    padding: 10px 12px;
    color: #263238;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    border-bottom: 1px solid rgba(38, 50, 56, 0.1);
    transition: background 0.3s ease;
}

.search-test-link:last-child {
    border-bottom: none; /* Убираем границу у последнего элемента */
}

.search-test-link:hover {
    background: rgba(150, 151, 152, 0.2);
    color: #263238;
}

/* Скрываем результаты когда ничего не найдено */
#search__response:empty,
#search__response:contains("Ничего не найдено") {
    display: none;
}

.search-suggestion {
    display: block;
    padding: 10px 12px;
    color: #263238;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    border-bottom: 1px solid rgba(38, 50, 56, 0.1);
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-suggestion:last-child {
    border-bottom: none;
}

.search-suggestion:hover {
    background: rgba(150, 151, 152, 0.2);
}

/* Кастомизация скроллбара */
#search__response::-webkit-scrollbar {
    width: 8px;
}

#search__response::-webkit-scrollbar-track {
    background: #FAFAFB;
}

#search__response::-webkit-scrollbar-thumb {
    background: #263238;
    border-radius: 4px;
}

#search__response::-webkit-scrollbar-thumb:hover {
    background: #555;
}


/*Стили карточек с тестами*/

.testCard {
    background: linear-gradient(180deg, rgba(195, 196, 197, 0.25) 0%, rgba(94, 94, 95, 0.25) 100%);
    border-radius: 20px;
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    box-shadow: 0 4px 4px 0 #26323826;
    min-width: 251px;
    transition: transform 0.3s ease;
}

.testCard:hover {
    transform: scale(1.05);
}

/* Контейнер для изображения */
.icon-test-img-wrapper {
    width: 100%;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Стили для изображения */
.icon-test-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Тело карточки */
.testCard-body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Заголовок карточки */
.testCard-title {
    font-size: 14px;
    color: #263238;
    text-transform: uppercase;
}

/* Текст карточки */
.testCard-text {
    margin-top: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px !important;
    flex-grow: 1;
    color: #263238;
}

.go-test-button {
    width: 211px;
    height: 50px;
    margin: 0 auto;
    border-radius: 12px;
    padding: 18px 37px;
    gap: 10px;
    border-width: 1px;
    border-style: solid;
    border-color: #263238;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    color: #263238;
    background: transparent;
    text-decoration: none;
    transition: background 0.3s ease;
    cursor: pointer;
}

.go-test-button:hover {
    background: linear-gradient(180deg, rgba(150, 151, 152, 0.4) 0%, rgba(50, 50, 51, 0.4) 100%);
    color: #263238;
}

.container_home .col-md-3.mb-4 {
    flex: 0 0 25%;
    max-width: 25%;
    padding-left: 0;
    padding-right: 0;
}

/* Стили для блока с информацией о пройденном тесте */
.test-completion-info {
    display: flex;
    justify-content: space-between; /* Распределяем пространство между элементами */
    align-items: center; /* Выравниваем по вертикали */
    margin-top: 10px; /* Отступ сверху */
    padding: 0 10px; /* Отступы слева и справа */
}

/* Стили для даты */
.completion-date {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: #263238; /* Цвет текста */
}

/* Стили для иконки */
.done-icon {
    width: 24px; /* Ширина иконки */
    height: 24px; /* Высота иконки */
}


/*Footer*/


.footer {
    background-color: #FAFAFB;
}

.footer a {
    font-family: Montserrat sans-serif;
    color: #263238;
    font-weight: 400;
    font-size: 15px;
    line-height: 14px;

}

.footer p {
    color: #263238;
    font-weight: 400;
    font-size: 20px;
    line-height: 23px;


}

.footer a:hover {
    color: #263238;
}

/* Стили для футера на главной странице */
.index-footer {
    background-color: #697077;

}

/*MODAL*/
.modal-content {
    background: linear-gradient(180deg, rgba(195, 196, 197, 0.25) 0%, rgba(94, 94, 95, 0.25) 100%);
!important; /* Исправлен синтаксис */
    border-radius: 12px;
    padding: 20px;
    position: relative;
}

/* Кнопка закрытия */
.modal-content .btn-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1050;
}

/* Стили вкладок */
.nav-tabs {
    border-bottom: 1px solid #263238;
    margin-bottom: 20px;
}

.nav-tabs .nav-link {
    color: #263238;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    padding: 10px 20px;
}

.nav-tabs .nav-link.active {
    color: #263238;
    background-color: rgba(255, 255, 255, 0.2);
    border-color: #263238 #263238 transparent;
}

/* Заголовки внутри вкладок */
.tab-pane .h2 {
    font-family: 'Tenor Sans', sans-serif;
    font-size: 24px;
    color: #263238;
}

/* Контейнер для инпутов */
.input-group {
    width: 70% !important;
    margin: 0 auto; /* Центрируем инпуты */
}

/* Стили для инпутов */
.custom-input {
    width: 100%;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #263238;
    padding: 8px 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #263238;
    background-color: #FAFAFB;
    box-sizing: border-box;
}

.custom-input:focus {
    outline: none !important;
    box-shadow: none !important;
    border-color: #555 !important;
}

/* Placeholder */
.custom-input::placeholder {
    color: #263238;
    opacity: 0.7;
}

/* Стили для кнопок */
.custom-button {
    width: 211px;
    height: 50px;
    border-radius: 12px;
    border: 1px solid #263238;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    color: #263238;
    background: transparent;
    transition: background 0.3s ease;
    cursor: pointer;
}

.custom-button:hover {
    background: linear-gradient(180deg, rgba(150, 151, 152, 0.4) 0%, rgba(50, 50, 51, 0.4) 100%);
    color: #263238;
}

/* Ссылки */
.tab-pane a {
    color: #263238;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    text-decoration: underline;
}

.tab-pane a:hover {
    color: #555;
}


/* Стили для чекбокса */
.form-check {
    display: flex;
    align-items: center; /* Выравниваем по центру по вертикали */
    gap: 10px; /* Добавляем отступ между чекбоксом и текстом */
    width: 80%;
    max-width: 100%;
    margin: 0 auto 15px;
    padding-left: 0;
}

.form-check-input {
    margin: 0; /* Убираем стандартные отступы */
    flex-shrink: 0; /* Предотвращаем сжатие чекбокса */
}

.form-check-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: #263238;
    line-height: 1.4;
    flex: 1;
    word-wrap: break-word;
    text-align: left; /* Выравниваем текст по левому краю */
}

@media (max-width: 768px) {
    .form-check {
        align-items: flex-start; /* Для многострочных текстов */
    }

    .form-check-label {
        font-size: 11px; /* Немного уменьшаем размер шрифта */
    }
}

@media (max-width: 480px) {
    .form-check-label {
        font-size: 10px; /* Еще меньше для очень маленьких экранов */
    }
}

/* Кастомное уведомление */
.custom-alert {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Полупрозрачный фон для затемнения страницы */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.custom-alert-content {
    background: #ffffff; /* Белый фон для окна уведомления */
    border-radius: 12px;
    padding: 20px;
    width: 400px;
    max-width: 90%;
    text-align: center;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.1); /* Тень для окна */
}

.custom-alert-content p {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #263238; /* Темный цвет текста */
    margin: 0 0 20px 0;
}

.custom-alert-button {
    width: 100px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid #263238;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    color: #263238; /* Темный цвет текста */
    background: transparent;
    transition: background 0.3s ease;
    cursor: pointer;
}

.custom-alert-button:hover {
    background: #f0f0f0; /* Светлый фон при наведении */
    color: #263238;
}

/*Кастомное уведомление для выхода*/
.confirm-buttons {
    display: flex;
    justify-content: center;
    gap: 20px; /* Расстояние между кнопками */
}

.custom-alert-content .confirm-buttons .custom-alert-button {
    width: 120px; /* Чуть шире для двух кнопок */
}

/*Индекс Теста*/
/* Контейнер страницы теста */
.container_index_test {
    padding-left: 50px;
    padding-right: 50px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 70px;
    max-width: 1350px;
    width: 100%;
    box-sizing: border-box;
}

/* Заголовок теста */
.container_index_test h1 {
    font-weight: 400;
    font-size: 24px;
    line-height: 33px;
    text-align: center;
    color: #263238;
    margin-bottom: 40px;
    text-transform: uppercase;
}

/* Блок с информацией о тесте  */
.test_info_block {
    background: linear-gradient(180deg, rgba(195, 196, 197, 0.25) 0%, rgba(94, 94, 95, 0.25) 100%);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column; /* Вертикальное расположение для заголовка и контента */
    align-items: center; /* Центрируем все по горизонтали */
    margin-bottom: 40px;
    box-shadow: 0 4px 4px 0 #26323826;
}

/* Контейнер для заголовка */
.test_info_header {
    width: 100%;
    text-align: center;
    margin-bottom: 20px; /* Отступ снизу для разделения с остальным контентом */
}

.test_info_header h1 {
    font-weight: 400;
    font-size: 24px;
    line-height: 33px;
    color: #263238;
    text-transform: uppercase;
    margin: 0; /* Убираем стандартные отступы заголовка */
}

/* Внутренний контейнер для изображения и контента */
.test_info_inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Изображение в блоке информации */
.test_info_img {
    width: 75%;
    max-height: 300px;
    object-fit: contain;
}

/* Контейнер списка и кнопки */
.test_info_content {
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Список характеристик теста */
.test_info_list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.test_info_list li {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 14px;
    color: #263238;
    margin-bottom: 30px;
    position: relative;
    padding-left: 34px;
    display: flex;
    align-items: center;
}

.test_info_list li:nth-child(1)::before {
    content: '';
    position: absolute;
    left: -5px;
    width: 24px;
    height: 24px;
    background: url('../images/icons/verified-icon.svg') no-repeat center;
    background-size: contain;
}

/* Иконка для второго пункта */
.test_info_list li:nth-child(2)::before {
    content: '';
    position: absolute;
    left: -5px;
    width: 24px;
    height: 24px;
    background: url('../images/icons/count-questions-icon.svg') no-repeat center;
    background-size: contain;
}

/* Иконка для третьего пункта */
.test_info_list li:nth-child(3)::before {
    content: '';
    position: absolute;
    left: -5px;
    width: 24px;
    height: 24px;
    background: url('../images/icons/time-icon.svg') no-repeat center;
    background-size: contain;
}

/* Иконка для четвертого пункта */
.test_info_list li:nth-child(4)::before {
    content: '';
    position: absolute;
    left: -5px;
    width: 24px;
    height: 24px;
    background: url('../images/icons/no-abs-icon.svg') no-repeat center;
    background-size: contain;
}

/* Иконка для пятого пункта (popularity) */
.test_info_list li:nth-child(5)::before {
    content: '';
    position: absolute;
    left: -5px;
    width: 24px;
    height: 24px;
    background: url('../images/icons/count-people-icon.svg') no-repeat center;
    background-size: contain;
}


/* Кнопка начать тест */
.button_start {
    width: 290px;
    height: 56px;
    border-radius: 14px;
    border: 2px solid #263238;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    color: #FAFAFB;
    background: #263238;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 4px 8px rgba(38, 50, 56, 0.2);
}

.button_start:hover {
    background: #697077;
    color: #FAFAFB;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(38, 50, 56, 0.3);
}

/* Адаптация для планшетов */
@media (max-width: 1024px) {
    .button_start {
        width: 320px;
        height: 60px;
        font-size: 14px;
    }
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    .button_start {
        width: 350px;
        height: 65px;
        font-size: 15px;
        border-radius: 16px;
    }
}

/* Адаптация для маленьких мобильных устройств */
@media (max-width: 480px) {
    .button_start {
        width: 300px;
        height: 60px;
        font-size: 14px;
    }
}

/* Адаптация для очень маленьких экранов */
@media (max-width: 380px) {
    .button_start {
        width: 280px;
        height: 55px;
        font-size: 13px;
    }
}
/* Секция описания */
.description-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    margin-top: 70px;
}

/* Описание теста */
.test-description {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 20px;
    color: #263238;
    width: 70%;
    margin-right: 20px;
}

/* Изображение в секции описания */
.description-image {
    width: 25%;
    display: flex;
    justify-content: flex-end;
}

.description-image img {
    max-width: 50%;
    height: auto;
    object-fit: contain;
}

/* Заголовок статей */
.container_index_test h3 {
    font-weight: 400;
    font-size: 25px;
    line-height: 25px;
    text-align: center;
    color: #263238;
    margin-bottom: 20px;
}

/* Статьи */
.article {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 20px;
    color: #263238;
    margin-bottom: 5rem;
}

.test_info ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.test_info ul li {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #263238;
    margin-bottom: 15px;
}

.go-test-button {
    width: 211px;
    height: 50px;
    border-radius: 12px;
    border: 1px solid #263238;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    color: #263238;
    background: transparent;
    transition: background 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.go-test-button:hover {
    background: linear-gradient(180deg, rgba(150, 151, 152, 0.4) 0%, rgba(50, 50, 51, 0.4) 100%);
    color: #263238;
}

/* Стили для компактного аккордеона */
.custom-accordion .accordion-button {
    padding: 8px 15px;
    min-height: 40px;
    font-size: 14px;
}

/* Активная кнопка  */
.custom-accordion .accordion-button:not(.collapsed) {
    color: #fff;
    background-color: #697077;
    box-shadow: none;
}

/* Иконка стрелки */
.custom-accordion .accordion-button::after {
    background-size: 12px;
}

/* Тело аккордеона */
.custom-accordion .accordion-body {
    padding: 12px 15px;
}

.accordion-title {
    margin-top: 3rem;
}


/* СТРАНИЦА ТЕСТИРОВАНИЯ */

/* Общие стили для всех типов отображения */
.timer-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.timer-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

#timer {
    font-size: 16px;
}

.container_index_test {
    max-width: 1200px;
    margin: 70px auto;
    padding: 20px;
}

.test-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.test-content {
    border: 2px solid black;
    border-radius: 12px;
    padding-top: 20px;
    padding-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    flex-direction: column;
    align-items: center;
}

.test-question {
    margin-bottom: 20px;
    width: 100%;
}

.answer-form {
    width: 100%;
}

.answer-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.answer-option {
    display: flex;
    align-items: center;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
}

.answer-image img {
    max-width: 100px;
    height: auto;
}

.question-image img {
    max-width: 100%;
    height: auto;
}

.answer-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    line-height: 24px;
    color: #263238;
}

/* Классы для типа отображения: вопрос с картинкой слева, текстовые ответы справа (type_q == 2 && view_type_a == 1) */
.layout-q-left-a-right-text {
    flex-direction: row;
    justify-content: space-between;
}

.layout-q-left-a-right-text .test-question {
    width: 45%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.layout-q-left-a-right-text .exercise {
    order: 1;
    margin-bottom: 30px;
}

.layout-q-left-a-right-text .question-image {
    order: 2;
}

.layout-q-left-a-right-text .question-image img {
    width: 410px;
    height: 295px;
    border: 4px solid #C3C4C5;
    object-fit: contain;
    border-radius: 5px;
}

.layout-q-left-a-right-text .answer-form {
    width: 45%;
}

.layout-q-left-a-right-text .answer-container {
    flex-direction: column;
    align-items: flex-start;
}

.layout-q-left-a-right-text .answer-option {
    border: none;
    position: relative;
    padding-left: 60px;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.layout-q-left-a-right-text .answer-option input[type="radio"] {
    display: none;
}

.layout-q-left-a-right-text .answer-option::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background: url('../images/icons/radio-off-icon.png') no-repeat center;
    background-size: 20px 20px;
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.layout-q-left-a-right-text .answer-option input[type="radio"]:checked + .answer-text::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background: url('../images/icons/radio-on-icon.png') no-repeat center;
    background-size: 20px 20px;
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.layout-q-left-a-right-text .answer-text::before {
    content: none;
}

.layout-q-left-a-right-text .answer-text {
    text-align: left;
    flex-grow: 1;
}

/* Классы для типа отображения: вопрос без картинки по центру, картинки ответов в сетке (type_q == 1 && view_type_a == 2) */
.layout-q-center-a-grid .test-question {
    width: 100%;
    text-align: center;
}

.layout-q-center-a-grid .answer-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.layout-q-center-a-grid .answer-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    justify-items: center;
    width: auto;
    margin-bottom: 20px;
}

.layout-q-center-a-grid .answer-option {
    flex-direction: column;
    text-align: center;
    padding: 0;
    border: 2px solid #C3C4C5;
    border-radius: 5px;
    max-width: 104px;
    max-height: 104px;
}

.layout-q-center-a-grid .answer-option input[type="radio"] {
    display: none;
}

.layout-q-center-a-grid .answer-image img {
    max-width: 100px;
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.layout-q-center-a-grid .back-button {
    margin: 20px auto 0 auto;
}

/* Классы для типа отображения: вопрос без картинки по центру, текстовые ответы в столбик (type_q == 1 && view_type_a == 1) */
.layout-q-center-a-column .test-question {
    width: 100%;
    text-align: center;
}

.layout-q-center-a-column .answer-form {
    width: 100%;
    display: flex;
    justify-content: center;
}

.layout-q-center-a-column .answer-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    width: auto;
}

.layout-q-center-a-column .answer-option {
    border: none;
    position: relative;
    padding-left: 60px;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.layout-q-center-a-column .answer-text {
    text-align: left;
    flex-grow: 1;
}

.layout-q-center-a-column .answer-option input[type="radio"] {
    display: none;
}

.layout-q-center-a-column .answer-option::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background: url('../images/icons/radio-off-icon.png') no-repeat center;
    background-size: 20px 20px;
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.layout-q-center-a-column .answer-option input[type="radio"]:checked + .answer-text::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background: url('../images/icons/radio-on-icon.png') no-repeat center;
    background-size: 20px 20px;
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.layout-q-center-a-column .answer-text::before {
    content: none;
}

/* Классы для типа отображения: вопрос с картинкой слева, картинки ответов справа в сетке (type_q == 2 && view_type_a == 2) */
.layout-q-left-a-right-grid {
    flex-direction: row; /* Вопрос слева, ответы справа */
    justify-content: space-between;
    align-items: flex-start; /* Выравниваем по верху */
}

.layout-q-left-a-right-grid .test-question {
    width: 45%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.layout-q-left-a-right-grid .exercise {
    order: 1;
    margin-bottom: 30px;
}

.layout-q-left-a-right-grid .question-image {
    order: 2;
}

.layout-q-left-a-right-grid .back-button {
    order: 3;
    margin: 20px auto 0 auto; /* Кнопка под вопросом */
}

.layout-q-left-a-right-grid .answer-form {
    margin-top: 90px;
    width: 45%;
    display: flex;
    justify-content: center; /* Центрируем ответы */
}

.layout-q-left-a-right-grid .answer-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    justify-items: center;
}

.layout-q-left-a-right-grid .answer-option {
    padding: 0;
    border: 2px solid #C3C4C5;
    border-radius: 5px;
    max-width: 204px;
    max-height: 204px;
}

.layout-q-left-a-right-grid .answer-image img {
    max-width: 150px;
    max-height: 150px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.layout-q-left-a-right-grid .question-image img {
    width: 410px;
    height: 295px;
    border: 4px solid #C3C4C5;
    object-fit: contain;
    border-radius: 5px;
}

.layout-q-left-a-right-grid .answer-option input[type="radio"] {
    display: none;
}

/* Общие стили для кнопки "Назад" */
.back-button {
    width: 400px;
    height: 50px;
    border-radius: 12px;
    border: 2px solid #263238;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    color: #263238;
    background: transparent;
    transition: background 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 40px auto;
}

.back-button:hover {
    background: linear-gradient(180deg, rgba(150, 151, 152, 0.4) 0%, rgba(50, 50, 51, 0.4) 100%);
    color: #263238;
}

/*АДАПТАЦИЯ ПОД РАЗНЫЕ РАЗМЕРЫ ЭКРАНОВ*/
/* Адаптивность для всех вариантов */
@media (max-width: 1290px) {
    .slider_content {
        gap: 0;
    }

    .slider_text {
        padding-left: 50px;
    }

    .slider_image {
        padding-right: 50px;
    }

}

@media (max-width: 1000px) {
    .carousel-control-prev {
        left: -35px !important;
    }

    .carousel-control-next {
        right: -35px !important;;
    }
}


/* Экраны до 768px (планшеты и мобильные устройства) */
@media (max-width: 768px) {

    .carousel {
        border-radius: 12px !important;
        margin: 20px 15px !important;
        width: calc(100vw - 30px) !important;
        left: 0 !important;
        right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .carousel-control-prev {
        left: -5px !important;
    }

    .carousel-control-next {
        right: -5px !important;
    }

    .slider_content {
        border-radius: 12px; /* Наследуем закругление */
    }


    .container_index_test {
        margin: 20px auto;
        padding: 10px;
    }

    .test-header {
        flex-direction: column;
        gap: 10px;
    }

    .timer-icon {
        width: 20px;
        height: 20px;
    }

    #timer {
        font-size: 14px;
    }

    .test-content {
        flex-direction: column;
        align-items: center;
        position: relative;
        min-height: 100%;
    }

    /* Общие изменения для всех макетов */
    .test-question {
        width: 100%;
        margin-bottom: 15px;
    }

    .answer-form {
        width: 100%;
    }

    .answer-text {
        font-size: 16px;
        line-height: 20px;
    }

    .back-button {
        width: 100%;
        max-width: 300px;
        height: 40px;
        font-size: 10px;
        position: relative;
        margin: 20px auto 0 auto;
        order: 999; /* Кнопка всегда внизу */
    }

    /* Вопрос с картинкой слева, текстовые ответы справа */
    .layout-q-left-a-right-text {
        flex-direction: column;
    }

    .layout-q-left-a-right-text .test-question {
        width: 100%;
    }

    .layout-q-left-a-right-text .question-image img {
        width: 100%;
        max-width: 300px;
        height: auto;
        border-width: 2px;
    }

    .layout-q-left-a-right-text .answer-form {
        width: 100%;
        order: 1;
    }

    .layout-q-left-a-right-text .answer-option {
        padding-left: 40px;
    }

    .layout-q-left-a-right-text .answer-option::before,
    .layout-q-left-a-right-text .answer-option input[type="radio"]:checked + .answer-text::before {
        width: 16px;
        height: 16px;
        background-size: 16px 16px;
        left: 8px;
    }

    /* Вопрос без картинки по центру, картинки ответов в сетке */
    .layout-q-center-a-grid .answer-container {
        grid-template-columns: repeat(3, 1fr); /* 3 колонки */
        gap: 8px;
    }

    .layout-q-center-a-grid .answer-option {
        max-width: 80px; /* Уменьшаем для 3 колонок */
        max-height: 80px;
        border-width: 1px;
    }

    .layout-q-center-a-grid .answer-image img {
        max-width: 78px;
        max-height: 78px;
    }

    .layout-q-center-a-grid .answer-form {
        order: 1;
    }

    /* Вопрос без картинки по центру, текстовые ответы в столбик */
    .layout-q-center-a-column .answer-option {
        padding-left: 40px;
    }

    .layout-q-center-a-column .answer-option::before,
    .layout-q-center-a-column .answer-option input[type="radio"]:checked + .answer-text::before {
        width: 16px;
        height: 16px;
        background-size: 16px 16px;
        left: 8px;
    }

    .layout-q-center-a-column .answer-form {
        order: 1;
    }

    /* Вопрос с картинкой слева, картинки ответов справа в сетке */
    .layout-q-left-a-right-grid {
        flex-direction: column;
    }

    .layout-q-left-a-right-grid .test-question {
        width: 100%;
    }

    .layout-q-left-a-right-grid .question-image img {
        width: 100%;
        max-width: 300px;
        height: auto;
        border-width: 2px;
    }

    .layout-q-left-a-right-grid .answer-form {
        width: 100%;
        margin-top: 0;
        order: 1;
    }

    .layout-q-left-a-right-grid .answer-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .layout-q-left-a-right-grid .answer-option {
        max-width: 80px;
        max-height: 80px;
        border-width: 1px;
    }

    .layout-q-left-a-right-grid .answer-image img {
        max-width: 78px;
        max-height: 78px;
    }

    .form-check {
        padding: 0 !important;
    }
}

/* Экраны до 480px (маленькие мобильные устройства) */
@media (max-width: 480px) {
    .container_index_test {
        margin: 10px auto;
        padding: 5px;
    }

    .carousel {
        border-radius: 10px !important;
    }

    .test-header {
        gap: 5px;
    }

    .timer-icon {
        width: 16px;
        height: 16px;
    }

    #timer {
        font-size: 12px;
    }

    .answer-text {
        font-size: 14px;
        line-height: 18px;
    }

    .back-button {
        max-width: 200px;
        height: 35px;
        font-size: 9px;
        margin: 15px auto 0 auto;
    }

    /* Вопрос с картинкой слева, текстовые ответы справа */
    .layout-q-left-a-right-text .question-image img {
        max-width: 200px;
    }

    .layout-q-left-a-right-text .answer-option {
        padding-left: 30px;
    }

    .layout-q-left-a-right-text .answer-option::before,
    .layout-q-left-a-right-text .answer-option input[type="radio"]:checked + .answer-text::before {
        width: 14px;
        height: 14px;
        background-size: 14px 14px;
        left: 6px;
    }

    /* Вопрос без картинки по центру, картинки ответов в сетке */
    .layout-q-center-a-grid .answer-container {
        grid-template-columns: repeat(3, 1fr); /* 3 колонки */
        gap: 5px;
    }

    .layout-q-center-a-grid .answer-option {
        max-width: 60px; /* Уменьшаем ещё больше для 3 колонок */
        max-height: 60px;
    }

    .layout-q-center-a-grid .answer-image img {
        max-width: 58px;
        max-height: 58px;
    }

    /* Вопрос без картинки по центру, текстовые ответы в столбик */
    .layout-q-center-a-column .answer-option {
        padding-left: 30px;
    }

    .layout-q-center-a-column .answer-option::before,
    .layout-q-center-a-column .answer-option input[type="radio"]:checked + .answer-text::before {
        width: 14px;
        height: 14px;
        background-size: 14px 14px;
        left: 6px;
    }

    /* Вопрос с картинкой слева, картинки ответов справа в сетке */
    .layout-q-left-a-right-grid .question-image img {
        max-width: 200px;
    }

    .layout-q-left-a-right-grid .answer-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
    }

    .layout-q-left-a-right-grid .answer-option {
        max-width: 60px;
        max-height: 60px;
    }

    .layout-q-left-a-right-grid .answer-image img {
        max-width: 58px;
        max-height: 58px;
    }
}

/*Вернуться на главную теста*/
.return-button {
    width: 400px;
    height: 50px;
    border-radius: 12px;
    border: 2px solid #263238;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    color: #FAFAFB; /* Светлый текст для контраста с темным фоном */
    background: #263238; /* Темный фон */
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 40px auto 0 auto; /* Центрируем кнопку с отступом сверху */
}

.return-button:hover {
    background: #555; /* Чуть светлее при наведении */
    color: #FAFAFB;
    border-color: #555;
}

/* Адаптивность для кнопки */
@media (max-width: 768px) {
    .return-button {
        width: 100%;
        max-width: 300px;
        height: 40px;
        font-size: 10px;
        margin: 20px auto 0 auto;
    }
}

@media (max-width: 480px) {
    .return-button {
        max-width: 300px;
        height: 35px;
        font-size: 9px;
        margin: 15px auto 0 auto;
    }
}

/* Медиа-запрос для экранов до 1024px (планшеты и маленькие ноутбуки) */
@media (max-width: 1024px) {
    /* Шапка */
    .header__container {
        padding: 0 40px; /* Увеличиваем отступы слева и справа с 20px до 40px */
        display: flex;
        flex-direction: row;
        justify-content: space-between; /* Распределяем элементы */
        align-items: center;
        position: relative;
    }

    /* Логотип по центру */
    .header__logo {
        font-size: 18px;
        position: absolute;
        left: 50%;
        transform: translateX(-50%); /* Центрируем логотип */
        z-index: 1500;
    }

    .menu__body--center {
        display: none; /* Скрываем центральное меню */
    }

    .header__menu {
        gap: 0; /* Убираем промежуток между иконками */
        width: 100%;
        display: flex;
        justify-content: space-between; /* Personal слева, бургер справа */
        align-items: center;
    }

    /* Personal icon слева */
    .personal_icon {
        order: -1; /* Перемещаем personal_icon в начало */
        margin-right: auto; /* Прижимаем к левому краю */
    }

    /* Бургер-меню справа */
    .menu__icon {
        margin-left: auto; /* Прижимаем к правому краю */
    }

    /* Переносим пункты меню в боковое меню */
    .sidebar__menu .sidebar__list {
        padding-top: 20px;
    }

    .sidebar__menu .sidebar__list li:nth-child(-n+3) {
        display: block; /* Показываем "Как это работает", "О нас", "К тестам" */
    }

    .sidebar__menu,
    .personal__menu {
        width: 250px; /* Оставляем ширину бокового меню */
    }

    /* Слайдер */
    .carousel {
        height: 350px;
    }

    .slider_text {
        width: 40%;
        height: auto;
        padding: 15px;
    }

    .slider_title {
        font-size: 28px;
        line-height: 32px;
    }

    .slider_button {
        width: 250px;
        height: 45px;
        padding: 12px 20px;
        font-size: 11px;
    }

    .slider_image {
        width: 50%;
        height: 250px;
    }

    /* Block-2 */
    .block-2-img-wrapper {
        width: 100%;
        height: 300px;
        margin-bottom: 20px;
    }

    .block-2-text-wrapper {
        width: 100%;
        height: auto;
        padding-left: 0;
    }

    .block-2-text-wrapper h2 {
        font-size: 20px;
        line-height: 30px;
    }

    .block-2-text {
        font-size: 16px !important;
        line-height: 24px !important;
    }

    /* Поиск и фильтры */
    .search_input {
        width: 425px;
    }

    .filter-dropdown {
        width: 425px;
    }

    #search__response {
        width: 425px;
    }

    /* Карточки тестов */
    .container_home .col-md-3.mb-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .testCard {
        min-width: 0;
    }
}

/* Медиа-запрос для экранов до 768px (мобильные устройства) */
@media (max-width: 768px) {
    /* Шапка */
    .header__container {
        padding: 0 15px;
        min-height: 40px;
    }

    .header__logo {
        font-size: 16px;
    }

    .header__menu {
        gap: 15px;
    }

    .menu__icon {
        width: 18px;
        height: 12px;
    }

    .personal_icon img {
        width: 20px;
        height: 20px;
    }

    .sidebar__menu,
    .personal__menu {
        width: 200px;
        padding: 15px;
    }

    .sidebar__list li,
    .personal__list li {
        margin: 15px 0;
    }

    /* Начальная страница */
    .index_logo {
        font-size: 36px;
        margin-bottom: 3rem;
    }

    .index_body h2 {
        font-size: 24px;
    }

    .index_button {
        padding: 0.6em 0.8em;
        margin: 1.5rem;
        font-size: 14px;
    }


    /* Основная страница */
    .container_home {
        padding-left: 15px;
        padding-right: 15px;
        margin-top: 50px;
    }

    .carousel {
        width: 100vw; /* Ширина на весь экран */
        margin: 0; /* Убираем отступы */
        border-radius: 0; /* Убираем закругленные углы */
        height: 350px;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
    }

    .slider_content {
        flex-direction: column; /* Вертикальное расположение */
        align-items: center; /* Центрирование по горизонтали */
        justify-content: flex-start; /* Контент начинается сверху */
        padding: 20px; /* Внутренние отступы */
    }

    .slider_text {
        width: 100%; /* Полная ширина */
        text-align: center; /* Центрирование текста */
        padding: 0; /* Убираем лишние отступы */
    }

    .slider_title {
        font-size: 20px;
        line-height: 24px;
        margin-bottom: 10px;
    }

    .slider_text span {
        display: block; /* Каждый span на новой строке */
        font-size: 14px;
        line-height: 14px;
    }

    .slider_button {
        margin: 15px auto 0; /* Центрирование кнопки */
        display: block; /* Для центрирования через margin */
    }

    .slider_image {
        width: 100%; /* Ширина изображения на весь контейнер */
        height: auto; /* Автоматическая высота */
        max-width: 300px; /* Ограничение максимальной ширины изображения */
        max-height: 150px; /* Ограничение максимальной высоты изображения */
        order: -1; /* Изображение перемещаем вверх */
        margin-bottom: 15px; /* Отступ снизу */
        padding: 0;
    }

    .slider_image img {
        width: 100%;
        height: auto;
        max-width: 100%; /* Убеждаемся, что изображение не превышает контейнер */
        max-height: 150px; /* Ограничиваем высоту изображения */
        object-fit: contain; /* Сохраняем пропорции изображения */
    }

    /* Block-2 */
    .row.align-items-center {
        flex-direction: column; /* Вертикальное расположение элементов */
        align-items: stretch; /* Растягиваем элементы по ширине */
    }

    /* Изображение */
    .col-md-6:first-child {
        order: 2; /* Изображение перемещаем вниз (в конец) */
        width: 100%; /* Устанавливаем полную ширину */
        margin-top: 20px; /* Отступ сверху для разделения */
    }

    /* Текст и кнопка */
    .col-md-6:last-child {
        order: 1; /* Текст и кнопка остаются сверху */
        width: 100%; /* Устанавливаем полную ширину */
        margin-top: 30px;
    }

    .block-2-text-wrapper {
        width: 100%; /* Полная ширина контейнера текста */
        margin-left: 0; /* Убираем отступ слева */
        margin-right: 0; /* Убираем отступ справа */
        text-align: center; /* Центрируем текст */
    }

    .block-2-img-wrapper {
        display: none;
    }

    .block-2-text-wrapper .slider_button {
        margin: 20px auto 0; /* Центрируем кнопку и добавляем отступ сверху */
        display: block; /* Для корректного центрирования через margin */
    }

    /* Поиск и фильтры */
    .search-section {
        flex-direction: column; /* Вертикальное расположение */
        align-items: center; /* Центрируем элементы */
        padding-top: 40px;
        margin-bottom: 30px;
    }

    .search {
        justify-content: center; /* Центрируем содержимое */
        margin: 0 auto !important;
    }

    .search_input {
        width: 425px; /* Фиксированная ширина инпута */
        margin: 0 auto; /* Центрируем инпут */
    }

    .filter-dropdown,
    #search__response {
        left: auto;
        right: auto;
        width: 425px;
    }

    /* Карточки тестов */
    .container_home .col-md-3.mb-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .testCard {
        padding: 15px;
    }

    .icon-test-img-wrapper {
        height: 150px;
    }

    .testCard-title {
        font-size: 12px;
    }


    .go-test-button {
        width: 180px;
        height: 40px;
        padding: 12px 20px;
        font-size: 10px;
    }

    /* Футер */
    .footer .container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .footer .d-flex {
        flex-direction: column;
    }

    .footer p {
        font-size: 16px;
    }

    .footer a {
        font-size: 12px;
        margin: 0 auto !important;
    }

    /* Модальные окна */
    .modal-dialog {
        margin: 10px;
    }


    .modal-content {
        padding: 15px;
    }

    .input-group {
        width: 100% !important;
    }

    .custom-input {
        font-size: 10px !important;
        height: 28px;
    }

    .custom-button {
        width: 180px;
        height: 40px;
        font-size: 10px;
    }

    .tab-pane .h2 {
        font-size: 20px;
    }

    .nav-tabs .nav-link {
        font-size: 12px;
        padding: 8px 15px;
    }

    .custom-alert-content {
        width: 90%;
        padding: 15px;
    }

    .custom-alert-content p {
        font-size: 12px;
    }

    .custom-alert-button {
        width: 80px;
        height: 35px;
        font-size: 10px;
    }

    .confirm-buttons .custom-alert-button {
        width: 100px;
    }
}

/* Медиа-запрос для экранов до 480px (маленькие мобильные устройства) */
@media (max-width: 480px) {
    .search_input {
        width: 350px;
    }

    .filter-dropdown {
        width: 350px;
    }

    #search__response {
        width: 350px;
    }

}

@media (max-width: 380px) {
    .search_input {
        width: 300px;
    }

    .filter-dropdown {
        width: 300px;
    }

    #search__response {
        width: 300px;
    }

    .form-check {
        width: 100%;
    }

}

.desktop-hidden {
    display: none;
}

@media (max-width: 1024px) {
    .desktop-hidden {
        display: block;
    }
}

/* Адаптация для INDEX Теста */
@media (max-width: 768px) {
    .container_index_test {
        padding-left: 15px;
        padding-right: 15px;
        margin-top: 50px;
    }

    .container_index_test h1 {
        font-size: 20px;
        line-height: 28px;
    }

    .test_info_inner {
        flex-direction: column;
        padding: 15px;
    }

    .test_info_img {
        width: 100%;
        max-height: 200px;
        margin-bottom: 20px;
    }

    .test_info_content {
        width: 100%;
        align-items: center;
    }

    .test_info_list li {
        font-size: 15px;
        margin-bottom: 20px;
    }

.button_start {
   width: 288px;  /* -30% от 412px */
   height: 53px;  /* -30% от 76px */
   font-size: 13px;  /* -30% от 18px */
}

    .description-section {
        flex-direction: column;
        align-items: center;
    }

    .test-description {
        font-size: 16px;
        line-height: 18px;
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
        text-align: center;

    }

    .description-image {
        display: none;

    }

    .articles-section h3 {
        font-size: 16px;
        line-height: 22px;
    }

    .article {
        font-size: 16px;
        line-height: 18px;
    }
}

@media (max-width: 480px) {
    .container_index_test h1 {
        font-size: 18px;
        line-height: 25px;
    }

    .test_info_list li {
        font-size: 15px;
        margin-bottom: 20px;
    }

    .test-description {
        font-size: 16px;
        line-height: 18px;
    }
}


/*О НАС*/
/* Стили для блока на странице "О нас" */
.about-us-block {
    width: 100vw; /* Ширина на весь экран */
    height: 478px;
    background: linear-gradient(180deg, rgba(195, 196, 197, 0.25) 0%, rgba(94, 94, 95, 0.25) 100%); /* Цвет как у слайдера */
    padding: 50px 0; /* Внутренние отступы сверху и снизу */
    display: flex;
    flex-direction: column;
    align-items: center; /* Центрирование содержимого по горизонтали */
    justify-content: center; /* Центрирование содержимого по вертикали */
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw; /* Расширение на всю ширину экрана */
    margin-right: -50vw; /* Расширение на всю ширину экрана */
    margin-bottom: 5rem;
}

/* Стили для заголовка */
.about-us-block h1 {
    font-family: 'Tenor Sans', sans-serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 33px;
    color: #263238; /* Темный цвет текста, как на главной странице */
    text-transform: uppercase; /* В верхнем регистре, как на других страницах */
    margin-bottom: 50px; /* Отступ снизу для разделения с изображением */
}

/* Стили для изображения */
.about-us-image {
    height: 320px; /* Заданная высота */
    width: auto; /* Ширина автоматическая для сохранения пропорций */
    max-width: 100%; /* Убеждаемся, что изображение не превышает контейнер */
    object-fit: contain; /* Сохраняем пропорции изображения */
}

/* Стили для заголовков h2 */
.container_home h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 24px;
    color: #263238; /* Цвет текста как на всем сайте */
    margin-bottom: 20px; /* Отступ снизу для разделения с текстом */
}

/* Стили для параграфов */
.container_home p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 17px;
    color: #263238; /* Цвет текста как на всем сайте */
    margin-bottom: 15px; /* Отступ снизу для разделения параграфов */
}

/* Стили для нумерованных списков */
.container_home ol {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 17px;
    color: #263238; /* Цвет текста как на всем сайте */
    padding-left: 20px; /* Отступ слева для номеров */
    margin-bottom: 15px; /* Отступ снизу для разделения */

}

.container_home ol li {

    list-style: decimal !important;
}

/*АДАПТАЦИЯ О НАС*/
/* Медиа-запрос для экранов до 1024px (планшеты и маленькие ноутбуки) */
@media (max-width: 1024px) {
    .about-us-block {
        height: 400px; /* Уменьшаем высоту блока */
        padding: 40px 0;
    }

    .about-us-block h1 {
        font-size: 22px; /* Уменьшаем шрифт */
        line-height: 30px;
        margin-bottom: 40px;
    }

    .about-us-image {
        height: 280px; /* Уменьшаем высоту изображения */
    }
}

/* Медиа-запрос для экранов до 768px (мобильные устройства) */
@media (max-width: 768px) {
    .about-us-block {
        height: auto; /* Делаем высоту автоматической для гибкости */
        padding: 30px 15px; /* Уменьшаем отступы и добавляем горизонтальные для контента */
        margin-bottom: 3rem; /* Уменьшаем нижний отступ */
    }

    .about-us-block h1 {
        font-size: 20px; /* Уменьшаем шрифт */
        line-height: 28px;
        margin-bottom: 30px;
    }

    .about-us-image {
        height: 200px; /* Значительно уменьшаем высоту изображения */
    }
}

/* Медиа-запрос для экранов до 480px (маленькие мобильные устройства) */
@media (max-width: 480px) {
    .about-us-block {
        padding: 20px 10px; /* Ещё меньше отступов */
        margin-bottom: 2rem;
    }

    .about-us-block h1 {
        font-size: 18px; /* Минимальный размер шрифта */
        line-height: 25px;
        margin-bottom: 20px;
    }

    .about-us-image {
        height: 150px; /* Минимальная высота изображения */
    }
}

/* Медиа-запрос для экранов до 380px (очень маленькие устройства) */
@media (max-width: 380px) {
    .about-us-block {
        padding: 15px 5px;
    }

    .about-us-block h1 {
        font-size: 16px;
        line-height: 22px;
        margin-bottom: 15px;
    }

    .about-us-image {
        height: 120px; /* Ещё меньше для самых маленьких экранов */
    }
}


/*Страница с результатами*/
.result-header {
    width: 100vw;
    min-height: 447px;
    background: linear-gradient(180deg, rgba(195, 196, 197, 0.25) 0%, rgba(94, 94, 95, 0.25) 100%);
    margin-top: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-shadow: 0 4px 4px 0 #26323826;
}

.result-header h1 {
    font-family: 'Tenor Sans', sans-serif;
    font-weight: 400;
    font-size: 40px;
    line-height: 46px;
    text-transform: uppercase;
    color: #263238;
    text-align: center;
    margin-bottom: 15px;
}

.result-header h3 {
    font-family: 'Tenor Sans', sans-serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 28px;
    text-align: center;
    color: #263238;
    margin: 5px 0;
}

.result-header .iq-score {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: #263238;
    text-align: center;
    margin: 5px 0;
}

.result-image {
    max-width: 300px;
    height: auto;
    object-fit: contain;
    margin-bottom: 15px;
}

.result-content {
    max-width: 1350px;
    margin: 0 auto;
    padding: 20px 50px;
    color: #263238;
}

.result-content h2 {
    font-family: 'Tenor Sans', sans-serif;
    font-weight: 400;
    font-size: 32px;
    line-height: 38px;
    text-transform: uppercase;
    color: #263238;
    margin-bottom: 20px;
    /* text-align: center удалено */
}

.result-content h2.recommendations-header {
    font-family: 'Tenor Sans', sans-serif;
    font-weight: 400;
    font-size: 24px; /* Уменьшен размер с 32px до 24px */
    line-height: 28px; /* Уменьшена высота строки */
    text-transform: uppercase;
    color: #263238;
    margin-top: 40px;
    margin-bottom: 20px;
    /* text-align: center удалено */
}

.result-content h3 {
    font-family: 'Tenor Sans', sans-serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 28px;
    color: #263238;
    margin: 15px 0 5px;
    /* text-align: center удалено */
}

.result-content p {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    line-height: 20px;
    /* text-align: center удалено */
}

.restart-form {
    text-align: center;
    margin: 40px 0;
}

.restart-button {
    width: 255px;
    height: 50px;
    border-radius: 12px;
    border: 1px solid #263238;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    color: #263238;
    background: transparent;
    transition: background 0.3s ease;
    cursor: pointer;
}

.restart-button:hover {
    background: linear-gradient(180deg, rgba(150, 151, 152, 0.4) 0%, rgba(50, 50, 51, 0.4) 100%);
}

/* Адаптивность */
@media (max-width: 768px) {
    .result-header {
        min-height: 350px;
        margin-top: 50px;
        padding: 15px;
    }

    .result-header h1 {
        font-size: 28px;
        line-height: 32px;
        margin-bottom: 10px;
    }

    .result-header h3 {
        font-size: 20px;
        line-height: 24px;
        margin: 4px 0;
    }

    .result-header .iq-score {
        font-size: 18px;
        margin: 4px 0;
    }

    .result-image {
        max-width: 200px;
        margin-bottom: 10px;
    }

    .result-content {
        padding: 15px;
    }

    .result-content h2 {
        font-size: 24px;
        line-height: 28px;
        margin-bottom: 15px;
    }

    .result-content h2.recommendations-header {
        font-size: 20px; /* Уменьшен с 24px до 20px */
        line-height: 24px;
        margin-top: 30px;
        margin-bottom: 15px;
    }

    .result-content h3 {
        font-size: 20px;
        line-height: 24px;
        margin: 12px 0 4px;
    }
}

@media (max-width: 480px) {
    .result-header h1 {
        font-size: 20px;
        line-height: 24px;
        margin-bottom: 8px;
    }

    .result-header h3 {
        font-size: 18px;
        line-height: 22px;
        margin: 3px 0;
    }

    .result-header .iq-score {
        font-size: 16px;
        margin: 3px 0;
    }

    .result-image {
        max-width: 150px;
        margin-bottom: 8px;
    }

    .result-content p {
        font-size: 12px;
        line-height: 18px;
    }

    .result-content h2 {
        font-size: 20px;
        line-height: 24px;
        margin-bottom: 10px;
    }

    .result-content h2.recommendations-header {
        font-size: 18px; /* Уменьшен с 20px до 18px */
        line-height: 22px;
        margin-top: 20px;
        margin-bottom: 10px;
    }

    .result-content h3 {
        font-size: 18px;
        line-height: 22px;
        margin: 10px 0 3px;
    }
}

/*Спиннер загрузки*/
.spinner {
    position: fixed;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 1000;
    padding: 20px;
    border-radius: 10px;
}

.spinner-icon {
    width: 40px;
    height: 40px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}


/*PROFILE*/
.profile-container {
    max-width: 1350px;
    padding: 20px 50px;
    margin-top: 70px;
}

.profile-header {
    font-family: 'Tenor Sans', sans-serif;
    font-weight: 400;
    font-size: 40px;
    line-height: 46px;
    text-transform: uppercase;
    color: #263238;
    text-align: center;
    margin-bottom: 20px;
}

.username {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 24px;
    color: #263238;
    text-align: center;
    margin-bottom: 30px;
}

.profile-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.profile-btn {
    width: 255px;
    height: 50px;
    border-radius: 12px;
    border: 1px solid #263238;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    color: #263238;
    background: transparent;
    transition: background 0.3s ease;
    cursor: pointer;
}

.profile-btn:hover,
.profile-btn.active {
    background: linear-gradient(180deg, rgba(150, 151, 152, 0.4) 0%, rgba(50, 50, 51, 0.4) 100%);
}

.profile-content {
    min-height: 200px;
}

/* Адаптация для экранов до 1024px (планшеты) */
@media (max-width: 1024px) {
    .profile-container {
        padding: 20px 30px;
    }

    .profile-header {
        font-size: 32px;
        line-height: 38px;
    }

    .username {
        font-size: 20px;
    }

    .profile-buttons {
        flex-wrap: wrap;
        gap: 15px;
    }

    .profile-btn {
        width: 200px;
        height: 45px;
        font-size: 11px;
    }

    .testCard {
        margin: 0 10px;
    }
}

/* Адаптация для экранов до 768px (планшеты и мобильные устройства) */
@media (max-width: 768px) {
    .profile-container {
        padding: 20px 15px;
        margin-top: 50px;
    }

    .profile-header {
        font-size: 28px;
        line-height: 32px;
    }

    .username {
        font-size: 18px;
    }

    .profile-buttons {
        gap: 10px;
    }

    .profile-btn {
        width: 150px;
        height: 40px;
        font-size: 10px;
    }

    .testCard {
        margin: 0 5px;
    }

    .col-md-3.mb-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Адаптация для экранов до 480px (мобильные устройства) */
@media (max-width: 480px) {
    .profile-container {
        padding: 20px 10px;
    }

    .profile-header {
        font-size: 24px;
        line-height: 28px;
    }

    .username {
        font-size: 16px;
    }

    .profile-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .profile-btn {
        width: 100%;
        height: 40px;
        font-size: 10px;
    }

    .col-md-3.mb-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .testCard {
        margin: 0;
    }

    .testCard-title {
        font-size: 14px;
    }


    .go-test-button {
        width: 180px;
        height: 40px;
        font-size: 10px;
    }
}

/* Адаптация для экранов до 380px (очень маленькие устройства) */
@media (max-width: 380px) {
    .profile-header {
        font-size: 20px;
        line-height: 24px;
    }

    .username {
        font-size: 14px;
    }

    .profile-btn {
        height: 35px;
        font-size: 9px;
    }

    .testCard-title {
        font-size: 12px;
    }


    .go-test-button {
        width: 150px;
        height: 35px;
        font-size: 9px;
    }
}

/*КОНТАКТЫ*/
/* Form Styles */
.form-group {
    max-width: 600px;
    margin: 0 auto;
}

.finish_label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #263238;
    margin-bottom: 5px;
    display: block;
}

.finish_input,
.feedback_textarea {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #263238;
    padding: 8px 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #263238;
    background-color: #FAFAFB;
    box-sizing: border-box;
    margin-bottom: 15px;
}

.finish_input:focus,
.feedback_textarea:focus {
    outline: none;
    border-color: #555;
    box-shadow: none;
}

.finish_input::placeholder,
.feedback_textarea::placeholder {
    color: #263238;
    opacity: 0.7;
}

.feedback_textarea {
    min-height: 150px;
    resize: vertical;
}

.feedback_button {
    width: 211px;
    height: 50px;
    border-radius: 12px;
    border: 1px solid #263238;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    color: #263238;
    background: transparent;
    transition: background 0.3s ease;
    cursor: pointer;
    display: block;
    margin: 20px auto 0;
}

.feedback_button:hover {
    background: linear-gradient(180deg, rgba(150, 151, 152, 0.4) 0%, rgba(50, 50, 51, 0.4) 100%);
}

/* CAPTCHA Styles */
.captcha-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
}

.captcha-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: #263238;
    margin-bottom: 10px;
    user-select: none;
}

.captcha-input {
    width: 200px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid #263238;
    padding: 8px 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #263238;
    background-color: #FAFAFB;
    text-align: center;
}

.alert {
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    text-align: center;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}


/*ADMIN*/
.admin-links {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.admin-button {
    width: 211px;
    height: 50px;
    border-radius: 12px;
    border: 1px solid #263238;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    color: #263238;
    background: transparent;
    transition: background 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-button:hover {
    background: linear-gradient(180deg, rgba(150, 151, 152, 0.4) 0%, rgba(50, 50, 51, 0.4) 100%);
    color: #263238;
}

/*ADMIN USERS*/
.users-table-container {
    margin-top: 20px;
    width: 100%;
}

.users-per-page {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.users-per-page label {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
}

.users-per-page select {
    padding: 5px;
    border: 1px solid #263238;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    min-width: 70px;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Montserrat', sans-serif;
}

.users-table th,
.users-table td {
    padding: 10px;
    border: 1px solid #263238;
    text-align: center;
}

.users-table th {
    background: #f5f5f5;
    text-transform: uppercase;
    font-size: 12px;
}

.users-table td {
    font-size: 14px;
}

.toggle-active-btn {
    padding: 5px 10px;
    border: 1px solid #263238;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    transition: background 0.3s ease;
    font-size: 12px;
    width: 100%;
}

.toggle-active-btn:hover {
    background: linear-gradient(180deg, rgba(150, 151, 152, 0.4) 0%, rgba(50, 50, 51, 0.4) 100%);
}

.pagination {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination button {
    padding: 5px 15px;
    border: 1px solid #263238;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    transition: background 0.3s ease;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination button:hover:not(:disabled) {
    background: linear-gradient(180deg, rgba(150, 151, 152, 0.4) 0%, rgba(50, 50, 51, 0.4) 100%);
}

/* Адаптивность для телефонов */
@media screen and (max-width: 768px) {
    .users-table thead {
        display: none; /* Скрываем заголовки на малых экранах */
    }

    .users-table tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #263238;
        border-radius: 8px;
        background: #fff;
    }

    .users-table td {
        display: block;
        text-align: left;
        padding: 8px;
        border: none;
        border-bottom: 1px solid #e0e0e0;
        font-size: 12px;
        position: relative;
    }

    .users-table td:last-child {
        border-bottom: none;
    }

    .users-table td:before {
        content: attr(data-label);
        font-weight: bold;
        display: inline-block;
        width: 40%;
        padding-right: 10px;
        color: #263238;
    }

    .toggle-active-btn {
        padding: 4px 8px;
        font-size: 10px;
        width: auto;
        display: inline-block;
    }

    .pagination {
        gap: 5px;
        padding: 0 10px;
    }

    .pagination button {
        padding: 4px 10px;
        font-size: 12px;
    }

}

@media screen and (max-width: 480px) {
    .users-per-page label {
        font-size: 12px;
    }

    .users-per-page select {
        font-size: 12px;
    }

    .users-table td {
        font-size: 11px;
        padding: 6px;
    }

    .users-table td:before {
        width: 45%;
    }

    .toggle-active-btn {
        padding: 3px 6px;
        font-size: 9px;
    }

    .pagination button {
        padding: 3px 8px;
        font-size: 10px;
    }

    .pagination span {
        font-size: 12px;
    }
}

.public_result_title {
    margin-top: 6rem;
}


.share-buttons {
    text-align: center;
}

.share-buttons h3 {
    font-family: 'Tenor Sans', sans-serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 28px;
    color: #263238;
    margin-bottom: 15px;
}

.share-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.share-icon {
    display: inline-block;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.share-icon:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.share-icon-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* Стили для модального окна копирования ссылки */
.custom-alert-share-link {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.custom-alert-content-share-link {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    width: 400px;
    max-width: 90%;
    text-align: center;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.1);
}

.custom-alert-content-share-link p {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #263238;
    margin: 0 0 15px 0;
}

.share-link-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #263238;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #263238;
    background-color: #FAFAFB;
    margin-bottom: 15px;
    box-sizing: border-box;
}

.share-link-input:focus {
    outline: none;
    border-color: #555;
}

.custom-alert-button-share-link {
    width: 120px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid #263238;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    color: #263238;
    background: transparent;
    transition: background 0.3s ease;
    cursor: pointer;
    margin: 0 10px;
}

.custom-alert-button-share-link:hover {
    background: #f0f0f0;
}

/* Стили для кастомного уведомления */
#customNotification .custom-alert-content-share-link {
    width: 300px; /* Меньше, чем окно копирования, для компактности */
}

#customNotification .custom-alert-content-share-link p {
    margin-bottom: 20px;
}

#customNotification .custom-alert-button-share-link {
    width: 100px;
    margin: 0 auto;
}

/* Адаптивность */
@media (max-width: 768px) {
    .share-buttons h3 {
        font-size: 20px;
        line-height: 24px;
    }

    .share-icon-img {
        width: 35px;
        height: 35px;
    }

    .custom-alert-content-share-link {
        width: 90%;
        padding: 15px;
    }

    .custom-alert-content-share-link p {
        font-size: 12px;
    }

    .share-link-input {
        font-size: 12px;
        padding: 6px 10px;
    }

    .custom-alert-button-share-link-share-link {
        width: 100px;
        height: 35px;
        font-size: 10px;
        margin: 0 5px;
    }

    #customNotification .custom-alert-content-share-link {
        width: 80%;
    }

    #customNotification .custom-alert-content-share-link p {
        font-size: 11px;
        margin-bottom: 15px;
    }

    #customNotification .custom-alert-button-share-link {
        width: 90px;
        height: 30px;
        font-size: 9px;
    }
}

@media (max-width: 480px) {
    .share-buttons h3 {
        font-size: 18px;
        line-height: 22px;
    }

    .share-icon-img {
        width: 30px;
        height: 30px;
    }

    .share-icons {
        gap: 15px;
    }

    .custom-alert-content-share-link {
        padding: 10px;
    }

    .custom-alert-content-share-link p {
        font-size: 11px;
        margin-bottom: 10px;
    }

    .share-link-input {
        font-size: 11px;
        padding: 5px 8px;
    }

    .custom-alert-button-share-link {
        width: 90px;
        height: 30px;
        font-size: 9px;
    }

    #customNotification .custom-alert-content-share-link {
        width: 85%;
    }
}

.subscription-form .form-group {
    max-width: 400px;
    margin-left: 0;
    margin-right: auto;
}



.result-text ol,
.result-text ul {
    list-style: none !important; /* Убираем стандартные маркеры */
    padding-left: 25px; /* Отступ для кастомных маркеров */
    margin: 10px 0;
}

.result-text ol li,
.result-text ul li {
    position: relative; /* Для позиционирования псевдоэлемента ::before */
    margin-bottom: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;

    line-height: 1.5;
    color: #263238;
    padding-left: 20px; /* Отступ для текста, чтобы учесть ширину маркера */
}

/* Кастомные маркеры для нумерованного списка (ol) */
.result-text ol li::before {
    content: counter(item) ". "; /* Используем счетчик для нумерации */
    counter-increment: item; /* Увеличиваем счетчик для каждого элемента */
}

/* Сбрасываем счетчик для каждого нового ol */
.result-text ol {
    counter-reset: item;
}

/* Кастомные маркеры для маркированного списка (ul) */
.result-text ul li::before {
    content: "• ";
}

/* Для вложенных списков */
.result-text ol ol,
.result-text ul ul {
    padding-left: 20px;
    margin: 5px 0;
}

.result-text ol ol li::before {
    content: counter(item, lower-alpha) ". ";
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #263238;
}

.result-text ul ul li::before {
    content: "◦ ";
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #263238;
}

/* Поддержка выравнивания текста */
.result-text .ql-align-center {
    text-align: center;
}

.result-text .ql-align-right {
    text-align: right;
}

.result-text .ql-align-left {
    text-align: left;
}

/* Для центрированного и правого выравнивания: корректируем позицию маркеров */
.result-text .ql-align-center ol li,
.result-text .ql-align-center ul li,
.result-text .ql-align-right ol li,
.result-text .ql-align-right ul li {
    text-align: left;

}

/* Для правого выравнивания: дополнительно смещаем маркеры */
.result-text .ql-align-right ol li::before,
.result-text .ql-align-right ul li::before {
    left: 200px !important;


}

/* Стили для форматирования текста */
.result-text strong {
    font-weight: bold;
}

.result-text em {
    font-style: italic;
}

.result-text u {
    text-decoration: underline;
}

/* Стили для заголовков и параграфов */
.result-text h1,
.result-text h2,
.result-text h3,
.result-text h4,
.result-text h5,
.result-text h6 {
    margin: 15px 0;
    font-family: 'Montserrat', sans-serif;
}

.result-text p {
    margin: 10px 0;
    line-height: 1.5;
}
/* Стили для надписи о подписке */
.subscription-notice {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    color: #9CA3A8; /* Светлый серый из палитры сайта, похожий на #C3C4C5 но темнее */
    text-align: center;
    margin-top: 8px;
    line-height: 1.4;
    font-style: italic;
    min-height: 14px;
}

/* Стили для контейнера кнопки и надписи */
.button-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .subscription-notice {
        text-align: center;
        font-size: 8px;
        margin-top: 6px;
        min-height: 11px;
        width: 100%;
    }

    .test_info_content .button-container {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .subscription-notice {
        font-size: 10px;
        margin-top: 1px;
    }
}
