.quiz {
    position: relative;
    padding: 29px 57px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 443px;
}
.quiz__bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.quiz__bg img {
    position: absolute;
    height: 100%;
    width: 100%;
    right: 0;
    left: 0;
    object-fit: cover;
}
.quiz__bg::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(245, 246, 247, 0.5);
}

.quiz__ttl {
    font-weight: 700;
    font-size: 16px;
    line-height: 1.69;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-align: center;
    color: #1c1c1c;
    position: relative;
    z-index: 2;
}
.quiz__ttl span {
    color: #f89b93;
}
.quiz__ttl:not(:last-child) {
    margin-bottom: 30px;
}
.quiz__icon {
    width: 70px;
    height: 48px;
    text-align: center;
    position: relative;
    z-index: 2;
}
.quiz__icon img {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: cover;
}
.quiz__icon:not(:last-child) {
    margin-bottom: 31px;
}

.quiz__btn {
    position: relative;
    z-index: 2;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.4;
    text-transform: uppercase;
    color: #1c1c1c;
    background-color: #fff;
    box-shadow: 0 0 12px 0 rgba(217, 217, 217, 0.4);
    padding: 13.5px 10.5px;
    width: 68.6%;
    transition:
        background-color 0.3s ease,
        color 0.3s ease;
}

/* Quiz body start */
.quiz__slider {
    min-width: 0;
    position: fixed;
    height: 100%;
    top: 0;
    right: -100%;
    background-color: #fff;
    width: 320px;
    z-index: 80;
    overflow-y: auto;
    transition: right 0.5s ease;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    min-height: 0;
}
.quiz__slider.open {
    right: 0;
}
.quiz__slider::before {
    content: "";
    position: fixed;
    left: -100%;
    top: 0;
    width: calc(100% - 320px);
    height: 100%;
    transition: left 0.5s ease;
    background-color: rgba(0, 0, 0, 0.6);
}
.quiz__slider.open::before {
    left: 0;
}
/* Quiz body end */

.quiz__top {
    z-index: 5;
    background-color: #fff;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}
.quiz__action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.quiz__prev {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease;
    width: 48px;
    flex: 0 0 48px;
    height: 60px;
}
.quiz__prev.not-allowed {
    opacity: 0;
    visibility: hidden;
}
.quiz__close-btn {
    width: 60px;
    height: 60px;
    position: relative;
}
.quiz__close-btn::before,
.quiz__close-btn::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 2px;
    border-radius: 3px;
    background-color: #b1b0b0;
    transition: background-color 0.3s ease;
}
.quiz__close-btn::before {
    transform: translate(-50%, -50%) rotate(45deg);
}
.quiz__close-btn::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}
.quiz__slider-viewport {
    overflow: hidden;
    flex: 1 1 auto;
    
}

.quiz__slider-track {
    display: flex;
    transition: transform 0.4s ease;
    height: 100%;
}

.quiz__slide {
    min-width: 100%;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;

    height: 100%;
    padding: 32px 15px 15px;
    position: relative;
    justify-content: space-between;
}

.quiz__content {
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-top: 70px;
}

.quiz__next {
    font-weight: 700;
    font-size: 15px;
    line-height: 1.4;
    text-transform: uppercase;
    color: #fff;
    background-color: #f89b93;
    transition:
        backgroundColor 0.3s ease,
        color 0.3s ease;
    padding: 13.5px 10px;
    flex-shrink: 0;
}
.quiz__progress {
    flex: 1;
    height: 2px;
    background: #d9d9d9;
    overflow: hidden;
}

.quiz__content::-webkit-scrollbar {
    display: none;
}
.quiz__content:not(:last-child) {
    margin-bottom: 15px;
}

