* {
    padding: 0;
    margin: 0;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 18px;
}

body {
    overflow-x: hidden;
    background-color: #ffffff;
    --fff: #fff;
    --fff_1: #f5f5f5;
    --grey: #ddd;
    --grey_1: #dee2e6;
    --grey_2: #808080;
    --green: #299f16;
    --green_1: #4CAF50;
    --blue: #2c70dd;
    --red: #ff0000;
    --dark: #000;
    --my-box-shadow: 0px 0px 8px 5px rgba(34, 60, 80, 0.2);
    --my-box-shadow-hover: 0px 0px 8px 5px rgba(34, 60, 80, 0.4);
    color: var(--dark);
}

.wrapper {
    max-width: 1350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 5px;
    margin: 0 auto;
}

h1 {
    margin-top: 50px;
    margin-bottom: 30px;
    text-align: center;
    font-size: 22px;
    font-weight: bold;
}

h1 a {
    color: var(--dark);
    text-decoration: none;
    transition: all 0.3s ease;
}

h2 {
    margin-top: 18px;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    text-decoration: underline;
}

h3 {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    padding: 30px 0;
}

h4 {
    text-align: left;
    font-size: 18px;
    font-weight: bold;
    padding: 10px 0;
}

.bold{
    font-weight: bold;
}

.txt_big{
    font-size: 20px;
}

.txt_red{
    color: var(--red);
}

.txt_green{
    color: var(--green);
}

.txt_underline{
    text-decoration: underline;
}

.mr-t-30{
    margin-top: 30px;
} 

 .txt_content {
    font-size: 16px;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.5;
    margin-bottom: 20px;
}

.txt_content p{
    margin-bottom: 10px;
    font-size: 16px;
}

.txt_content_img {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.txt_content_img img {
    width: 180px;
    height: auto;
    margin: 10px;
}

.txt_content ul{
    padding:0 15px;
}

.txt_content li{
    margin-left: 10px;
    margin-bottom: 10px;
    font-size: 16px;
}

.display_none {
    display: none;
} 




/* start ГЛАВНАЯ СТРАНИЦА */
.gl_container {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.card_container {
    margin: 20px;
    min-width: 280px;
    width: 100%;
    max-width: 400px;
    min-height: 100px;
    padding: 0 5px;
    -webkit-box-shadow: var(--my-box-shadow);
    -moz-box-shadow: var(--my-box-shadow);
    box-shadow: var(--my-box-shadow);
}

.card_container:hover {
    -webkit-box-shadow: var(--my-box-shadow-hover);
    -moz-box-shadow: var(--my-box-shadow-hover);
    box-shadow: var(--my-box-shadow-hover);
}

.card_container a {
    text-decoration: none;
}

.card {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 10px;
    box-sizing: border-box;
}

.card img {
    max-width: 90px;
    max-height: 90px;
}

.card_text {
    padding: 0 10px;
}

.card_text h3 {
    color: var(--dark);
    font-size: 16px;
    font-weight: bold;
}

/* end ГЛАВНАЯ СТРАНИЦА */

/* start menu */
.hamburger {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 100;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hamburger:hover {
    opacity: 0.8;
}

.hamburger__line {
    width: 30px;
    height: 3px;
    background: var(--dark);
    margin: 5px 0;
    transition: all 0.3s ease;
}

.hamburger.active .hamburger__line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background: var(--red);
}

.hamburger.active .hamburger__line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger__line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background: var(--red);
}

.nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 400px;
    height: 100%;
    background: var(--fff);
    transform: translateX(-100%); /* Полностью скрываем за экраном */
    transition: all 0.3s ease;
    z-index: 99;
    padding: 70px 20px 20px;
    box-sizing: border-box; /* Учитываем padding в общей ширине */
    overflow-y: auto; /* Добавляем вертикальную прокрутку */
}

.nav-menu.active {
    transform: translateX(0); /* Показываем меню */
    box-shadow: 2px 0 15px rgba(0,0,0,0.1);
}

