
/*accessibility start*/
#accessibility-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    background-color: #000;
}
li.contrast.access-element:hover {
    background: transparent;
}
.accessibility-menu ul li.active, 
.accessibility-menu ul li:hover {
    background: #000;
}
li.contrast.access-element a {
    color: #000;
}
li.contrast.access-element:hover a {
    color: #000;
}
/*accessibility end*/

@font-face {
    font-family: "Karantina", system-ui;
}
body {
    line-height: initial;
    font-family: "Karantina", system-ui, Arial;
    font-weight: 400;
    letter-spacing: .1em;
}
body.home {
    background: url(../img/bg.jpg) no-repeat center;
    background-size: cover;
    background-attachment: fixed;
}
.wrapper {
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    padding: 16px 0;
}
.logo {
    display: block;
    margin: 0 auto;
    /* width: clamp(10.25rem, 8.4662rem + 6.4865vw, 16.25rem); */
    width: clamp(10.25rem, -7.75rem + 20vw, 16.25rem);
}
.logo img {
    width: 100%;
}
.footer {
    background: rgba(31, 12, 34, 1);
    color: #fff;
    padding: clamp(1.25rem, 1.1014rem + 0.5405vw, 1.75rem) 0;
    text-align: center;
    font-size: clamp(0.75rem, 0.6053rem + 0.5263vw, 1rem);
}
.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
}
.footer-content > * {
    margin: 0 20px;
}
.copyright {
    font-family: Arial;
    font-weight: 400;
}
.footer-link {
    font-weight: 500;
    color: #fff;
    text-decoration: none;
}
.footer-link:hover {
    color: #fff;
    text-decoration: underline;
}
.developer {
    font-family: Arial;
}
.developer a {
    color: #fff;
    text-decoration: none;
}
.developer a:hover {
    color: #fff;
    text-decoration: underline;
}
.footer-text {
    width: 920px;
    max-width: 100%;
    text-align: center;
    margin: 0 auto 15px auto;
}



.main {
    flex: 1;
    background: url(../img/bg-down.png) no-repeat bottom center;
    background-attachment: fixed; 
    background-size: 100vw auto;
    padding-bottom: clamp(1.25rem, -6.25rem + 8.3333vw, 3.75rem);    
}
.main-welcome {
    width: 1086px;
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
    color: #fff;
}
h1, .h1 {
    font-size: clamp(2.5rem, 1.4595rem + 3.7838vw, 6rem);
    font-weight: 700;
    margin: 0 0 15px 0;
}
.subtitle {
    font-size: clamp(1.125rem, 1.0135rem + 0.4054vw, 1.5rem);
    margin-bottom: 25px;
    font-weight: 300;
}
h2, .h2 {
    font-weight: 300;
    font-size: clamp(1.5rem, 1.3514rem + 0.5405vw, 2rem);
    margin: 0 0 15px 0;
    line-height: 1;
}
.btn-primary {
    font-size: 20px;
    font-size: 24px;
    letter-spacing: .05em;
    font-weight: 400;
    height: clamp(3.25rem, 2.8784rem + 1.3514vw, 4.5rem);
    padding: 0 20px;
    min-width: clamp(10.25rem, 9.1723rem + 3.9189vw, 13.875rem);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 60px;
    border: none;
    background: rgba(239, 65, 48, 1);
}
.btn-primary:hover,
.btn-primary:active,
.btn-primary:focus,
.btn-primary:focus:active,
.btn-primary:focus-visible,
.btn-check:checked+.btn-primary, 
.btn-primary.active, 
.btn-primary.show, 
.btn-primary:first-child:active, 
:not(.btn-check)+.btn-primary:active {
    background: rgba(141, 193, 103, 1);
    color: rgba(69, 38, 61, 1);
}
.main-quiz, .quiz {
    width: 1296px;
    max-width: 100%;
    margin: 0 auto;
}
.main-quiz__title {
    font-size: clamp(2.25rem, 1.5811rem + 2.4324vw, 4.5rem);
    font-weight: 700;
    margin: 0 0 15px 0;
    text-align: center;
    color: #fff;
}
.quiz {
    background: #fff;
}
.quiz-header {
    background: rgba(69, 38, 61, 1);
    padding: 0 18px;
    display: flex;
    align-items: flex-start;
}
.quiz-stars {
    margin: auto 0;
    width: clamp(3.75rem, 3.2297rem + 1.8919vw, 5.5rem);
}
.quiz-header__title {
    font-weight: 400;
    margin: 0 auto 7px auto;
    position: relative;
    background: rgba(201, 46, 56, 1);
    color: #fff;
    font-size: clamp(1.25rem, 1.027rem + 0.8108vw, 2rem);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 7px;
    background: url(../img/quiz-header__title.svg) no-repeat top center;
    background-size: contain;
    height: clamp(2.25rem, 1.8041rem + 1.6216vw, 3.75rem);
    width: clamp(4.875rem, 3.9459rem + 3.3784vw, 8rem);
}
.quiz-content {
    background: #fff;
    padding: clamp(1rem, -0.3007rem + 4.7297vw, 5.375rem);
}
.quiz-answer .row {
    margin-left: clamp(-0.3125rem, -0.1824rem + -0.473vw, -0.75rem);
    margin-right: clamp(-0.3125rem, -0.1824rem + -0.473vw, -0.75rem);
    row-gap: clamp(0.625rem, 0.3649rem + 0.9459vw, 1.5rem);
}
.quiz-answer .row > * {
    padding-left: clamp(0.3125rem, 0.1824rem + 0.473vw, 0.75rem);
    padding-right: clamp(0.3125rem, 0.1824rem + 0.473vw, 0.75rem);
}
.quiz-answer__item {
    padding: 10px 15px;
    border: 2px solid rgba(69, 38, 61, 1);
    height: 100%;
    min-height: clamp(5rem, 4.4797rem + 1.8919vw, 6.75rem);
    display: flex;
    align-items: center;
    cursor: pointer;
    color: rgba(69, 38, 61, 1);
    line-height: 1;
    letter-spacing: initial;
}
.quiz-answer__count {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    font-size: 24px;
    width: clamp(1.875rem, 1.5777rem + 1.0811vw, 2.875rem);
    height: clamp(1.875rem, 1.5777rem + 1.0811vw, 2.875rem);
    border-radius: 10px;
    background: rgba(69, 38, 61, 1);
    font-family: Arial;
}
.quiz-answer__item p {
    margin: 0 clamp(0.3125rem, 0.2196rem + 0.3378vw, 0.625rem);
    padding: 0;
    font-size: clamp(1.125rem, 1.0135rem + 0.4054vw, 1.5rem);
    flex: 1;
    flex: 1;
}
.quiz-answer__pin {
    width: clamp(1.875rem, 1.5777rem + 1.0811vw, 2.875rem);
    height: clamp(1.875rem, 1.5777rem + 1.0811vw, 2.875rem);
    border-radius: 10px;
    opacity: 0;
    background-color: #fff;
    background-size: 60%;
    background-repeat: no-repeat;
    background-position: center;
}
.quiz-answer__item[data-answer="false"] .quiz-answer__pin {
    background-image: url(../img/false.svg);
}
.quiz-answer__item[data-answer="true"] .quiz-answer__pin {
    background-image: url(../img/true.svg);
}
.quiz-answer.active .quiz-answer__item.click[data-answer="false"] {
    background: rgba(201, 46, 56, 1);
    color: #fff;
}
.quiz-answer.active .quiz-answer__item[data-answer="true"] {
    background: rgba(141, 193, 103, 1);
    color: #fff;
}
.quiz-answer.active .quiz-answer__item.click[data-answer="false"] .quiz-answer__pin,
.quiz-answer.active .quiz-answer__item[data-answer="true"] .quiz-answer__pin {
    opacity: 1;
}
.quiz-answer.active .quiz-answer__item {
    pointer-events: none;
}

