* {
    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;
}

.card_text_small h3 {
    color: var(--dark);
    font-size: 16px;
    font-weight: bold;
}

@media screen and (max-width: 400px) {
    .card_text_small h3 {
        font-size: 12px;
    }


}

/* 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 {
    position: relative;
    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-weight: bold;
    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_answers {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
}

.button_question a {
    text-decoration: none;
}

.button_question_item {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

/* Общие стили для всех кнопок */
.btn,
.btn_next,
.rustore-button-rustore {
    height: 44px;
    /* Фиксированная высота */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 10px 20px;
    font-size: 16px;
    margin-top: 20px;
    transition: 0.5s;
    text-decoration: none;
}

/* Специфические стили для каждой кнопки */
.btn {
    background: var(--blue);
    color: var(--fff);
    border: none;
    cursor: pointer;
}

.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);
}

.btn_next:hover {
    background: var(--grey_2);
    color: var(--fff);
}

.rustore-button-rustore {
    background: var(--blue);
    color: var(--fff);
    font-weight: bold;
    margin-left: 20px;
}

.rustore-button-rustore:hover {
    color: var(--blue);
    background: var(--fff);
    border: 1px solid var(--blue);
}

.rustore-icon-rustore {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    background: white;
    border-radius: 6px;
    border: 1px solid var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--blue);
}

.rustore-icon-rustore:hover {
    color: var(--blue);
}

small {
    color: var(--grey_2);
    font-style: italic;
}


@media (max-width: 600px) {

    .button_question {
        flex-direction: column-reverse;
    }

    .button_answers {
        flex-direction: column;
    }

    .button_question_item {
        flex-direction: column;
    }

    .rustore-button-rustore {
        margin-left: 0px;
    }
}


/* 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--- */
.exam-promo-section {
    padding: 40px 20px;
    /* background: linear-gradient(135deg, var(--fff) 0%, var(--blue) 100%); */
    background: var(--grey_1);
}

.exam-promo-container {
    max-width: 1200px;
    min-width: 280px;
    margin: 0 auto;
}

.exam-promo-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

/* --- Стили текстового блока --- */
.exam-promo-text-block {
    flex-basis: 45%;
    max-width: 500px;
}

.exam-promo-title {
    font-size: 2.0rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
}

.exam-promo-subtitle {
    font-size: 1.0rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.exam-promo-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.exam-promo-feature {
    font-size: 0.8rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.exam-promo-feature::before {
    content: '✓';
    color: var(--green);
    font-weight: bold;
    font-size: 1.2rem;
    margin-right: 10px;
}

.exam-promo-cta-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--red);
}

