body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 0;
        }

        h1 {
            font-family: serif;
        }

        .t_container {
            max-width: 900px;
            margin: 20px auto;
            background: #fff;
            padding: 30px;
            border: 1px solid #e0e0e0;
        }

       .workarea input[type=checkbox]:not(:checked)+label,.workarea input[type=checkbox]:checked+label{
            cursor:pointer;
            padding-left:35px;
            line-height:15px;
			font-weight: normal;
       }

        .workarea input[type=checkbox]:not(:checked)+label:before,.workarea input[type=checkbox]:checked+label:before {
            content:"";
            position:absolute;
            left:0;
			top: 50%;
            height:20px;
            width:20px;
            border:1px solid #5C5C5C;
            border-radius:2px;
            cursor:pointer;
            z-index:5;
            background:#fff
        }

        .question {
            background: #fff;
            padding: 15px 0;
            margin: 15px 0;
            display: none;
            border-top: 1px solid #eee;
            padding-top: 25px;
        }
        .question.active {
            display: block;
        }
        .question-text {
            font-size: 1.2em;
            font-weight: bold;
            color: #333;
            margin-bottom: 20px;
        }
        .question-number {
            color: #94C11C;
        }
        .chk_info {
            color: #555;
            font-style: italic;
            margin-bottom: 15px;
            display: block;
        }
        .options {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        .option {
            display: flex;
            align-items: center;
            padding: 12px;
            border: 1px solid #e0e0e0;
            border-radius: 5px;
            cursor: pointer;
            transition: all 0.2s;
            background-color: #f7f7f7;
        }
        .option:hover {
            background: #f0f0f0;
			border-color: #8C8C8C;
        }
        .option input {
            opacity: 0;
            position: absolute;
            width: 0;
            height: 0;
        }
        .option label {
            flex: 1;
            font-size: 1em;
            cursor: pointer;
            position: relative;
            padding-left: 35px;
            min-height: 22px;
            display: flex;
            align-items: center;
        }
        .option label.cb-label::before {
            content: '';
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 20px;
            height: 20px;
            border: 1px solid #ccc;
            background: #fff;
            border-radius: 3px;
            transition: all 0.2s;
        }
        .option input[type="checkbox"]:checked + label.cb-label::before {
            background-color: #fff;
            border-color: #8dc63f;
        }
        .option label.cb-label::after {
            content: '\2713';
            position: absolute;
            left: 4px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 16px;
            color: #555;
            font-weight: bold;
            display: none;
        }
        .option input[type="checkbox"]:checked + label.cb-label::after {
            display: block;
            top: 50%;
        }
        .option label.rb-label::before {
            content: '';
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 20px;
            height: 20px;
            border: 1px solid #ccc;
            background: #fff;
            border-radius: 50%;
        }
        .option label.rb-label::after {
            content: '';
            position: absolute;
            left: 5px;
            top: 50%;
            transform: translateY(-50%);
            width: 12px;
            height: 12px;
            background-color: #555;
            border-radius: 50%;
            display: none;
        }
        .option input[type="radio"]:checked + label.rb-label::after {
            display: block;
        }

        .feedback {
            margin-top: 20px;
            padding: 15px;
            border-radius: 5px;
            font-size: 0.95em;
            display: none;
            border: 1px solid;
            color: #333;
            line-height: 1.5;
        }
        .feedback strong {
             display: block;
             margin-bottom: 2px;
             font-size: 1.1em;
             font-weight: bold;
        }
        .correct {
            background: #eaf3dc;
            border-color: #3c763d;
        }

        .correct_strong {
            font-size: 13pt;
            font-weight: bold;
            color: #3c763d;
        }

        .incorrect {
            background: #fdeeee;
            border-color: #e57373;
        }

        .incorrect_strong {
            font-size: 13pt;
            font-weight: bold;
            color: #d9534f;
        }

        .feedback ul {
            padding-left: 20px;
            margin-top: 10px;
            list-style: none;
        }
        .feedback ul li {
            position: relative;
            padding-left: 15px;
            margin-bottom: 5px;
        }
        .feedback ul li:last-child {
            margin-bottom: 0;
        }
        .score {
            position: sticky;
            top: 1mm;
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            padding: 20px;
            background: #94C11C;
            color: #fff;
            border-radius: 5px;
            margin-bottom: 20px;
            font-size: 1em;
            flex-wrap: wrap;
            gap: 15px;
            height: 115px;
			z-index: 1;
            margin-top: 0; /* Удалено, так как top: 1mm теперь управляет позицией */
        }
        .score-text {
            line-height: 1.4;
            min-width: 200px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            height: 100%;
        }
        .score-text div {
            padding-left: 20px;
        }
        .score-text span {
            font-weight: normal;
        }
        .button-wrapper {
            text-align: center;
            margin-top: 25px;
        }
        .t_button {
            background: #8dc63f;
            color: #fff;
            padding: 12px 30px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 1.1em;
            display: inline-block;
            transition: background 0.3s;
            font-weight: bold;
        }
        .t_button:not(.disabled):hover {
            background: #e67e22;
        }
        .t_button.disabled {
            background-color: #aed581;
            cursor: not-allowed;
        }

        .retry-button {
            background: transparent;
            border: 1px solid transparent;
            padding: 8px 16px;
            font-size: 0.9em;
            border-radius: 5px;
            cursor: pointer;
            color: #fff;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: background 0.3s, border-color 0.3s;
            width: 160px;
            height: 36px;
        }
        .retry-button:hover {
            background: rgba(0, 0, 0, 0.15);
            border: 1px solid #fff;
        }
        .retry-icon {
            font-size: 1.2em;
            color: #fff;
            font-weight: bold;
        }
        .score-buttons {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 10px;
            min-width: 100px;
            justify-content: flex-start;
            height: 100%;
        }
        .score-buttons .t_button {
            background: #94C11C;
        }
        .score-buttons .t_button:hover {
            background: #e67e22;
        }
        .certificate-form {
            display: block;
            text-align: center;
            margin: 50px auto 0 auto;
            padding: 0;
            background: none;
            box-shadow: none;
            border-radius: 0;
            border: none;
        }
        .certificate-form h3 {
            font-size: 1.25em;
            font-weight: bold;
            font-style: italic;
            margin-bottom: 13px;
            color: #222;
        }
        .certificate-form .success {
            font-size: 1.15em;
            font-weight: bold;
            font-style: italic;
            margin-bottom: 22.5px; /* Увеличено в 1,5 раза относительно исходного 15px */
            color: #222;
        }
       .certificate-form .prompt {
    margin-bottom: 16px;
    font-size: 1.05em;
    color: #353535;
    font-weight: normal;
}

.certificate-form input[type="text"] {
    display: block;
    margin: 0 auto 16px auto;
    width: 98%;
    max-width: 370px;
    padding: 10px 14px;
    font-size: 1.08em;
    border-radius: 8px;
    border: 1px solid #bdbdbd; /* изменено с #f1fad4 на #bdbdbd */
    outline: none;
    background: #fcfff2;
    color: #94c11c;
    box-sizing: border-box;
    transition: border-color 0.15s;
    text-align: left;
    font-weight: 400;
}

.certificate-form input[type="text"]:focus {
    border-color: #94c11c;
    background: #fff;
    color: #000;
}

.certificate-form .t_button {
    background: #94c11c;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 1em;
    padding: 13px 45px;
    cursor: pointer;
    margin-top: 16px; /* изменено с 8px на 16px */
    box-shadow: none;
    transition: background 0.18s;
    display: inline-block;
}
        .certificate-form .t_button:hover,
        .certificate-form .t_button:focus {
            background: #8dc63f;
        }
        .reference {
            margin-top: 10px;
            padding: 20px;
            border: 1px solid #f9a825;
            border-radius: 5px;
        }
        .reference-header {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 15px;
        }
		.prim_sit {
            position: relative;
            top: 2.1mm;
            margin: 0;
        }
        .info-icon {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 22px;
            height: 22px;
            background-color: #f9a825;
            color: white;
            border-radius: 50%;
            font-weight: bold;
            font-style: italic;
            font-family: 'Times New Roman', serif;
            font-size: 1.1em;
            flex-shrink: 0;
        }
        .reference h3 {
            color: #333;
            margin: 0;
            font-size: 1.2em;
            font-weight: bold;
            font-style: italic;
        }
        .reference p {
            margin: 0 0 15px 0;
        }
        .reference ul {
            list-style-type: none;
            padding-left: 5px;
            margin: 0;
        }
        .reference li {
            margin-bottom: 10px;
            font-size: 0.95em;
            padding-left: 25px;
            position: relative;
            line-height: 1.1;
        }
        .reference li:last-child {
            margin-bottom: 0;
        }
        .reference li::before {
            content: '\2022';
            color: #f9a825;
            font-size: 1.4em;
            position: absolute;
            left: 0;
            top: -2px;
        }
        a.t_a {
            color: #0056b3;
            text-decoration: none;
            font-weight: normal;
        }
        a.t_a:hover {
            text-decoration: underline;
        }

        .t_button.next-button {
            background: #94C11C;
            border: 2px solid #fff;
            color: #fff;
            padding: 8px 16px;
            font-size: 0.9em;
            border-radius: 5px;
            cursor: pointer;
            font-weight: bold;
            width: 160px;
            height: 36px;
            transition: background 0.3s;
            margin-top: auto;
        }
        .t_button.next-button:hover {
            background: rgba(0, 0, 0, 0.15);
        }

        /* --- Стили для мобильной версии (max-width: 600px) --- */
        @media (max-width: 600px) {
            .t_container {
                padding: 15px;
            }
            .score {
                flex-direction: column;
                align-items: flex-start;
                min-height: 120px;
                height: auto;
            }
            .score-text {
                min-width: unset;
                width: 100%;
                height: auto;
            }
            .score-buttons {
                align-items: flex-start;
                flex-direction: row;
                flex-wrap: wrap;
                gap: 5px;
                width: 100%;
                min-width: unset;
                height: auto;
            }
            .retry-button,
            .t_button.next-button {
                width: 48%;
                max-width: 180px;
                font-size: 0.85em;
                padding: 8px 10px;
                text-align: center;
                box-sizing: border-box;
            }
            
            /* СОХРАНЯЕМ ИСХОДНЫЕ СТИЛИ HOVER ДЛЯ КНОПОК В МОБИЛЬНОЙ ВЕРСИИ */
            /* Кнопка "Пройти заново" (Retry Button) */
            .retry-button:hover {
                /* background: rgba(0, 0, 0, 0.15); - уже был, но его нужно сохранить */
                background: rgba(0, 0, 0, 0.15);
                /* border: 1px solid #fff; - рамка, которую вы просили */
                border: 1px solid #fff;
            }
            
            /* Кнопка "Далее" (Next Button) */
            .t_button.next-button:hover {
                 /* background: rgba(0, 0, 0, 0.15); - это более темный цвет, который вы просили (он уже был в базовой версии) */
                 background: rgba(0, 0, 0, 0.15);
            }
            
            /* Дополнительно: стили при активном нажатии для лучшей обратной связи на сенсорных устройствах */
            .retry-button:active {
                background: rgba(0, 0, 0, 0.3);
                border: 1px solid #fff;
            }
            .t_button.next-button:active {
                background: rgba(0, 0, 0, 0.3);
            }
        }