.nav-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu ul li a {
    display: block;
    padding: 10px;
    color: var(--dark);
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-menu ul li a:hover {
    background: var(--fff_1);
    padding-left: 15px;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 98;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* end menu */



/* start table section*/
.table {
    width: 100%;
    margin-bottom: 1rem;
    color: var(--dark);
    border-collapse: collapse;
    display: table;
    text-indent: initial;
    border-spacing: 2px;
    border-color: gray;
    margin: 20px auto;
    table-layout: fixed; /* Устанавливаем фиксированное расположение для столбцов */
}

.table a{
    text-decoration: none;
}

tbody {
    display: table-row-group;
    vertical-align: middle;
    border-color: inherit;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: var(--fff);
}

.table-striped tbody tr:nth-of-type(even) {
    background-color: rgba(0, 0, 0, .05);
}

tr {
    display: table-row;
    vertical-align: inherit;
    border-color: inherit;
}

.table td {
    padding: 0.75rem;
    vertical-align: top;
    border-top: 1px solid var(--grey_1);
    text-align: left;
    word-wrap: break-word;
}

table th {
    background-color: var(--blue);
    color: var(--fff);
    text-align: center; /* Центрируем заголовки */
    padding: 0.75rem;
    vertical-align: top;
    border-top: 1px solid var(--grey_1);
    word-wrap: break-word;
}

.table td {
    text-align: left;
}

.table th:nth-child(1),
.table th:nth-child(2),
.table td:nth-child(1),
.table td:nth-child(2) {
    width: 15%; /* Устанавливаем ширину первых двух столбцов */
    text-align: center;
}

.table th:nth-child(n+3),
.table td:nth-child(n+3) {
    width: auto; /* Остальные столбцы занимают оставшееся пространство */
}
/* end table section*/


/* start button test */
.container_button_test{
    margin: 20px auto;
    text-align: center;
}
.button_test {
    border: 1px solid var(--blue);
    background-color: var(--blue);
    color: var(--fff);
    padding: 20px 50px;
    cursor: pointer;
    transition: 0.5s;
}

.button_test:hover {
    background-color: var(--fff);
    color: var(--blue);
    border-color: var(--blue);
}
/* end button test */

/* start question not answer */

.table_question_not_answer{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    margin: 10px 0;
    width: 100%;
}

.table_question_not_answer a{
    border: 1px solid var(--blue);
    padding: 10px 0;
    margin: 10px 0;
    width: 150px;
    text-align: center;
    color: var(--blue);
    transition: 0.5s;
    text-decoration: none;
}

.table_question_not_answer a:hover{
    background-color: var(--blue);
    color: var(--fff);
}



/* end question not answer */

/* start questions */

.large-checkbox {
    transform: scale(1.5); /* Увеличивает чекбокс в 2 раза */
    margin: 10px; /* Добавляет отступ для корректного отображения */
}
.q-correct {
    background: #e8f5e9;
    border-left: 4px solid var(--green_1);
    padding: 10px;
    margin: 10px 0;
}

.q-wrong {
    background: #ffebee;
    border-left: 4px solid var(--red);;
    padding: 10px;
    margin: 10px 0;
}

.a-correct {
    color: var(--green);;
    font-weight: bold;
}

.a-wrong {
    color: var(--red);;
    text-decoration: line-through;
}

.a-txt{
    color: var(--dark);
}

.q-item {
    margin-top: 20px;
    padding: 15px;
    border: 1px solid var(--grey);
}

.q-item a{
    text-decoration: none;
}


.q-number {
    font-size: 12px;
    color: #4285f4;
    margin-bottom: 10px;
}

.q-text {
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: bold;
    color: var(--dark);
    text-align: justify;
}

.q-text h1{
    margin-top: 20px;
}

.ingo_attestation{
    margin-top: 10px;
}

.ingo_attestation a{
    text-decoration: none;
    color: var(--grey_2);
    font-size: 12px;
}

.a-list {
    margin-left: 20px;
    margin-top: 10px;
}


.a-correct .label,
.a-wrong .label,
.a-txt .label,
.a-item .label 
{
    font-size: 16px;
    line-height: 1.4;
}

.button_question{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
}

.button_question a{
    text-decoration: none;
}

.btn {
    background: var(--blue);
    color: var(--fff);
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
    transition: 0.5s;
}

.btn:hover {
    background: var(--fff);
    color: var(--blue);
    border: 1px solid var(--blue);
}

.btn_next{
    background: var(--fff);
    border: 1px solid var(--grey_2);
    color: var(--grey_2);
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
    transition: 0.5s;
}

.btn_next:hover{
    background: var(--grey_2);
    color: var(--fff);
}

.answers-next{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: right;
}

.answers-next a{
    text-decoration: none;
}

small {
    color: var(--grey_2);
    font-style: italic;
}

/* end questions */

/* start timer */
.timer {
    position: fixed; /* Закрепляет элемент */
    top: 10px; /* Отступ сверху */
    right: 10px; /* Отступ справа */
    background-color: rgba(255, 255, 255, 0.8); /* Полупрозрачный фон */
    padding: 10px; /* Отступы внутри блока */
    border-radius: 5px; /* Скругленные углы */
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5); /* Тень */
    font-size: 22px; /* Размер текста */
    color: var(--red); /* Цвет текста */
    font-weight: bold; /* Полужирный текст */
}

/* end timer */

/* start modal */

.modal {
    display: none; /* Скрыть модальное окно по умолчанию */
    position: fixed; /* Остается на экране даже при прокрутке */
    z-index: 1; /* Поместить поверх других элементов */
    left: 0;
    top: 0;
    width: 100%; /* Полная ширина экрана */
    height: 100%; /* Полная высота экрана */
    overflow: auto; /* Прокрутка, если необходимо */
    background-color: rgb(0,0,0); /* Черный фон */
    background-color: rgba(0,0,0,0.4); /* Черный фон с прозрачностью */
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% сверху и авто по бокам */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Ширина модального окна */
    max-width: 600px; /* Максимальная ширина */
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* end modal */
