@media (max-width: 768px) {
    .section.free-test {
        overflow-x: hidden;
    }

    .free-test__container {
        max-width: 100%;
        padding-left: 16px;
        padding-right: 16px;
    }

    .test__topbar {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding: 0 16px;
        grid-template-columns: minmax(0, 1fr) auto;
        column-gap: 12px;
    }

    .test__topbar .logo {
        min-width: 0;
        gap: 10px;
    }

    .test__topbar .logo-title {
        min-width: 0;
        font-size: 22px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .test__topbar .test__head-item:first-of-type {
        justify-self: end;
    }

    .test__topbar .test__head-item:nth-of-type(2) {
        display: none;
    }

    .test__question,
    .test__answers-wrapper,
    .test__question-answers,
    .test__question-answers.image-buttons {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .test__question {
        overflow-x: hidden;
    }

    .test__question-description {
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .test__question--img {
        width: 100%;
        max-width: 100%;
        max-height: 260px;
        object-fit: contain;
    }

    .test__question-button {
        width: calc(50% - 8px);
        max-width: calc(50% - 8px);
        min-width: 0;
        margin: 0 4px 12px;
        padding-left: 8px;
        padding-right: 8px;
    }
}

@media (max-width: 360px) {
    .test__question-button {
        width: min(100%, 260px);
        max-width: 260px;
        margin-left: 0;
        margin-right: 0;
    }
}
