body {
    font-family: 'PT Root UI', sans-serif;
    margin: 0;
    padding: 0;
}

/* Заголовки */
h1 {
    font-size: 35px;
    text-align: center;
    font-family: 'PT Root UI', sans-serif;
}

p {
    text-align: center;
    font-size: larger;
    font-weight: 200;
    font-family: 'PT Root UI', sans-serif;
}

/* Основной блок теста */
.test-block {
    width: 60%;
    font-family: 'PT Root UI', sans-serif;
    margin: 40px auto;
    height: auto;
    border: 1px solid #EBEBEB;
    border-radius: 20px;
    padding-bottom: 20px;
    background-color: #F5F5F5;
}

.test-block h1 {
    font-size: 22px;
    text-align: left;
    font-weight: 600;
    margin-left: 30px;
    margin-top: 30px;
    margin-bottom: 50px;
}

.test-block h2 {
    font-size: 27px;
    text-align: left;
    font-weight: 400;
    margin-left: 30px;
    margin-top: 30px;
}

.test-block .last-inf {
    color: #797979;
    display: inline-block;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
    margin: 25px 10px 20px 30px;
    line-height: 100%;
    letter-spacing: 0%;
}

/* Верхняя часть теста */
.top-test {
    display: flex;
    margin: 30px 30px 0 30px;
    font-weight: 600;
    font-size: 26px;
    justify-content: space-between;
}

.top-test span {
    display: block;
}

.question-counter {
    font-size: 18px;
    text-align: center;
    margin-bottom: -20px;
    color: #444;
}
/* Кнопки */
.test-block button {
    background-color: #fff;
    font-size: 20px;
    border: 1px solid #EBEBEB;
    margin: 5px 30px;
    font-weight: 200;
    text-align: left;
    padding: 8px 30px;
    height: auto;
    cursor: pointer;
}
button.prev-question {
    background-color: #fff;
    width: 70%;
    /* margin: 10px 0px; */
    /* margin-left: 35%; */
    border: none;
    color: #06A5EA;
    margin: 0 auto;
    border-radius: 30px;
    /* padding: 6px 50px; */
    font-size: 16px;
    /* margin-right: 50px; */
    
    text-align: center;
    /* margin-right: 50px; */
        margin-bottom: 10px;
}

button.get-rezalt {
    background-color: #06A5EA;
    width: 60%;
    /* margin: 10px 0px; */
    margin-left: 35%;
    margin-top: 20px;
    border: none;
    text-align: center;
    color: white;
    display: block;
    margin: auto;
    margin-top: 20px;
    border-radius: 20px;
    margin-left: 20%;
}

button.next-question {
    background-color: #06A5EA;
    width: 70%;
    border: none;
    color: white;
    margin: 0 auto 5px auto;
    display: block;
    border-radius: 30px;
    font-size: 16px;
    text-align: center;
}

/* Блок результата */
.rezalt-block {
    width: 700px;
    background-color: #ffffff;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 20000;
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    padding: 30px;
    display: none;
    text-align: center;
    font-family: Arial, sans-serif;
}

.rezalt-block h2 {
    font-size: 22px;
    margin: 0;
}

.rezalt-block p {
    font-size: 18px;
    margin-bottom: 30px;
}

.rezalt-block span {
    font-size: 16px;
    display: inline-block;
    padding-bottom: 20px;
}

.rezalt-block-p {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 30px;
    color: #333;
}

.rezalt-block-but {
    background-color: #4ba9dc;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.rezalt-block-but:hover {
    background-color: #368ec0;
}

