@font-face {
    font-family: 'Montserrat';
    src: url(../fonts/Montserrat-VariableFont_wght.ttf);
    font-weight: 1999;
    font-style: normal;
}
html{
    box-sizing: border-box;
}
*,
*::before,
*::after{
    box-sizing: border-box;
}
button {
    padding: 0;
    border: none;
    font: inherit;
    color: inherit;
    background-color: transparent;
    cursor: pointer;
}
a{
    color: inherit;
    text-decoration: none;
}
li{
    list-style: none;
}
img{
    max-width: 100%;
}
body{
    font-family: 'Montserrat', sans-serif;
    color:#000;
    font-size: 1vw;
    line-height: 1.6;
    font-weight: 400;
    background-color: #fff;
    position: relative;    
    overflow: auto;
}
input {
    all: unset;
}
.header {
    background-color: #fff;
    color: #000;
    /* max-height: 96px; */
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    max-width: 270px;
}

.collapse {
    flex-grow: 0;
}

.links {
    display: flex;
    align-items: center;
    font-size: 1rem;
    gap: 2rem;
    font-weight: 600;
}

.link{
    transition: color .3s ease;
}
.link:hover{
    color: #8a2be2;
}


.main{
    background-color: #4e54c8;  
    background: -webkit-linear-gradient(to left, #8f94fb, #4e54c8);  
    width: 100%;
}
.main-section{
    /* height: calc(100vh - 96px); */
    position: relative;
    padding-bottom: 120px;
}
.main .container{
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 10;
}
.header-main{
    margin-top: 48px;
}
.header-main .title{
    text-align: center;
    color: #fff;
}
.header-main .title span {
    background: linear-gradient(90deg, rgba(250,168,207,1) 10%, rgba(236,93,158,1) 45%, rgba(240,88,158,1) 100%);
    -webkit-background-clip: text; /* Для применения фона через текст */
    -webkit-text-fill-color: transparent; /* Прозрачный текст, чтобы показать фон */
}

.header-main p {
    color: #ccc;
    text-align: center;
    margin-top: 20px;
    font-size: 16px;
}
.rand__container {
    display: flex;
    margin-top: 4rem;
    padding: 4rem;
    gap: 2rem;
    justify-content: space-between;
    background: linear-gradient(180deg,#f8fcff,rgba(248,252,255,.7));
    border-radius: 1.5rem;
}
.settings__container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
}
.settings__container .title {
    color: #000;
}
.range {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}
.range .input__container{
    flex-basis: 50%;
}
.input__container {
    display: flex;
    flex-direction: column;
    gap: .1rem;
}
.input-label {
    text-align: left;
    font-size: .9rem;
}
.input {
    width: calc(100% - (15*2));
    background: #fff;
    padding: 15px 15px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 400;
    text-align: left;
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type="number"] {
  -moz-appearance: textfield;
}
.number-input__container{
    width: 100%;
    position: relative;
}
.number-input__container .input{
    padding-right: 32px;
}
.plus-num,
.minus-num{
    width: 24px;
    height: 26px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    padding: 4px;
    font-size: 1rem;
    line-height: 100%;
    background-color: #e6e6e6;
    cursor: pointer;
    transition: background-color .3s ease;
}
.plus-num{
    border-top-right-radius: 6px;
    top: 0;
    right: 0;
}
.minus-num{
    border-bottom-right-radius: 6px;
    bottom: 0;
    right: 0;
}

.btn {
    background-color: #2d35c7;
    color: #fff;
    transition: background-color .3s ease;
}


.range-input__container{
    width: 100%;
    position: relative;
}

.gen-icon{
    width: 32px;
    height: 32px;
}

.results__container {
    display: flex;
    flex-direction: column;
    flex-basis: 40%;
}
.results__container .subtitle{
    text-align: center;
    margin-bottom: 20px;
}
.subtitle {
    font-size: clamp(16px, 3vw, 24px);
}
.results {
    font-weight: 700;
    color: #0008a0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    font-size: 48px;
    column-gap: 2rem;
    flex-wrap: wrap;
    padding: 18px;
    text-align: center;
    background-color: #fff;
    border-radius: 15px;
}
.section{
    padding-top: 120px;
    position: relative;
    z-index: 10;
}
.title {
    font-size: clamp(22px, 4.5vw, 36px);
    color: #fff;
}
.termin {
    margin: 20px 0;
    background-color: #f0f0f0;
    border-left: 4px solid #000;
    font-size: 20px;
    padding: 12px;
    color: #000;
}
p{
    color: #fff;
    font-size: 16px;
}
.footer{
    text-align: center;
    padding: 40px 0;
    background-color: #4e54c8;
}
.footer p{
    font-size: 14px;
}
@media (hover:hover) {
    .plus-num:hover,
    .minus-num:hover{
        background-color: #ccc;
    }
    .btn:hover{
        background-color: #0008a0;
    }
}
@media (hover:none) {
    .plus-num:active,
    .minus-num:active{
        background-color: #ccc;
    }
    .btn:active{
        background-color: #0008a0;
    }
}

/* background */
.circles{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.circles li{
    position: absolute;
    display: block;
    list-style: none;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    animation: animate 25s linear infinite;
    bottom: -150px;
    
}

.circles li:nth-child(1){
    left: 25%;
    width: 80px;
    height: 80px;
    animation-delay: 0s;
}


.circles li:nth-child(2){
    left: 10%;
    width: 20px;
    height: 20px;
    animation-delay: 2s;
    animation-duration: 12s;
}

.circles li:nth-child(3){
    left: 70%;
    width: 20px;
    height: 20px;
    animation-delay: 4s;
}

.circles li:nth-child(4){
    left: 40%;
    width: 60px;
    height: 60px;
    animation-delay: 0s;
    animation-duration: 18s;
}

.circles li:nth-child(5){
    left: 65%;
    width: 20px;
    height: 20px;
    animation-delay: 0s;
}

.circles li:nth-child(6){
    left: 75%;
    width: 110px;
    height: 110px;
    animation-delay: 3s;
}

.circles li:nth-child(7){
    left: 35%;
    width: 150px;
    height: 150px;
    animation-delay: 7s;
}

.circles li:nth-child(8){
    left: 50%;
    width: 25px;
    height: 25px;
    animation-delay: 15s;
    animation-duration: 45s;
}

.circles li:nth-child(9){
    left: 20%;
    width: 15px;
    height: 15px;
    animation-delay: 2s;
    animation-duration: 35s;
}

.circles li:nth-child(10){
    left: 85%;
    width: 150px;
    height: 150px;
    animation-delay: 0s;
    animation-duration: 11s;
}



@keyframes animate {

    0%{
        transform: translateY(0) rotate(0deg);
        opacity: 1;
        border-radius: 0;
    }

    100%{
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
        border-radius: 50%;
    }

}

@media screen and (max-width:991px) {
    .rand__container{
        flex-wrap: wrap;
    }
    .settings__container,
    .results__container{
        width: 100px;
        flex-basis: 100%;
    }
    .results {
        min-height: 64px;
    }
}
@media screen and (max-width:767px) {
    .range{
        width: 100%;
        flex-wrap: wrap;
    }
    .range .input__container{
        flex-basis: 100%;
    }
    .number-input__container .input{
        width: calc(100% - (15px + 32px));
    }
    .section{
        padding-top: 44px;
    }
    .main-section{
        padding-bottom: 44px;
    }
}