/* ===== Base ===== */
body {
    margin: 0;
    font-family: 'Nunito', sans-serif;
    line-height: 1.6;
    font-size: 15px;
    color: #4a4a5a;
    background: linear-gradient(180deg, #f6f4fb 0%, #faf3f7 60%, #eef4fa 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

*,
*:before,
*:after {
    box-sizing: border-box;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    font-family: 'Comfortaa', cursive;
}


/* ===== Decorative blobs ===== */
.bg-blobs {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
}
.blob:nth-child(1) { width: 420px; height: 420px; background: #7b7fbd; top: -120px; left: -120px; }
.blob:nth-child(2) { width: 380px; height: 380px; background: #c98ba8; top: 20%; right: -110px; }
.blob:nth-child(3) { width: 330px; height: 330px; background: #6b9bc4; bottom: 12%; left: -90px; }
.blob:nth-child(4) { width: 300px; height: 300px; background: #6ba89a; bottom: -110px; right: 18%; }

/* ===== Decorative floating shapes ===== */
.decor {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}
.decor__cloud, .decor__star, .decor__dot {
    position: absolute;
}
.decor__cloud { width: 100px; height: 60px; }
.decor__star  { width: 24px; height: 24px; }
.decor__dot   { width: 40px; height: 40px; }
.decor--1 { top: 10%; left: 4%;  animation: floatDecor 8s ease-in-out infinite; }
.decor--2 { top: 26%; right: 6%; animation: floatDecor 10s ease-in-out infinite reverse; }
.decor--3 { top: 58%; left: 3%;  animation: floatDecor 11s ease-in-out infinite; }
.decor--4 { top: 14%; right: 22%; animation: floatDecor 7s ease-in-out infinite; }
.decor--5 { top: 46%; left: 20%; animation: floatDecor 9s ease-in-out infinite reverse; }
.decor--6 { top: 70%; right: 4%; animation: floatDecor 8s ease-in-out infinite; }
.decor--7 { bottom: 18%; left: 10%; animation: floatDecor 12s ease-in-out infinite; }
.decor--8 { top: 34%; right: 34%; animation: floatDecor 12s ease-in-out infinite reverse; }

@keyframes floatDecor {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-20px) rotate(5deg); }
}


/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


/* ===== Intro ===== */

.intro {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
    padding-top: 90px;
}

/* ===== Header ===== */

.header {
    padding-top: 10px;
    padding-bottom: 10px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;

    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(123, 127, 189, 0.14);
    border-bottom: 1px solid rgba(123, 127, 189, 0.1);
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

/* ===== Logo ===== */

.header__logo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    color: #4a4a5a;
    text-decoration: none;
    opacity: .95;
}

.logo {
    height: 45px;
    width: auto;
}

.logo__contain {
    display: flex;
    flex-direction: column;
}

.logo__text {
    padding-top: 10px;
    padding-left: 10px;
    font-family: 'Comfortaa', cursive;
    font-size: 19px;
    font-weight: 600;
    color: #4a4a5a;
    letter-spacing: 1px;
}

.logo__line {
    display: block;
    position: relative;
    top: 6px;
    left: 12px;
    height: 3px;
    width: 190px;
    background: linear-gradient(90deg, #7b7fbd, #c98ba8, #6b9bc4);
    border-radius: 35%;
    opacity: 0.55;
}

.logo__underline {
    display: block;
    position: relative;
    top: 3px;
    left: 38px;
    height: 3px;
    width: 130px;
    background: linear-gradient(90deg, #6ba89a, #dba8bd);
    border-radius: 35%;
    opacity: 0.45;
}

/* ===== Nav ===== */

.nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 600;
}

.nav__link {
    background-color: rgba(255, 255, 255, 0);
    padding: 8px 16px;
    margin: 0 6px;
    color: #9da5be;
    text-decoration: none;
    border-radius: 18px;
    transition: .2s all linear;
}

.nav__enter {
    display: inline-block;
    position: relative;
    vertical-align: top;
    margin: 0 15px;
    color: #ffffff;
    text-decoration: none;
    padding: 5px 25px;
    background: linear-gradient(135deg, #7b7fbd, #9a8ec4);
    border: 1px solid transparent;
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(123, 127, 189, 0.3);
    transition: .2s all linear;
}

.nav__enter.show {
    display: none;
}

.nav__link:hover {
    color: #7b7fbd;
    background-color: rgba(123, 127, 189, 0.1);
}

.nav__enter:hover {
    background-color: #ffffff;
    background-image: none;
    color: #7b7fbd;
    box-shadow: 0 4px 16px rgba(123, 127, 189, 0.4);
}

/*NAME*/

.name1,
.name2,
.name3,
.name4,
.name5 {
    background-color: rgba(123, 127, 189, 0);
    padding: 6px 5px;
    margin: 0 15px;
    color: #4a4a5a;
    font-weight: 800;
    text-transform: none;
    transition: .2s all linear;
}

.name1:hover,
.name2:hover,
.name3:hover,
.name4:hover,
.name5:hover {
    color: #c98ba8;
}


/* ===== AUTORIZATION ===== */

.introAutorization {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 101;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #f6f4fb 0%, #faf3f7 100%);
}

.introAutorization.show {
    display: none;
}

.autorizationLogin {
    display: flex;
    flex-direction: column;
    text-align: center;
    align-content: center;
    align-items: center;
    margin-top: 200px;
}

.autorizationBox {
    height: 200px;
    width: 380px;
    background: linear-gradient(160deg, rgba(123, 127, 189, 0.18) 0%, rgba(201, 139, 168, 0.16) 100%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(123, 127, 189, 0.18);
    transition: all .3s linear;
}

.autorizationBox:hover {
    box-shadow: 0 10px 36px rgba(123, 127, 189, 0.28);
    border-radius: 28px;
    transform: translateY(-2px);
}

/* LOGIN */

.enterAutorization {
    display: none;
    color: #4a4a5a;
    padding: 10px 25px;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    transition: all .2s linear;
}

.enterAutorization.show {
    display: block;
}

.logoAutorization {
    margin-top: 10px;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(107, 155, 196, 0.35);
    height: 80px;
    width: auto;
    opacity: .9;
    transition: all .2s linear;
}

.logoAutorization:hover {
    box-shadow: 0 8px 24px rgba(123, 127, 189, 0.5);
    transform: scale(1.05);
}

label {
    color: #6a6a7a;
    display: inline-block;
    margin-left: 0px;
    padding-top: 0px;
    font-size: 16px;
}

input {
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    outline: none;
}

input[type=password] {
    color: #6a6a7a;
    padding-left: 14px;
    margin: 12px 18px;
    width: 290px;
    height: 40px;
    border: 1px solid #e2dced;
    border-radius: 14px;
    box-shadow: inset 0 1px 3px rgba(123, 127, 189, 0.12), 0 0 0 5px rgba(255, 255, 255, 0.6);
    -webkit-transition: all .4s ease;
    -moz-transition: all .4s ease;
    transition: all .4s ease;
}

input[type=name]:hover,
input[type=password]:hover {
    border: 1px solid #c98ba8;
    box-shadow: inset 0 1px 3px rgba(201, 139, 168, 0.15), 0 0 0 5px rgba(201, 139, 168, 0.12);
}

input[type=name]:focus,
input[type=password]:focus {
    border: 1px solid #7b7fbd;
    box-shadow: inset 0 1px 3px rgba(123, 127, 189, 0.12), 0 0 0 5px rgba(123, 127, 189, 0.12);
}

.tittleAutorization {
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Comfortaa', cursive;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    height: 80px;
    color: #4a4a5a;
}

input[type=checkbox] {
    margin-left: 20px;
    margin-top: 30px;
}

.check {
    margin-left: 3px;
    font-size: 11px;
    color: #6a6a7a;
    text-shadow: 0 1px 0 #fff;
}

input[type=submit] {
    float: right;
    margin-right: 20px;
    margin-top: 20px;
    width: 80px;
    height: 30px;
    font-size: 14px;
    font-weight: bold;
    color: #ffffff;
    background-image: linear-gradient(135deg, #7b7fbd 0%, #9a8ec4 100%);
    border-radius: 30px;
    border: none;
    box-shadow: 0 4px 12px rgba(123, 127, 189, 0.35), inset 0 1px 0 rgba(255, 255, 255, .4);
    cursor: pointer;
    transition: all .2s linear;
}

input[type=submit]:hover {
    background-image: linear-gradient(135deg, #c98ba8 0%, #dba8bd 100%);
    box-shadow: 0 4px 16px rgba(201, 139, 168, 0.4), inset 0 1px 0 rgba(255, 255, 255, .4);
}

input[type=submit]:active {
    transform: scale(.96);
}

/* ===== TITTLE CONTAIN ===== */

.tittleContain {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.intro__badge {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(123, 127, 189, 0.2);
    box-shadow: 0 4px 14px rgba(123, 127, 189, 0.12);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #7b7fbd;
    margin-bottom: 18px;
}

.intro__tittle {
    margin: 0;
    font-size: 56px;
    font-weight: 500;
    line-height: 1.15;
    color: #4a4a5a;
}

.intro__tittleAccent {
    background: linear-gradient(90deg, #7b7fbd, #c98ba8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* SVG scientist */
.scientist__logo {
    height: 240px;
    width: 168px;
    filter: drop-shadow(0 10px 20px rgba(123, 127, 189, 0.25));
    animation: floatScientist 5s ease-in-out infinite;
}

@keyframes floatScientist {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-14px); }
}

.scientist__book {
    transform-origin: 70px 117px;
    animation: bookWiggle 4s ease-in-out infinite;
}

@keyframes bookWiggle {
    0%, 100% { transform: rotate(0deg); }
    25%      { transform: rotate(-3deg); }
    75%      { transform: rotate(3deg); }
}

.scientist__butterfly {
    animation: butterflyFly 6s ease-in-out infinite;
}

@keyframes butterflyFly {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    30%      { transform: translate(-6px, -14px) rotate(-8deg); }
    60%      { transform: translate(5px, -6px) rotate(8deg); }
}

/* ===== Intro subinner ===== */

.intro__subinner {
    display: flex;
    justify-content: flex-end;
    margin-top: 40px;
}

.subinner__tittle {
    position: relative;
    top: 40px;
    width: 40%;
    padding-right: 50px;
    padding-left: 0px;
}

.sub__tittle {
    font-weight: 500;
    font-size: 24px;
    line-height: 1.45;
    color: #4a4a5a;
}

.intro__components {
    position: relative;
    top: 40px;
    display: flex;
    flex-direction: column;
    width: 70%;
    justify-content: flex-end;
    gap: 6px;
}

/* ===== COMPONENTS ===== */

.componentsBlock {
    display: block;
    position: absolute;
    top: -10px;
    left: 120px;
    z-index: 100;
    height: 200px;
    width: 650px;
}

.componentsBlock.show {
    display: none;
}

.components {
    margin: 5px;
    padding: 16px 22px;
    width: 75%;
    box-shadow: 0 4px 18px rgba(123, 127, 189, 0.14);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    transition: .2s all linear;
    background: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    color: #4a4a5a;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.components:hover {
    box-shadow: 0 8px 28px rgba(123, 127, 189, 0.28);
    color: #7b7fbd;
    background-color: #ffffff;
    transform: translateY(-3px) scale(1.02);
}

.components:active {
    transform: scale(.98);
}

.component__tittle {
    padding: 2px;
    font-size: 16px;
    font-weight: 600;
}

.component__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(123, 127, 189, 0.12);
    flex-shrink: 0;
    transition: .2s all linear;
}

.components:hover .component__arrow {
    background: linear-gradient(135deg, #7b7fbd, #9a8ec4);
}

.components:hover .component__arrow svg path {
    stroke: #ffffff;
}

/* ===== UNDERFOOTER ===== */

.underfooter {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: auto;
    border-top: 1px solid rgba(123, 127, 189, 0.15);
    background: linear-gradient(180deg, rgba(246, 244, 251, 0.4) 0%, rgba(250, 243, 247, 0.85) 100%);
    width: 100%;
    position: relative;
    z-index: 2;
}

.underfooter__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 0;
}

.underfooter__logo {
    font-size: 17px;
    font-weight: 600;
    color: #6a6a7a;
}

.underfooter__sign {
    height: auto;
    width: 100%;
    font-weight: 500;
    font-size: 11px;
    color: #9da5be;
    padding-bottom: 14px;
}


/* ===== Адаптация ===== */

@media (max-width: 991px) {
    .intro__tittle {
        font-size: 44px;
    }
    .subinner__tittle {
        width: 50%;
    }
    .intro__components {
        width: 90%;
    }
    .components {
        width: 100%;
    }
    .scientist__logo {
        height: 200px;
        width: 140px;
    }
}

@media (max-width: 640px) {
    .header__inner {
        justify-content: center;
        text-align: center;
    }
    .logo__line {
        width: 140px;
    }
    .logo__underline {
        width: 90px;
        left: 28px;
    }
    .intro {
        padding-top: 130px;
        padding-bottom: 40px;
    }
    .tittleContain {
        flex-direction: column;
        text-align: center;
    }
    .intro__tittle {
        font-size: 30px;
    }
    .intro__tittle br {
        display: none;
    }
    .scientist__logo {
        height: 170px;
        width: 119px;
        margin-top: 10px;
    }
    .intro__subinner {
        flex-direction: column;
        align-items: center;
    }
    .subinner__tittle {
        width: 100%;
        top: 0;
        padding-right: 0;
        text-align: center;
    }
    .intro__components {
        width: 100%;
        top: 10px;
    }
    .components {
        width: 100%;
        padding: 14px 16px;
    }
    .autorizationBox {
        width: 92%;
    }
    input[type=password] {
        width: 80%;
    }
    .underfooter__inner {
        flex-direction: column;
        gap: 10px;
    }
}