.rezalt-close {
    position: fixed;
    z-index: 19999;
    display: none;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

/* Основной контейнер теста */
.main-test {
    display: flex;
    justify-content: space-around;
}

.main-test .a {
    flex-grow: 6;
    max-width: 70%;
}

.main-test .b {
    flex-grow: 2;
    min-width: 80px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
}

.one-question {
    display: flex;
    flex-direction: column;
}

/* Стили для правильных/неправильных ответов */
.test-block button.good {
    background-color: #93D200;
    border: none;
    box-shadow: 0px 5px 10px -5px rgba(0, 0, 0, 0.626);
}

.test-block button.bad {
    background-color: #ff4b4b;
    border: none;
    box-shadow: 0px 5px 10px -5px rgba(0, 0, 0, 0.626);
}

/* Рекомендации */
.rec-status {
    display: flex;
    text-align: start;
    align-items: center;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    padding: 16px 20px;
    font-size: 18px;
    color: #444;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    max-width: 900px;
    margin: 20px auto;
    transition: box-shadow 0.3s ease;
}

.rec-status:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.rec-status__icon {
    font-size: 24px;
    margin-right: 14px;
    opacity: 0.8;
}

.rec-status__content {
    flex: 1;
    line-height: 1.5;
}

.rec-status__title {
    font-size: 19px;
    font-weight: 600;
    color: #333;
    margin-right: 8px;
}

.rec-status__text > span {
    font-size: 18px;
    color: #555;
}

.rec-tags {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: -4px;
}

.rec-tag {
    background: #f0f7ff;
    color: #06A5EA;
    border: 1px solid #d0e8ff;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
}

.rec-status__action {
    margin-left: 12px;
}

.rec-reset {
    width: auto;
    height: 28px;
    border-radius: 50px;
    border: 1px solid #ddd;
    background: white;
    color: #aaa;
    font-size: 19px;
    line-height: 1;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rec-reset:hover {
    background: #f8f8f8;
    color: #888;
    border-color: #bbb;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .test-block {
        width: 80%;
    }
    
    .main-test .a {
        max-width: 65%;
    }
    
    button.get-rezalt {
        width: 40%;
        margin-left: 30%;
    }
    
    .rezalt-block {
        width: 90%;
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .title-main {
        font-size: 30px;
    }
    .main-p {
        padding: 0px 15px;
    }
    .test-block {
        width: 90%;
        margin: 20px auto;
    }
    
    .test-block h1, 
    .test-block h2 {
        font-size: 20px;
        margin-left: 20px;
        margin-top: 20px;
    }
    
    .test-block button {
        margin: 5px 15px;
        padding: 10px 20px;
        font-size: 18px;
        color: black;
    }
    
    .main-test {
        flex-direction: column-reverse;
    }
    
    .main-test .a {
        max-width: 100%;
    }
    
    .main-test .b {
        order: -1;
        margin-bottom: 20px;
    }
    
    button.next-question {
        width: 90%;
        margin: 10px auto;
        color: #fff;
        margin-top: 30px;
    }
    
    button.get-rezalt {
        width: 60%;
        margin-left: 20%;
    }
    
    .top-test {
        flex-direction: column;
        gap: 10px;
        margin: 20px 15px;
    }
    
    .rezalt-block {
        width: 95%;
        padding: 20px;
    }
    
    .rec-status {
        margin: 15px;
        padding: 12px 15px;
    }
}

@media (max-width: 600px) {
    .title-main {
        font-size: 28px;
    }
    .rec-status {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
        gap: 12px;
    }
    
    .rec-status__action {
        align-self: flex-end;
    }
}

@media (max-width: 576px) {
        .title-main {
        font-size: 26px;
    }
    body {
        font-size: 14px;
    }
    
    .test-block {
        width: 95%;
        border-radius: 15px;
        margin: 10px auto;
    }
    
    .test-block h1,
    .test-block h2 {
        font-size: 18px;
        margin-left: 15px;
        margin-top: 15px;
        margin-bottom: 30px;
    }
    
    .test-block button {
        font-size: 16px;
        padding: 12px 15px;
        margin: 4px 10px;
    }
    
    button.get-rezalt {
        width: 80% !important;
        margin-left: 10% !important;
        margin-top: 0px !important;
        color: #fff
    }
        .next-rezalt {
        width: 80% !important;
        margin-left: 10% !important;
        margin-top: 0px !important;
    }
        button.prev-rezalt {
        width: 80% !important;
        margin-left: 10% !important;

    }

    .main-test .b {
            flex-direction: column-reverse;
    }
    
    .top-test {
        margin: 15px 10px;
        font-size: 18px;
    }
    
    .question-counter {
        font-size: 16px;
    }
    
    .rezalt-block h2 {
        font-size: 20px;
    }
    
    .rezalt-block p {
        font-size: 16px;
    }
}