.main-section_quiz-button {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    font: inherit;
    cursor: pointer;
    transition: color .4s, background-color .4s;
}

.main-section_quiz-button::before {
    display: none;
}

.main-section_quiz-button:hover,
.main-section_quiz-button:focus-visible {
    color: #000;
    background-color: #fff;
}

body.home-quiz-open {
    overflow: hidden;
}

.home-quiz-modal {
    position: fixed;
    inset: 0;
    width: min(1320px, calc(100% - 40px));
    max-width: none;
    max-height: calc(100vh - 40px);
    margin: auto;
    padding: 0;
    border: 0;
    background: transparent;
    overflow: visible;
}

.home-quiz-modal::backdrop {
    background: rgba(20, 20, 17, .68);
    backdrop-filter: blur(4px);
}

.home-quiz-modal__panel {
    position: relative;
    width: 100%;
    height: min(720px, calc(100vh - 40px));
    background: #f6f6eb;
    box-shadow: 0 28px 90px rgba(0, 0, 0, .3);
    overflow: hidden;
}

.home-quiz-modal iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #f6f6eb;
}

.home-quiz-modal__close {
    position: absolute;
    z-index: 5;
    top: 18px;
    right: 18px;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 5px 18px rgba(0, 0, 0, .08);
    cursor: pointer;
}

.home-quiz-modal__close::before,
.home-quiz-modal__close::after {
    position: absolute;
    top: 22px;
    left: 12px;
    width: 22px;
    height: 1px;
    content: "";
    background: #55554e;
}

.home-quiz-modal__close::before { transform: rotate(45deg); }
.home-quiz-modal__close::after { transform: rotate(-45deg); }

@media (max-width: 767px) {
    .home-quiz-modal {
        width: 100%;
        height: 100dvh;
        max-height: 100dvh;
        margin: 0;
        padding: max(8px, env(safe-area-inset-top)) 8px max(8px, env(safe-area-inset-bottom));
        box-sizing: border-box;
        overflow: hidden;
    }

    .home-quiz-modal[open] {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .home-quiz-modal__panel {
        height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
        max-height: 680px;
        min-height: 0;
        margin: auto;
    }

    .home-quiz-modal__close {
        top: 12px;
        right: 12px;
    }
}