.quiz__progress-bar {
    height: 100%;
    width: 0%;
    background: #f89b93;
    transition: width 0.3s;
}
.slide__size {
    flex: 1 1 auto;
}
.slide__size:not(:last-child) {
    margin-bottom: 15px;
}
.quiz__slide-header:not(:last-child) {
    margin-bottom: 32px;
}
.quiz__slide-ttl {
    font-weight: 700;
    font-size: 18px;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.4;
}
.quiz__slide-ttl:not(:last-child) {
    margin-bottom: 16px;
}
.quiz__action-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-top: 30px;
}
.quiz__sub-ttl {
    font-size: 15px;
    line-height: 127%;
    text-align: center;
    color: #000;
}
.quiz__sub-ttl:not(:last-child) {
    margin-bottom: 16px;
}
.quiz__btn-question {
    font-weight: 700;
    font-size: 15px;
    line-height: 140%;
    text-transform: uppercase;
    color: #fff;
    transition:
        color 0.3s ease,
        background-color 0.3s ease;
    background-color: #f89b93;
    width: 100%;
    text-align: center;
    padding: 13.5px 10px;
}
.quiz__select-size {
    display: flex;
    gap: 15px;
}
.quiz__select-size li {
    flex: 1 1 50%;
}
.quiz__select-size:not(:last-child) {
    margin-bottom: 15px;
}
.quiz__lb {
    font-size: 14px;
    line-height: 1.79;
    color: #000;
    margin-top: 0px;
}
.quiz__lb:not(:last-child) {
    margin-bottom: 8px;
}
.quiz__select-size select {
    padding: 12px;
    height: 48px;
    margin-top: 0px;
}
.quiz__result-size,
.quiz__result-determin {
    background-color: rgba(248, 155, 147, 0.3);
    font-size: 15px;
    line-height: 1.4;
    text-align: center;
    color: #000;
    padding: 13.5px 10px;
    width: 100%;
}
.quiz__result-size span,
.quiz__result-determin span {
    font-weight: 700;
}
.quiz__result-warning {
    font-size: 15px;
    line-height: 1.35;
    text-align: center;
    color: #c62828;
}
.quiz__result-warning:not(:last-child) {
    margin-bottom: 12px;
}

.slide__determin {
    flex: 1 1 auto;
}
.slide__determin:not(:last-child) {
    margin-bottom: 15px;
}
.slide__determin ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.slide__determin ul:not(:last-child) {
    margin-bottom: 15px;
}