.quiz-content__btn {
    margin-top: clamp(0.625rem, 0.4392rem + 0.6757vw, 1.25rem);
}
.quiz-content__btn .btn {
    margin: 0 clamp(0.625rem, 0.4392rem + 0.6757vw, 1.25rem);
}
.quiz-content__btn img {
    width: clamp(1.75rem, 1.3784rem + 1.3514vw, 3rem);
    animation: scale 2s linear infinite;
    animation-direction: alternate;
}
.quiz-content__btn img:nth-child(1) {
    transform-origin: left center;
}
.quiz-content__btn img:nth-child(2) {
    transform-origin: right center;
}

.quiz-content .main-quiz__title {
    color: #000;
    font-size: clamp(1.75rem, 1.035rem + 2.6vw, 3.375rem);
    margin: clamp(1.125rem, 0.74rem + 1.4vw, 2rem) 0;
}

@keyframes scale {
    to {
        transform: scale(.8);
    }
}
.quiz-go {
    text-align: center;
    color: rgba(0, 0, 0, 1);
}
.quiz-go .main-quiz__title {
    color: rgba(0, 0, 0, 1);
    margin: 0;
}
.quiz-go__text {
    font-weight: 300;
    font-size: clamp(1.5rem, 1.3514rem + 0.5405vw, 2rem);
    margin: clamp(1.25rem, 0.9527rem + 1.0811vw, 2.25rem) 0;
}

@media (min-width: 1280px) {
    .main {
        background: url(../img/bg-down.png) repeat-x 50% calc(100% + 4vh);
        /* background-attachment: fixed; */
        background-size: auto 48vh;
        display: flex;
    }
    .main .container {
        display: flex;
    }
    .main-welcome {
        margin-top: auto;
        padding-bottom: 35vh;
    }

    .main-quiz {
        flex: 1;
    }
}
@media (max-width: 1580px) {
    .main {
        background-size: auto 270px;
    }
    .main-welcome {
        padding-bottom: 200px;
    }
    .main-quiz, .quiz {
        width: 900px;
    }
}
@media (max-width: 1024px) and (min-width: 768px) and (orientation: portrait) {
    body.home {
        background-image: url(../img/bg_tablet.jpg);
        background-position: top center;
    }
    .main {
       background-size: 150vw;
       background-attachment: initial;
       background-position: 50% calc(100% + 40px);
    }
    .main {
        padding-top: 100px;
    }
}
@media (max-width: 767px) {
    body.home {
        background: url(../img/bg_mob.jpg) no-repeat center;
        background-size: cover;
        background-attachment: fixed;
    }
    .main {
        background: url(../img/bg-down_mob.png) no-repeat bottom center;
        background-attachment: initial;
        background-size: auto 277px;
        display: flex;
    }
    .main .container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .footer-content > * {
        margin: 0 10px;
    }
    .footer-content {
        justify-content: space-around;
    }
    .main-welcome {
        padding-bottom: 232px;
        margin: auto auto 0 auto;
        padding-left: 10px;
        padding-right: 10px;
    }
}
@media (max-width: 374px) {
    .main {
        background-size: 100vw auto;
    }
    .main-welcome {
        padding-bottom: 0;
        margin: auto;
    }
}