.gibdd-exam {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    min-width: 320px;
}

.gibdd-exam__wrapper {
    position: relative;
    background-color: #f3f3f3;
    padding-top: 20px;
    margin-top: -20px;
}

@media (max-width: 740px) {
    .gibdd-exam__wrapper {
        margin-top: -10px;
        padding-top: 5px;
    }
}

body.dark .gibdd-exam__wrapper {
    background-color: #000;
}

.gibdd-exam__upline {
    padding: 0 30px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.gibdd-exam__qs-zone {
    margin-bottom: 20px;
}

.gibdd-exam__qs-zone.true {
    background-color: #04ab04;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gibdd-exam__qs-zone.false {
    background-color: #fb1212;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}



.gibdd-exam__bilet-choice {
    text-align: center;
    display: flex;
    flex-direction: column;
    padding: 0 30px;
    width: 100%;
}

@media (max-width: 680px) {
    .gibdd-exam__bilet-choice {
        padding: 0 15px;
    }
}

.gibdd-exam__bilet-all-qs-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

@media (max-width: 471px) {
    .gibdd-exam__bilet-all-qs-wrapper {
        flex-direction: column-reverse;
    }
}


.gibdd-exam__bilet-list-zone,
.gibdd-exam__dop-bilet-list-zone {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 30px;
}

.gibdd-exam__dop-bilet-list-zone .gibdd-exam__bilet-list {
    min-width: 200px;
    max-width: 20%;
}

@media (max-width: 1200px) {
    .gibdd-exam__dop-bilet-list-zone .gibdd-exam__bilet-list {
        min-width: 180px;
    }
}

@media (max-width: 1170px) {
    .gibdd-exam__dop-bilet-list-zone .gibdd-exam__bilet-list {
        min-width: 150px;
    }
}

@media (max-width: 900px) {
    .gibdd-exam__dop-bilet-list-zone .gibdd-exam__bilet-list {
        min-width: 200px;
        margin-bottom: 5px;
    }
}

@media (max-width: 690px) {
    .gibdd-exam__dop-bilet-list-zone .gibdd-exam__bilet-list {
        min-width: 180px;
    }
}

@media (max-width: 605px) {
    .gibdd-exam__dop-bilet-list-zone {
        flex-wrap: wrap;
    }
    
    .gibdd-exam__dop-bilet-list-zone .gibdd-exam__bilet-list {
        min-width: 240px;
    }
}

@media (max-width: 471px) {
    .gibdd-exam__dop-bilet-list-zone .gibdd-exam__bilet-list {
        width: 100%;
        max-width: 100%;
    }
}

.gibdd-exam__dop-bilet-list-zone .gibdd-exam__bilet-list-item {
    height: 150px;
}

@media (max-width: 980px) {
    .gibdd-exam__dop-bilet-list-zone .gibdd-exam__bilet-list-item {
        height: 130px;
    }
}

@media (max-width: 605px) {
    .gibdd-exam__dop-bilet-list-zone .gibdd-exam__bilet-list-item {
        height: 240px;
    }

    .gibdd-exam__dop-bilet-list-zone .gibdd-exam__bilet-list-item .gibdd-exam__question {
        font-size: 14px;
    }
}


.gibdd-exam__dop-bilet-list-zone .gibdd-exam__question {
    font-size: 14px;
}

.gibdd-exam__dop-bilet-list-zone {
    width: min-content;
}

@media (max-width: 471px) {
    .gibdd-exam__dop-bilet-list-zone {
        width: 100%;
    }
}

/* Стили, когда появляются дополнительные вопросы */
.gibdd-exam__bilet-list-zone.small-tabs {
    margin-right: 20px;
    flex-grow: 1;
} 

@media (max-width: 1170px) {
    .gibdd-exam__bilet-list-zone.small-tabs {
        margin-right: 5px;
    }
}

@media (max-width: 900px) {
    .gibdd-exam__bilet-list-zone.small-tabs {
        flex-wrap: wrap;
    }
}

.gibdd-exam__bilet-list-zone.small-tabs .gibdd-exam__bilet-list {
    max-width: 20%;
    min-width: 180px;
} 

@media (max-width: 1170px) {
    .gibdd-exam__bilet-list-zone.small-tabs .gibdd-exam__bilet-list {
        min-width: 150px;
    }
}

@media (max-width: 980px) {
    .gibdd-exam__bilet-list-zone.small-tabs .gibdd-exam__bilet-list {
        min-width: 130px;
    }
}

@media (max-width: 900px) {
    .gibdd-exam__bilet-list-zone.small-tabs .gibdd-exam__bilet-list {
        min-width: 200px;
        margin-bottom: 5px;
    }
}

@media (max-width: 690px) {
    .gibdd-exam__bilet-list-zone.small-tabs .gibdd-exam__bilet-list {
        min-width: 180px;
    }
}

.gibdd-exam__bilet-list-zone.small-tabs .gibdd-exam__bilet-list-item {
    height: 150px;
} 

@media (max-width: 980px) {
    .gibdd-exam__bilet-list-zone.small-tabs .gibdd-exam__bilet-list-item {
        height: 130px;
    } 
}

.gibdd-exam__bilet-list-zone.small-tabs .gibdd-exam__question {
    font-size: 14px; 
}

@media (max-width: 980px) {
    .gibdd-exam__bilet-list-zone.small-tabs .gibdd-exam__question {
        font-size: 12px; 
    }
}


@media (max-width: 580px) {
    .gibdd-exam__bilet-list-zone {
        flex-wrap: wrap;
    }
}

.gibdd-exam__dop-bilet-list-zone h2 {
    width: 100%;
}

.gibdd-exam__bilet-list {
    max-width: 22%;
    border: 2px solid gray;
    border-radius: 10px;
    margin: 0 5px;
    overflow: hidden;
    border-width: 3px!important;
}

@media (max-width: 990px) {
    .gibdd-exam__bilet-list {
        max-width: 24%;
    }
}

@media (max-width: 580px) {
    .gibdd-exam__bilet-list {
        max-width: 45%;
        margin-bottom: 20px;
    }
}

/* @media (max-width: 420px) {
    .gibdd-exam__bilet-list {
        max-width: 98%;
    }
} */

.gibdd-exam__bilet-list:nth-child(1),
.gibdd-exam__bilet-list:nth-child(1) .gibdd-exam__bilet-list-item {
    border: 2px solid green;
}

.gibdd-exam__bilet-list:nth-child(2),
.gibdd-exam__bilet-list:nth-child(2) .gibdd-exam__bilet-list-item {
    border: 2px solid blueviolet;
}

.gibdd-exam__bilet-list:nth-child(3),
.gibdd-exam__bilet-list:nth-child(3) .gibdd-exam__bilet-list-item {
    border: 2px solid blue;
}

.gibdd-exam__bilet-list:nth-child(4),
.gibdd-exam__bilet-list:nth-child(4) .gibdd-exam__bilet-list-item{
    border: 2px solid yellow;
}

.gibdd-exam__bilet-list-item {
    height: 212px;
    overflow: hidden;
    background-color: #bfbfbf;
    position: relative;
    opacity: 0.5;
}

@media (max-width: 990px) {
    .gibdd-exam__bilet-list-item {
        height: 150px;
    }
}

@media (max-width: 690px) {
    .gibdd-exam__bilet-list-item {
        height: 115px;
    }
}

@media (max-width: 580px) {
    .gibdd-exam__bilet-list-item {
        height: 185px;
    }
}

@media (max-width: 420px) {
    .gibdd-exam__bilet-list-item {
        height: 145px;
    }
}

.gibdd-exam__bilet-count {
    position: absolute;
    left: 0;
    top: 0;
    background-color: white;
    padding: 2px;
}

.gibdd-exam__bilet-list-item:hover,
.gibdd-exam__bilet-list-item:focus {
    border-width: 5px!important;
    cursor: pointer;
}

.gibdd-exam__bilet-list-item:last-child {
    margin-bottom: 0;
}

.gibdd-exam__bilet-list-item.not-answer {
    background-color: white;
    opacity: 1;
}

body.dark .gibdd-exam__bilet-list-item.not-answer {
    background-color: #2c2c2c;
}

.gibdd-exam__bilet-list-item.show-answer {
    opacity: 1;
}

.gibdd-exam__bilet-list-item.focus {
    border-width: 5px!important;
}

.gibdd-exam__img-zone {
    text-align: center;
}

.gibdd-exam__img {
    max-height: 110px;
}

.gibdd-exam__question {
    padding: 5px;
    margin: 0;
    font-size: 16px;
}

@media (max-width: 680px) {
    .gibdd-exam__bilet-list .gibdd-exam__question {
        font-size: 8px;
    }
}

@media (max-width: 580px) {
    .gibdd-exam__bilet-list .gibdd-exam__question {
        font-size: 16px;
    }
}

@media (max-width: 420px) {
    .gibdd-exam__bilet-list .gibdd-exam__question {
        font-size: 12px;
    }
}

.gibdd-exam__show_result {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #f7fb12;
    padding: 5px 39px;
}

.gibdd-exam__show_result.true {
    background-color: #04ab04;
}

.gibdd-exam__show_result.false {
    background-color: #fb1212;
}

.gibdd-exam__qs-num-list {
    display: flex;
    list-style: none;
    width: 100%;
    margin: 0;
    padding: 0;
    padding-right: 10px;
    flex-wrap: wrap;
}

.gibdd-exam__qs-num-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    font-size: 16px;
    margin: 3px;
    border: 1px solid #B0B0B0;
    background-color: #fff;
    outline: none;
}

@media (max-width: 1151px) {
    .gibdd-exam__qs-num-btn {
        width: 20px;
        height: 20px;
    }
}

.gibdd-exam__qs-num-btn.answer {
    background-color: #bfbfbf;
}

.gibdd-exam__bilet-zone {
    width: 100%;
    margin: 0 auto;
    border: 1px solid #eae8e8;
    border-radius: 10px;
    margin: 0 auto;
    margin-bottom: 20px;
    background-color: white;
    padding: 15px 20px;
}

body.dark .gibdd-exam__bilet-zone {
    border: 1px solid #4e4e4e;
    background-color: #2c2c2c;
}

.bilet__img-zone {
    max-width: 700px;
    margin: 0 auto;
}

.bilet__down-btns {
    display: flex;
    justify-content: space-between;
    position: relative;
    flex-wrap: wrap;
}

@media (max-width: 885px) {
    .bilet__down-btns {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 632px) {
    .bilet__down-btns {
        justify-content: space-between;
    }
}

@media (max-width: 467px) {
    .bilet__down-btns {
        justify-content: center;
    }
}

.bilet__down-answer-err {
    position: absolute;
    top: -47px;
    left: 3px;
    background-color: #cdc7c7;
    padding: 5px;
    border-radius: 5px;
    opacity: 0.8;
    font-size: 14px;
}

.bilet__down-btns-right-column {
    display: flex;
}

@media (max-width: 632px) {
    .bilet__down-btns-right-column {
        flex-direction: column;
    }
}


.bilet__down-btn {
    background: #00d1ff;
    box-shadow: 0 4px 4px rgba(0,0,0,.25);
    display: block;
    height: 59px;
    min-width: 186px;
    border: none;
    cursor: pointer;
    margin: 0 5px;
    margin-bottom: 20px;
}

@media (max-width: 467px) {
    .bilet__down-btn {
        width: 90%;
    }
}

@media (max-width: 885px) {
    .bilet__down-btn.answer {
        margin-bottom: 55px;
    }
}

@media (hover: hover) {
    .bilet__answer-btn:hover, .bilet__answer-btn:focus {
        background-color: #c4c4c4;
    }
}

.bilet__down-btn span {
    font-size: 14px;
}

.bilet__answer-btn {
    padding: 25px 18px;
    padding-left: 35px;
}

.bilet__answer-btn.active {
    background-color: #02a1b1;
}

.gibdd-exam__result-popap-zone {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0c0c0c6b;
}

.gibdd-exam__result-popap {
    display: block;
    position: absolute;
    width: 680px;
    /* left: 50%;
    margin-left: -340px; */
    box-shadow: 0 4px 4px rgba(0,0,0,.25);
    padding: 20px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: green;
}

.gibdd-exam__result-hint-popap {
    position: absolute;
    top: calc(50% + 170px);
    left: 50%;
    transform: translate(-50%, 8px);
    width: 620px;
    background: #fff;
    color: #1a1a1a;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
    padding: 14px 16px;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.gibdd-exam__result-hint-popap.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.gibdd-exam__result-hint-popap__text {
    margin: 0;
    font-size: 17px;
    line-height: 1.45;
}

.gibdd-exam__result-hint-popap__text a {
    color: #0c4e85;
    font-weight: 600;
    text-decoration: underline;
}

.gibdd-exam__result-hint-popap__arrow {
    position: absolute;
    left: -74px;
    top: -178px;
    width: 320px;
    height: 220px;
    transform: none;
    pointer-events: none;
}

.gibdd-exam__result-hint-popap__arrow svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.gibdd-exam__result-hint-popap__arrow-line {
    fill: none;
    stroke: #ffffff;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25));
}

@media (max-width: 900px) {
    .gibdd-exam__result-popap {
        width: 90%;
    }

    .gibdd-exam__result-hint-popap {
        width: min(86vw, 560px);
        top: calc(50% + 158px);
        padding: 12px 14px;
    }

    .gibdd-exam__result-hint-popap__text {
        font-size: 16px;
    }

    .gibdd-exam__result-hint-popap__arrow {
        left: -52px;
        top: -164px;
        width: 270px;
        height: 180px;
    }

    .gibdd-exam__result-hint-popap__arrow-line {
        stroke-width: 2.8;
    }
}

@media (max-width: 680px) {
    .gibdd-exam__result-popap {
        width: 90%;
    }

    .gibdd-exam__result-hint-popap {
        width: 90%;
        top: calc(50% + 162px);
        left: 50%;
        transform: translate(-50%, 8px);
        padding: 12px;
    }

    .gibdd-exam__result-hint-popap__text {
        font-size: 15px;
    }

    .gibdd-exam__result-hint-popap__arrow {
        left: -26px;
        top: -134px;
        width: 220px;
        height: 146px;
        transform: none;
    }
}

@media (max-width: 520px) {
    .gibdd-exam__result-popap {
        width: 94%;
        padding: 16px 12px;
    }

    .gibdd-exam__result-popap__main-text {
        font-size: 38px;
    }

    .gibdd-exam__result-hint-popap {
        width: 92%;
        top: calc(50% + 178px);
        padding: 10px 12px;
    }

    .gibdd-exam__result-hint-popap__text {
        font-size: 14px;
        line-height: 1.4;
    }

    .gibdd-exam__result-hint-popap__arrow {
        left: -8px;
        top: -112px;
        width: 184px;
        height: 122px;
    }

    .gibdd-exam__result-hint-popap__arrow-line {
        stroke-width: 2.4;
    }
}

.gibdd-exam__result-popap.false {
    background-color: red;
}

.gibdd-exam__result-popap.true {
    background-color: green;
}

.gibdd-exam__result-popap.dop {
    background-color: #d3cc00;
}

.gibdd-exam__result-popap__main-text {
    font-size: 45px;
    text-transform: uppercase;
}

.gibdd-exam__result-popap__pddexam-text {
    padding: 5px;
    margin: 0 auto;
    background: #ffffff8a;
    width: max-content;
    border-radius: 5px;
    position: absolute;
    top: 3px;
    right: 3px;
    font-size: 15px;
}

@media (max-width: 400px) {
    .gibdd-exam__result-popap__main-text {
        font-size: 35px;
    }

    .gibdd-exam__result-popap__text {
        font-size: 16px;
    }
}

.timer {
    display: flex;
}

.timer__controlls {
    position:static;
    margin-left: 10px;
}

.timer__display-remain-time {
    color: #0a0a0a;
    font-size: 22px;
}

.gibdd-exam__start-screen {
    position: relative;
    border: 1px solid #eae8e8;
    border-radius: 10px;
    margin: 0 auto;
    margin-bottom: 20px;
    background-color: white;
} 

body.dark .gibdd-exam__start-screen {
    border: 1px solid #4e4e4e;
    background-color: #2c2c2c;
}

.gibdd-exam__start-screen h2 {
    text-align: center;
    margin: 0;
    margin-bottom: 10px;
}

.gibdd-exam__upline-info {
    margin-bottom: 30px;
}

.gibdd-exam__upline-info p{
    text-align: center;
    margin: 0;
    padding: 0;
    text-transform: uppercase;
    text-decoration: underline;
    margin-bottom: 10px;
}

.gibdd-exam__text p {
    text-align: center;
}

@media (max-width: 860px) {
    .sticky.gibdd-exam__text {
        position: sticky;
        bottom: 0;
        background: #fff;
        box-shadow: 0px -24px 12px -19px rgba(0,0,0,0.17);
    }
}


.gibdd-exam__table-wrapper {
    width: 100%;
    margin-bottom: 30px;
}

@media (max-width: 470px) {
    .gibdd-exam__table-wrapper{
        display: block;
        width: 100%;
        overflow-x: scroll;
    }
}

.gibdd-exam__table-td-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.gibdd-exam__table-td-wrapper img {
    margin: 0;
    margin-left: 5px;
    padding: 0;
}

.gibdd-exam__start-screen-table {
    margin: 0 auto;
    border-collapse: collapse;
}

.gibdd-exam__start-screen-table td {
    border-bottom: 2px solid black;
    padding: 10px 10px;
}

.gibdd-exam__start-screen-table td:nth-child(2),
.gibdd-exam__start-screen-table td:nth-child(1) {
    border-right: 1px solid black;
}

.gibdd-exam__start-screen-btn {
    background: #00d1ff;
    box-shadow: 0 4px 4px rgba(0,0,0,.25);
    display: block;
    height: 35px;
    min-width: 106px;
    border: none;
    cursor: pointer;
    margin: 0 5px;
    font-size: 16px;
}

/* Стили для кнопки помощи */
.help-button-container {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
}

.help-button {
    background: #cfcfcf;
    color: #5a5a5a;
    border: 1px solid #dee2e6;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 400;
    transition: all 0.2s ease;
}

.help-button:hover {
    background: #f8f9fa;
    color: #495057;
    border-color: #adb5bd;
}

.help-button:active {
    background: #e9ecef;
}

/* Стили для попапа */
.help-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.help-popup.show {
    display: flex;
}

.help-popup-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    max-width: 400px;
    max-height: 90vh;
    margin: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: popupAppear 0.3s ease;
    position: relative;
    overflow-y: auto;
}

.help-popup-content p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
}

.help-popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.help-popup-close:hover {
    background: #f0f0f0;
    color: #333;
}

.help-popup-close:active {
    background: #e0e0e0;
}

@keyframes popupAppear {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Темная тема */
body.dark .help-button {
    color: #adb5bd;
    border-color: #495057;
}

body.dark .help-button:hover {
    background: #343a40;
    color: #fff;
    border-color: #6c757d;
}

body.dark .help-button:active {
    background: #495057;
}

body.dark .help-popup-content {
    background: #2c2c2c;
    color: #fff;
}

body.dark .help-popup-content p {
    color: #fff;
}

body.dark .help-popup-close {
    color: #ccc;
}

body.dark .help-popup-close:hover {
    background: #444;
    color: #fff;
}

body.dark .help-popup-close:active {
    background: #555;
}

.gibdd-exam__faq-popup-content {
    max-width: 600px;
    text-align: left;
}

.gibdd-exam__faq-title {
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
    font-size: 20px;
}

.gibdd-exam__faq-item {
    margin-bottom: 20px;
}

.gibdd-exam__faq-item:last-child {
    margin-bottom: 0;
}

.gibdd-exam__faq-item-title {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    display: flex;
    align-items: center;
    gap: 5px;
}

.gibdd-exam__faq-item-title img {
    flex-shrink: 0;
}

.gibdd-exam__faq-item-text {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

body.dark .gibdd-exam__faq-item-title {
    color: #fff;
}

body.dark .gibdd-exam__faq-item-text {
    color: #ccc;
}

.gibdd-exam__popup-understand-btn {
    margin-top: 20px;
    padding: 10px 30px;
    background: #00d1ff;
    color: #000;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 4px 4px rgba(0,0,0,.25);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.gibdd-exam__faq-popup-content .gibdd-exam__popup-understand-btn {
    margin-left: 0;
}

.gibdd-exam__popup-understand-btn:hover {
    background: #00b8e6;
    box-shadow: 0 6px 6px rgba(0,0,0,.3);
}

.gibdd-exam__popup-understand-btn:active {
    background: #00a5d1;
    box-shadow: 0 2px 2px rgba(0,0,0,.25);
    transform: translateY(1px);
}

body.dark .gibdd-exam__popup-understand-btn {
    background: #1d6d9a;
    color: #fff;
}

body.dark .gibdd-exam__popup-understand-btn:hover {
    background: #135880;
}

body.dark .gibdd-exam__popup-understand-btn:active {
    background: #0f4a6a;
}

/* Скрытие кнопки при начале экзамена */
.help-button-container.hidden {
    display: none;
}

.help-popup a {
    color: #115884;
}

.main__tg-zone {
    display: none
}

/* Стили для кнопки "Запустить заново" */
.gibdd-exam__restart-button-container {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
}

.gibdd-exam__restart-button {
    background: #00d1ff;
    color: #000;
    border: none;
    border-radius: 5px;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 4px rgba(0,0,0,.25);
    min-width: 200px;
}

.gibdd-exam__restart-button:hover {
    background: #00b8e6;
    box-shadow: 0 6px 6px rgba(0,0,0,.3);
}

.gibdd-exam__restart-button:active {
    background: #00a5d1;
    box-shadow: 0 2px 2px rgba(0,0,0,.25);
    transform: translateY(1px);
}

body.dark .gibdd-exam__restart-button {
    background: #1d6d9a;
    color: #fff;
}

body.dark .gibdd-exam__restart-button:hover {
    background: #135880;
}

body.dark .gibdd-exam__restart-button:active {
    background: #0f4a6a;
}

@media (max-width: 600px) {
    .gibdd-exam__restart-button {
        padding: 12px 30px;
        font-size: 16px;
        min-width: 180px;
    }
}

/* Подсказка «Разверните на весь экран» (показ один раз) */
.gibdd-exam__fullscreen-hint {
    position: absolute;
    right: 60px;
    top: -32px;
    z-index: 20;
    max-width: 260px;
    padding: 12px 36px 12px 14px;
    background: #1a1a1a;
    color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    font-size: 14px;
    line-height: 1.4;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-out;
}

.gibdd-exam__fullscreen-hint.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.gibdd-exam__fullscreen-hint-text {
    display: block;
}

.gibdd-exam__fullscreen-hint-close {
    margin-top: 10px;
    padding: 6px 14px;
    background: #00d1ff;
    color: #000;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.gibdd-exam__fullscreen-hint-close:hover {
    background: #00b8e6;
}

.gibdd-exam__fullscreen-hint-arrow {
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 12px solid #1a1a1a;
}

body.dark .gibdd-exam__fullscreen-hint {
    background: #2d2d2d;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

body.dark .gibdd-exam__fullscreen-hint-arrow {
    border-left-color: #2d2d2d;
}

@media (max-width: 800px) {
    .gibdd-exam__fullscreen-hint {
        display: none !important;
    }
}