.quiz__size-item {
    border: 1px solid #d9d9d9;
    padding: 24px 15px 24px 24px;
    display: flex;
    gap: 24px;
}
.quiz__image {
    flex: 0 0 80px;
    width: 80px;
    height: 88px;
    position: relative;
}
.quiz__image img {
    max-width: 100%;
}
.quiz__size-about p {
    font-size: 15px;
    line-height: 107%;
    color: #000;
}
.quiz__size-about p:not(:last-child) {
    margin-bottom: 21px;
}
.quiz__line {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.quiz__line label {
    font-size: 14px;
    line-height: 1.79;
    color: #000;
    margin-top: 0px;
}
.quiz__line input {
    margin-top: 0px;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.4;
    text-transform: uppercase;
    color: #1c1c1c;
    width: 80px;
    padding: 16px 12px;
    height: 48px;
}
.quiz__result-determin:not(:last-child) {
    margin-bottom: 15px;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 15px;

    margin-inline: auto;
    flex: 1 1 auto;
}
.options:not(:last-child) {
    margin-bottom: 15px;
}
.options.brash {
    gap: 30px;
}
.options:not(:last-child) {
    margin-bottom: 15px;
}
.options__item {
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.options__input {
    width: 0;
    height: 0;
    opacity: 0;
    position: absolute;
}
.options__input:focus-visible + .options__label {
    box-shadow: 0 0 5px #000;
}
.options__input:checked + .options__label .options__icon::before {
    transform: translate(-50%, -50%) scale(1);
}

.options__label {
    width: 180px;
    cursor: pointer;
    margin-top: 0px;
    text-align: center;
    border: 1px solid #d9d9d9;
    background-color: #fff;
    padding: 25px 17px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: border 0.3s ease;
}
.options__label:not(:last-child) {
    margin-bottom: 15px;
}
.options__label.type {
    padding: 40px 46px 24px;
}
.options__label.type .options__image:not(:last-child) {
    margin-bottom: 29px;
}
.options__text {
    font-weight: 700;
    font-size: 15px;
    line-height: 107%;
    text-align: center;
    color: #000;
    display: inline-block;
}
.options__text:not(:last-child) {
    margin-bottom: 40px;
}
.options__image {
    flex: 0 0 88px;
    width: 88px;
    height: 96.92px;
}
.options__image:not(:last-child) {
    margin-bottom: 33.08px;
}
.options__image img {
    max-width: 100%;
}

.options__icon {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid #d9d9d9;
    position: relative;
}
.options__icon::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.3s ease;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #f89b93;
}
.options__description {
    font-size: 15px;
    line-height: 107%;
    text-align: center;
    color: #000;
    max-width: 189px;
}
.options__description:not(:last-child) {
    margin-bottom: 15px;
}

.quiz__main-result {
    background-color: rgba(248, 155, 147, 0.3);
    padding: 26px 43px;
}
.quiz__main-result:not(:last-child) {
    margin-bottom: 24px;
}

.quiz__your-size {
    font-size: 15px;
    line-height: 140%;
    text-align: center;
    color: #000;
}
.quiz__your-size span {
    font-weight: 700;
}
.quiz__your-size:not(:last-child) {
    padding-bottom: 12px;
    border-bottom: 1px solid #f89b93;
}

.quiz__recommend-size {
    padding-top: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}
.quiz__recommend-size span:first-child {
    font-size: 15px;
    line-height: 140%;
    text-align: center;
    color: #000;
}
.quiz__recommend-size span:last-child {
    font-weight: 700;
    font-size: 15px;
    line-height: 140%;
    text-align: center;
    color: #000;
}
.quiz__recommend-size:not(:last-child) {
    padding-bottom: 12px;
    border-bottom: 1px solid #f89b93;
}

.quiz__recommend-type {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.quiz__recommend-type li:not(:last-child) {
    padding-bottom: 24px;
    border-bottom: 1px solid #d9d9d9;
}
.quiz__recommend-type:not(:last-child) {
    margin-bottom: 32px;
}
.quiz__rec-item p {
    font-size: 15px;
    line-height: 140%;
    text-align: center;
    color: #000;
}

.quiz__rec-item-top {
    display: flex;
    align-items: center;
    gap: 14.75px;
    padding-inline: 29px 17px;
}
.quiz__rec-item-top:not(:last-child) {
    margin-bottom: 12px;
}
.quiz__rec-item-top div {
    flex: 0 0 137px;
    width: 137px;
    height: 96px;
}
.quiz__rec-image a {
    display: block;
    width: 100%;
    height: 100%;
}
.quiz__rec-item-top > div > img,
.quiz__rec-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.quiz__rec-item-top h3 {
    font-weight: 700;
    font-size: 18px;
    line-height: 117%;
    text-transform: uppercase;
    color: #1c1c1c;
}

.quiz__try-again {
    position: relative;
    width: 100%;
    font-weight: 700;
    font-size: 15px;
    line-height: 140%;
    text-transform: uppercase;
    text-align: center;
    color: #fff;
    background-color: #f89b93;
    transition: background-color 0.3s ease color 0.3s ease;
    padding: 13.5px 10px;
}

.quiz__try-again i {
    position: absolute;
    top: 50%;
    left: 24px;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
}
.quiz__try-again i > img {
    max-width: 100%;
}
.quiz__try-again:not(:last-child) {
    margin-bottom: 48px;
}

.quiz__result-ttl {
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    text-align: center;
    color: #1c1c1c;
    line-height: 1.2;
}
.quiz__result-ttl:not(:last-child) {
    margin-bottom: 24px;
}
.quiz__list {
    display: grid;
    grid-template-columns: repeat(2, 138px);
    gap: 24px 15px;
}
.quiz__form {
    height: 100%;
}
.quiz__form .quiz__content {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.quiz__form-body {
    flex: 1 1 auto;
}
.quiz__form label {
    font-size: 14px;
    line-height: 1.79;
    color: #000;
    margin-top: 0px;
}
.quiz__form label:not(:last-child) {
    margin-bottom: 8px;
}
.quiz__form input {
    margin-top: 0px;
    height: 48px;
    padding-inline: 8px;
}
.quiz__contact-block .quiz__form {
    display: flex;
    flex-direction: column;
}
.quiz__contact-block .quiz__form-submit {
    margin-top: 16px;
}
.quiz__form-feedback {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
}
.quiz__form-feedback--error {
    color: #c62828;
}
.quiz__contact-success {
    background-color: rgba(248, 155, 147, 0.3);
    padding: 16px 14px;
    font-size: 15px;
    line-height: 1.4;
    text-align: center;
    color: #000;
}

.article-quiz__image {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 138/208;
}
.article-quiz__image img {
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    object-fit: cover;
}
.article-quiz__image:not(:last-child) {
    margin-bottom: 24px;
}

.article-quiz__body {
}
.article-quiz__body h3 {
    font-size: 14px;
    text-align: center;
    color: #000;
    line-height: 1.4;
}
.article-quiz__body h3 span {
    font-size: 13px;
    text-transform: uppercase;
}
.article-quiz__body h3:not(:last-child) {
    margin-bottom: 8px;
}
.article-quiz__body p {
    text-align: center;
    color: #000;
    font-weight: 700;
    font-size: 18px;
    text-transform: uppercase;
}

.quiz__select {
}

.quiz__select-label {
    font-size: 14px;
    line-height: 1.79;
    color: #000;
}

.quiz__select-label:not(:last-child) {
    margin-bottom: 8px;
}

.quiz__select-body {
    position: relative;
}

.quiz__select-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid #d9d9d9;
    padding: 11px 6px 11px 12px;
    background-color: #fff;
    cursor: pointer;
    position: relative;
    z-index: 5;
}

.quiz__selected {
    font-weight: 700;
    font-size: 15px;
    line-height: 1.4;
    color: #1c1c1c;
}
.quiz__select-arrow {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    position: relative;
    transform: rotate(-180deg);
    transition: transform 0.3s ease;
}
.quiz__select-arrow.active {
    transform: rotate(0deg);
}
.quiz__select-arrow img {
    max-width: 100%;
}

.quiz__select-menu {
    border: 1px solid #d9d9d9;
    border-top: none;
    background-color: #fff;
    position: absolute;

    top: 0px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    opacity: 0;
    /* display: none; */
    visibility: hidden;
    transition: all 0.3s ease;
    max-height: 200px;
    overflow-y: auto;
    scrollbar-width: none;
}
.quiz__select-menu::-webkit-scrollbar {
    display: none;
}
.quiz__select-menu.menu-open {
    top: 48px;
    opacity: 1;
    visibility: visible;
    /* display: block; */
}
.quiz__select-menu li {
    font-weight: 700;
    font-size: 15px;
    line-height: 1.4;
    color: #1c1c1c;
    padding: 13.5px 11px;
    transition: backgroundColor 0.3s ease;
    cursor: pointer;
}
.quiz__select-menu li:hover {
    background-color: #f1f1f1;
}
.quiz__select-menu li.active {
    background-color: #f1f1f1;
}

@media (max-width: 767.98px) {
    .quiz {
        padding: 24px 15px;
    }
    .quiz__btn {
        width: 100%;
    }
}

@media (any-hover: hover) {
    .quiz__btn:hover {
        background-color: #1c1c1c;
        color: #fff;
    }
    .quiz__close-btn:hover::before,
    .quiz__close-btn:hover::after {
        background-color: #1c1c1c;
    }
    .quiz__btn-question:hover {
        background-color: #1c1c1c;
        color: #fff;
    }
    .quiz__next:hover {
        background-color: #1c1c1c;
        color: #fff;
    }
    .quiz__try-again:hover {
        background-color: #1c1c1c;
        color: #fff;
    }
}
