@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    color: #fff;
    font-family: "Inter";
    background: linear-gradient(180deg, #0f1020 0%, #14162b 33%, #1c1f3f 66%, #2a2e5b 100%);
    background-repeat: no-repeat;
    margin: 0;
}

a {
    color: #fff;
    text-decoration: none;
}

button {
    color: #fff;
    font-size: 18px;
    font-family: "Inter";
    cursor: pointer;
}

h1,
h2,
h3 {
    margin: 0;
}

p {
    margin: 0;
}

section {
    margin-bottom: 180px;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.animate {
    opacity: 1;
    transform: translateY(0);
}

.container {
    max-width: 1380px;
    margin: 0 auto;
    padding: 15px 0;
    text-align: center;
}

.btn {
    background: rgba(44, 47, 82, 0.8);
    border: 1px solid #4e5284;
    border-radius: 76px;
    padding: 11px 61px;
    transition: 0.3s ease;
}

.btn:hover {
    border: 1px solid #353857;
    background: #363a61;
}

.btn2 {
    background: #2a2e5b;
    border: 1px solid #2a2e5b;
    border-radius: 76px;
    padding: 14px 80px;
    transition: 0.3s ease;
}

.btn2:hover {
    background: #393e78;
}

.btn3 {
    background: rgba(44, 47, 82, 0.8);
    border: 1px solid #4e5284;
    border-radius: 76px;
    padding: 14px 80px;
    transition: 0.3s ease;
}

.btn3:hover {
    border: 1px solid #353857;
    background: #363a61;
}

.title {
    font-style: italic;
    font-weight: 800;
    font-size: 48px;
    text-transform: uppercase;
}

.desc {
    font-weight: 300;
    opacity: 80%;
}

@keyframes load {
    from {
        width: 0;
    }

    to {
        width: 25%;
    }
}

/* Header */

header {
    margin-top: 10px;
    margin-bottom: 180px;
}

.nav {
    display: flex;
    gap: 180px;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    transition: 0.3s ease;
}

.nav-links a:hover {
    color: #b4b7c8;
}

.logo {
    font-weight: 600;
    font-size: 24px;
}

/* Welcome */

.welcome {
    margin-bottom: 210px;
}

.welcome .container {
    align-items: center;
}

.welcome__title {
    font-style: italic;
    font-weight: 800;
    font-size: 124px;
    text-transform: uppercase;
    text-align: start;
}

.welcome__desc {
    width: 700px;
    margin-bottom: 25px;
    text-align: start;
}

.welcome span {
    padding: 9px 30px;
    background: #272B4C;
    border-radius: 59px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.welcome span img {
    width: 20px;
    height: 20px;
}

.welcome__wrap {
    display: flex;
    gap: 160px;
}

.welcome__spans {
    display: flex;
    gap: 20px;
    align-items: start;
}

.welcome__btns {
    display: flex;
    gap: 20px;
    align-items: center;
}

/* Dangers */

.cards_wrapper {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 47px;
}

.card {
    width: 426px;
    height: 180px;
    perspective: 1000px;
}

.card__inner {
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
}

.card.flipped .card__inner {
    transform: rotateY(180deg);
}

.card__front,
.card__back {
    background: #272a4b;
    border: 1px solid #4e5284;
    border-radius: 15px;
    transition: 0.3s ease;
    width: 100%;
    backface-visibility: hidden;
    position: absolute;
}

.card__back {
    transform: rotateY(180deg);
}

.card__front:has(button:hover),
.card__back:has(button:hover) {
    background: #303358;
}

.card__back-content {
    padding: 15px;
    background: #272a4b;
    border-radius: 15px;
    border-bottom: 1px solid #4e5284;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1), 0 7px 7px 0 rgba(0, 0, 0, 0.09), 0 16px 10px 0 rgba(0, 0, 0, 0.05), 0 28px 11px 0 rgba(0, 0, 0, 0.01), 0 44px 12px 0 rgba(0, 0, 0, 0);
    text-align: start;
}

.card__content {
    display: flex;
    gap: 20px;
    padding: 25px 30px;
    background: #272a4b;
    border-radius: 15px;
    border-bottom: 1px solid #4e5284;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1), 0 7px 7px 0 rgba(0, 0, 0, 0.09), 0 16px 10px 0 rgba(0, 0, 0, 0.05), 0 28px 11px 0 rgba(0, 0, 0, 0.01), 0 44px 12px 0 rgba(0, 0, 0, 0);
}

.card__text {
    text-align: start;
}

.card__btn {
    all: unset;
    cursor: pointer;
    border-radius: 0 0 15px 15px;
    padding: 11px 0px;
    width: 426px;
}

/* Test */

.test__btn {
    display: inline-block;
    margin-top: 30px;
}

.test__number {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    margin-top: 60px;
}

.test__progress {
    max-width: 800px;
    height: 15px;
    background: #2A2E5B;
    border-radius: 46px;
    margin: 0 auto;
    margin-bottom: 10px;
}

.test__progress-bar {
    width: 0%;
    height: 100%;
    background: #444988;
    border-radius: 46px;
    transition: 0.5s ease;
}

.test__form {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.45s ease-out, transform 0.45s ease-out;
}

.test__form.test__animate {
    opacity: 1;
    transform: translateY(0);
}

.test__text {
    font-size: 20px;
    background: #2a2e5b;
    border: 1px solid #3c4281;
    border-radius: 15px;
    padding: 40px 90px;
    max-width: 820px;
    margin: 0 auto 20px auto;
}

.test__answers {
    margin-bottom: 0px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.test__answers input {
    all: unset;
}

.test__answers input[type="radio"]:checked+label {
    background: #353970;
    transform: translateY(3px);
}

.test__answers label {
    padding: 15px 10px;
    width: 240px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #2a2e5b;
    border: 1px solid #3c4281;
    border-radius: 15px;
    transition: 0.3s ease;
    cursor: pointer;
}

.test__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.test__btn:disabled {
    opacity: 60%;
    cursor: not-allowed;
}

.test__btn:disabled:hover {
    background: rgba(44, 47, 82, 0.8);
    border: 1px solid #4e5284;
}

.results {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.45s ease-out, transform 0.45s ease-out;
}

.results.result__animate {
    opacity: 1;
    transform: translateY(0);
}

.result__text {
    font-size: 20px;
    margin-bottom: 20px;
    margin-top: 10px;
}

.result__title {
    font-size: 24px;
    width: 333px;
}

.result__img {
    width: 338px;
    height: 338px;
    margin-left: -75px;
}

.result__content {
    display: flex;
    gap: 0px;
    align-items: center;
    margin-top: 20px;
}

.result__card {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 40px 30px;
    border-radius: 24px;
    background: #272A4B;
    border: 1px solid #4e5284;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1), 0 7px 7px 0 rgba(0, 0, 0, 0.09), 0 16px 10px 0 rgba(0, 0, 0, 0.05), 0 28px 11px 0 rgba(0, 0, 0, 0.01), 0 44px 12px 0 rgba(0, 0, 0, 0);

}

/* Booklet */

.booklet .container {
    max-width: 1100px;
}

.booklet__img-wrapper {
    position: relative;
    margin-top: 50px;
    padding: 30px 100px;
    height: 630px;
    background: #272A4B;
    border-radius: 48px;
}

.booklet .img {
    position: absolute;
    top: 30px;
    z-index: 1;
    opacity: 0.5;
    transition: opacity 0.3s ease, z-index 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.img img {
    display: block;
    max-width: 800px;
    border-radius: 21px;
}

.img--left {
    left: 30px;
}

.img--right {
    right: 30px;
}

.img.active,
.booklet__img-wrapper.right-active .img--right {
    z-index: 5;
    opacity: 1;
    transform: scale(1.02);
    filter: brightness(95%);
}

/* Conclusion */

.conclusion {
    display: flex;
    justify-content: center;
}

.conclusion__text {
    max-width: 1100px;
    text-align: start;
    margin-top: 40px;
    font-size: 24px;
}

/* Footer */

footer {
    background: #15172E;
}

.authors {
    display: flex;
    gap: 27px;
    justify-content: center;
    font-size: 14px;
    font-weight: 300;
    opacity: 50%;
    margin-top: 15px;
}