/* --- Стили блока с изображениями start --- */
.exam-promo-image-block {
    flex-basis: 55%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.exam-promo-phone {
    max-width: 100%;
    height: auto;
    position: absolute;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.exam-promo-phone-main {
    position: relative;
    z-index: 10;
    width: 200px;
}

.exam-promo-phone-left-top {
    width: 140px;
    top: 5%;
    left: 0;
    /* transform: translateX(-30%) rotate(-10deg); */
    transform: translateX(-20%);
    z-index: 3;
}

.exam-promo-phone-right-top {
    width: 140px;
    top: 5%;
    right: 0;
    /* transform: translateX(20%) rotate(5deg); */
    transform: translateX(20%);
    z-index: 3;
}

.exam-promo-phone-left-bottom {
    width: 120px;
    bottom: 15%;
    left: 10%;
    /* transform: translateX(-60%) rotate(-15deg); */
    transform: translateX(50%);
    z-index: 4;
}

.exam-promo-phone-right-bottom {
    width: 120px;
    bottom: 15%;
    right: 10%;
    /* transform: translateX(50%) rotate(12deg); */
    transform: translateX(-50%);
    z-index: 2;
}

/* --- Адаптивность --- */
@media (max-width: 992px) {
    .exam-promo-content {
        flex-direction: column;
        text-align: center;
        flex-direction: column-reverse;
    }

    .exam-promo-text-block {
        margin-bottom: 40px;
        max-width: 100%;
    }

    .exam-promo-features {
        display: inline-block;
        text-align: left;
        margin-bottom: 30px;
    }

    .exam-promo-image-block {
        min-height: auto;
        width: 80%;
        margin: 0 auto;
    }

    .exam-promo-phone {
        position: relative;
        transform: none !important;
    }

    .exam-promo-phone-left-top {
        left: auto;
        top: auto;
        margin-right: -40px;
    }

    .exam-promo-phone-left-bottom {
        left: auto;
        bottom: auto;
        margin-right: -60px;
    }

    .exam-promo-phone-right-top {
        right: auto;
        top: auto;
        margin-left: -40px;
    }

    .exam-promo-phone-right-bottom {
        right: auto;
        bottom: auto;
        margin-left: -60px;
    }

    .exam-promo-phone-main {
        width: 180px;
    }

    .exam-promo-phone-left-top {
        width: 120px;
    }

    .exam-promo-phone-left-bottom {
        width: 100px;
    }

    .exam-promo-phone-right-top {
        width: 120px;
    }

    .exam-promo-phone-right-bottom {
        width: 100px;
    }
}

@media (max-width: 576px) {
    .exam-promo-title {
        font-size: 1.8rem;
    }

    .exam-promo-subtitle {
        font-size: 1rem;
    }

    .exam-promo-features {
        margin-bottom: 20px;
    }

    .exam-promo-cta-text {
        font-size: 1.1rem;
    }

    .exam-promo-image-block {
        width: 90%;
    }

    .exam-promo-phone-main {
        width: 150px;
    }

    .exam-promo-phone-left-top {
        width: 100px;
        margin-right: -10px;
    }

    .exam-promo-phone-left-bottom {
        width: 80px;
        margin-right: -30px;
    }

    .exam-promo-phone-right-top {
        width: 120px;
        margin-left: -20px;
    }

    .exam-promo-phone-right-bottom {
        width: 90px;
        margin-left: -30px;
    }

    @media (max-width: 470px) {
        .exam-promo-phone-left-top {
            display: none;
        }

        .exam-promo-phone-left-bottom {
            display: none;
        }

        .exam-promo-phone-right-top {
            display: none;
        }

        .exam-promo-phone-right-bottom {
            display: none;
        }
    }
}

/* Добавленные стили для кнопок */
.exam-promo-buttons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.rustore-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2D62ED 0%, #3B7CED 100%);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(45, 98, 237, 0.3);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.rustore-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(45, 98, 237, 0.4);
    background: linear-gradient(135deg, #3B7CED 0%, #2D62ED 100%);
}

.rustore-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(45, 98, 237, 0.3);
}

.rustore-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    background: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #2D62ED;
}



/* Адаптивность для кнопок */
@media (max-width: 992px) {
    .exam-promo-buttons {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .exam-promo-buttons {
        gap: 10px;
    }

    .app-store-btn,
    .google-play-btn {
        height: 35px;
    }

    .app-store-btn img,
    .google-play-btn img {
        height: 35px;
    }
}

@media (max-width: 370px) {
    .exam-promo-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* --- Стили секции промо end --- */

/* ---telegram start --- */
.telegram-link {
    display: flex;
    justify-content:start;
    align-items: center;
    text-decoration: none;
    color: #0088cc;
    font-size: 12px;
    font-weight: bold;
    margin-top: 10px;
}

.telegram-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

.telegram-text {
    font-weight: 500;
}

/* ---telegram end --- */

/* Стили для блока с иконками start*/
.question-actions {
  position: absolute;
  top: 15px;
  right: 15px;
  display: flex;
  gap: 10px;
}

/* Стили для кнопок с иконками */
.favorite-btn,
.shuffle-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.favorite-btn svg,
.shuffle-btn svg {
  fill: var(--grey_2);
  transition: fill 0.3s ease;
}

.favorite-btn:hover svg,
.shuffle-btn:hover svg {
  fill: var(--blue);
}

/* Стили для модального окна */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  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;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 600px;
  position: relative;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

/* Стили для блока с иконками end*/
