@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto-Regular.woff') format('woff2'),
         url('../fonts/Roboto-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto-Medium.woff') format('woff2'),
         url('../fonts/Roboto-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Cervo';
    src: url('../fonts/Cervo-Medium.woff') format('woff2'),
         url('../fonts/Cervo-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
}

*,
*:before,
*:after {
    margin: 0;
    padding: 0;
    font: inherit;
    box-sizing: border-box;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    color: inherit;
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
}

.b-quiz {
    max-width: 720px;
    margin: 0 auto;
    overflow: hidden;
}


.b-quiz__btn {
    position: relative;
    display: block;
    max-width: 100%;
    width: 270px;
    color: #00b5f3;
    transition: all 0.3s;
}

.b-quiz__btn:hover,
.b-quiz__btn:focus {
    color: #fff;
}

.b-quiz__btn:before {
    content: '';
    display: block;
    width: 100%;
    padding: calc(46 / 273 * 100%) 0 0;
    background: url('../img/button.svg') no-repeat;
    background-size: contain;
}

.b-quiz__btn:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/button-active.svg') no-repeat;
    background-size: contain;
    opacity: 0;
    transition: inherit;
}

.b-quiz__btn:hover:after,
.b-quiz__btn:focus:after {
    opacity: 1;
}

.b-quiz__btn-txt {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    font: normal 500 20px/1 'Roboto', sans-serif;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.b-quiz__question-number {
    margin: 0 0 10px;
    font: normal 400 14px/1 'Roboto', sans-serif;
    text-align: center;
    color: #b7b7b7;
}

.b-quiz__question-title {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 475px;
    height: 80px;
    margin: 0 auto 15px;
    padding: 10px 15px;
    text-align: center;
}

.b-quiz__question-title-num {
    position: absolute;
    top: 50%;
    left: 50%;
    height: 80px;
    font: normal 500 113px/80px 'Cervo', sans-serif;
    color: #4dcbf7;
    opacity: 0.4;
    transform: translate(-50%, -50%);
}

.b-quiz__question-title-txt {
    position: relative;
    font: normal 500 26px/32px 'Cervo', sans-serif;
    text-transform: uppercase;
    color: #00b5f3;
}

@media (max-width: 640px) {
    .b-quiz__question-title-txt {
        font-size: 20px;
        line-height: 24px
    }
}

.b-quiz__question-img-container {
    position: relative;
    max-width: 100%;
    width: 720px;
    margin: 0 auto 10px;
    background: #c4c1c8;
}

.b-quiz__question-img-container:before {
    content: '';
    display: block;
    width: 100%;
    padding: calc(240 / 720 * 100%) 0 0;
}

.b-quiz__question-img {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    margin: auto;
}

.b-quiz__answers {
    display: flex;
    flex-wrap: wrap;
    margin: -8px -4px 25px;
}

.b-quiz__answer-wrap {
    position: relative;
    flex: 0 0 auto;
    width: 50%;
    margin: 8px 0 0;
}

.b-quiz__answer-wrap:before {
    content: '';
    display: block;
    width: 100%;
    padding: calc(70 / 355 * 100%) 0 0;
}

.b-quiz__answer {
    position: absolute;
    top: 0;
    right: 4px;
    bottom: 0;
    left: 4px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    color: #02284b;
    background: #d4f3fd;
    cursor: pointer;
    transition: all 0.3s;
}

.b-quiz__answer:hover,
.b-quiz__answer--selected {
    color: #fff;
    background: #00b5f3;
}

.b-quiz__answer-txt {
    display: flex;
    font: normal 500 14px/18px 'Roboto', sans-serif;
}

.b-quiz__answer-btn {
    margin: 0 auto;
}

@media (max-width: 720px) {
    .b-quiz__answer-wrap {
        width: 100%;
    }

    .b-quiz__answer {
        justify-content: center;
        text-align: center;
    }
}

.b-quiz__result-title {
    margin: 0 0 10px;
    font: normal 500 26px/1 'Cervo', sans-serif;
    text-align: center;
    color: #02284b;
}

.b-quiz__result-img-container {
    position: relative;
    max-width: 100%;
    width: 720px;
    margin: 0 auto 30px;
    background: #c4c1c8;
}

.b-quiz__result-img-container:before {
    content: '';
    display: block;
    width: 100%;
    padding: calc(400 / 720 * 100%) 0 0;
}

.b-quiz__result-img {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    margin: auto;
}

.b-quiz__result-txt {
    max-width: 670px;
    margin: 0 auto 20px;
    padding: 0 15px;
    font: normal 400 14px/22px 'Roboto', sans-serif;
    color: #02284b;
}

.b-quiz__result-txt p + p {
    margin-top: 5px;
}

.b-quiz__result-txt a {
    color: #00b5f3;
    text-decoration: underline;
}

.b-quiz__result-txt a:hover {
    text-decoration: none;
}

.b-quiz__restart-btn {
    margin: 0 auto;
}

.b-quiz__result-share {
    margin: 0 0 30px;
}

.b-quiz__result-share-title {
    margin: 0 0 10px;
    font: normal 500 14px/16px 'Roboto', sans-serif;
    text-align: center;
    color: #02284b;
}

.b-quiz__result-share-btns {
    margin: 0 0 0 8px;
}

.b-quiz__result-share-btns {
    display: flex;
    justify-content: center;
    align-items: center;
}

.b-quiz__result-share-btn {
    position: relative;
    width: 58px;
    height: 46px;
    margin: 0 0 0 8px;
    color: #b7b7b7;
    transition: all 0.3s;
}

.b-quiz__result-share-btn:hover,
.b-quiz__result-share-btn:focus {
    color: #fff;
}

.b-quiz__result-share-btn:before,
.b-quiz__result-share-btn:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-size: contain;
    transition: inherit;
}

.b-quiz__result-share-btn:before {
    background-image: url('../img/share-button.svg');
}

.b-quiz__result-share-btn:after {
    background-image: url('../img/share-button-active.svg');
    opacity: 0;
}

.b-quiz__result-share-btn:hover:after,
.b-quiz__result-share-btn:focus:after {
    opacity: 1;
}

.b-quiz__result-share-btn svg {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    transform: translate(-50%, -50%);
    fill: currentColor;
}