*{
	box-sizing: border-box;
  	margin: 0;
  	padding: 0;
  	transition-duration: 400ms;
}

:root{
    --primary: #8338E3;
    --secondary: black;
    --black: #151515;
    --white: #FAF9F6;
    --gray: #4D4D4D;
    --light-gray: #DDDDDD
    --red: #FF0F0F;
    --green: #35CD15;
    --yellow: #FFDE21;
    --border: 1px solid var(--light-gray);
    --br-sm: 5px;
    --br-md: 10px;
    --br-lg: 15px;

    --font: 'Open Sans', sans-serif;
}

body, html{
  	scroll-behavior: smooth;
	position: relative;
	font-family: var(--font);
	font-size: 16px;
	color: var(--gray);
}

body, input, textarea, button{
    -webkit-font-smoothing: antialiased;
}

.hidden{
    display: none !important;
}


.dropdown-menu{
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border: var(--border);
    width: 95%;
    overflow-y: auto;
    max-height: 200px;
    display: none;
    margin-top: 1em;
    position: absolute;
    opacity:0;
}

.dropdown-menu.show{
    opacity:1;
    display: grid;
}

.dropdown-menu a{
    width:100%;
    text-decoration: none;
    padding: 15px 20px;
    color: var(--black);
    font-size: 14px;
}

.dropdown-menu a:hover{
    background: var(--light-gray);
}

#input-group-hidden{
    display: none;
}

#input-group-hidden.show{
    display: grid;
}

.ruian-no-results{
    padding: 15px 20px;
    font-weight: 400;
    background: var(--yellow);
    border-radius: 8px;
    display: none;
}

.ruian-no-results, .ruian-no-results a{
    color: white;
}


.ruian-no-results, .ruian-no-results a:hover{
    text-decoration: none;
}
.dropdown-item{
    cursor: pointer;
}

.loader{
    position: absolute;
    right: 28px;
    top: 182px;
    border: 3px solid var(--light-gray);
    border-top: 3px solid var(--purple);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1.5s ease-in-out infinite;
    display: none;
}

.loader.show{
    display: block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* -------- FONT SETUP -------- */
/* -------- FONT SETUP -------- */
/* -------- FONT SETUP -------- */

p{
    font-weight: 400;
    line-height: 1.2;
}

h1, h2, h3, H4{
    color: var(--black);
    line-height: 1.1;
}

h1.main-heading{
    font-size: 48px;
    font-weight: 900;
}

h1{
    font-size: 40px;
    font-weight: 900;
}

h2{
    font-size: 32px;
    font-weight: 900;
}

h3{
    font-size: 24px;
    font-weight: 900;
}

h4{
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

a{
    color: var(--gray);
    width: fit-content;
}

a:hover{
    text-decoration: none;
}

.btn{
    padding: 10px 15px;
    padding: 10px 15px;
    outline: none;
    border: none;
    border-radius: var(--br-sm);
    font-family: var(--font);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    color: var(--white);
    justify-content: center;
    letter-spacing: 0.5px;
    background: var(--primary);
    text-decoration: none;
    display: flex;

    &:hover{
        box-shadow: 0 0 0 3px var(--primary);
        border-radius: 2px;
    }
}

.box .button{
    display: block;
}

.cookies-bar{
    position: fixed;
    bottom: 30px;
    right: 30px;
    max-width: 550px;
    z-index: 10000;

    border-radius: var(--br-md);
    background-color: var(--light_purple);
    border: 1px solid var(--purple);
    padding: 15px;
    font-size:13px;

    @media screen and (max-width: 768px){
        width: calc(100% - 60px)
    }
    @media screen and (max-width: 576px){
        gap: 20px;
    }
}

.cookies-buttons{
    gap: 15px;

    @media screen and (max-width: 576px){
        flex-direction: column;
        gap: 10px;
    }
}

.cookies-button{
    color: var(--white);
    background: var(--purple);
    flex: 1;
    
    &:hover{
        box-shadow: 0 0 0 3px var(--purple);
    }
}
.cookie_check{
    width: auto;
    line-height:20px;
}
.cookie_checkboxes{
    padding:8px;
}

.promo{
    background-size: cover;
    background-repeat: no-repeat;
}

.promo-container{
    padding: 120px 0;
    gap: 15px;
    
    & h1{
        font-size: 48px;
        color: var(--white);
    }

    p{
        color: var(--white);
    }
}

.promo .slick-arrow, .slick-dots{

}

input, textarea, select, button{
    border: var(--border);
    outline: 2px solid transparent;
    font-family: var(--font);
    border-radius: var(--br-sm);
    padding: 10px 15px;
    font-size: 14px;
    height: fit-content;
    width: 100%;

    &:focus{
        outline-color: var(--primary);
    }

    &.error-shake{
        animation: shake 0.5s;
        animation-iteration-count: 1;
        outline-color: var(--red);
    }
}

.input-group{
    gap: 15px;
    grid-template-columns: 1fr 1fr;
}

.submit-group{
    gap: 5px;

    & .submit{
        flex: 1;
    }

    & .gdpr{
        font-size: 14px;
    }

    & .gdpr a{
        font-size: 14px;
        color: var(--gray);

        &:hover{
            color: var(--primary);
        }
    }
}

form{
    gap: 15px;
}

.input-error-group{
    position: relative;
}

.input-error{
    position: absolute;
    top: 110%;
    width: 100%;
    padding: 15px 20px;
    font-weight: 400;
    background: var(--red);
    border-radius: var(--br-sm);
    color: white;
}

@keyframes shake{
    0%{
        transform: translateX(0);
    }
    10%{
        transform: translateX(-2px);
    }
    20%{
        transform: translateX(2px);
    }
    30%{
        transform: translateX(-3px);
    }
    40%{
        transform: translateX(3px);
    }
    50%{
        transform: translateX(-4px);
    }
    60%{
        transform: translateX(4px);
    }
    70%{
        transform: translateX(-3px);
    }
    80%{
        transform: translateX(3px);
    }
    90%{
        transform: translateX(-2px);
    }
    100%{
        transform: translateX(2px);
    }
}
