@import url('https://fonts.googleapis.com/css?family=Inter:300,400,600,700,900&display=swap');

:root {
    --fontPrimary:'Inter', sans-serif;
    --fontColor: #20123a;
    --blue: #0060df;
    --buttonHover: #0250bb;
    --darkBlue: #081e48;
    --violet: #551a8b;
    --white: #fff;
    --lightgray: #f9f9fa;
    --transition: .4s ease;
    --padding: 100px 0;
}

/********************
BASIC STYLES
********************/
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--fontPrimary);
    font-size: 16px;
    color: var(--fontColor);
}
.container {
    width: 85%;
    margin: auto;
}
a {
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
li {
    list-style: none;
}
.btn {
    padding: 15px 30px;
    font-size: 1rem;
    color: var(--white);
    background: var(--blue);
    border:none;
    border-radius: 4px;
    transition: var(--transition);
    cursor: pointer;
    margin-bottom: 20px;
    font-weight: bold;
}
.btn:hover {
    background: var(--buttonHover);
}
/********************
nav
********************/
#navbar {
    color: var(--fontColor);
    font-weight: bold;
    position: fixed;
    width: 100%;
    padding: 20px 0;
    background-color: var(--white);
    box-shadow: 1px 1px 4px rgb(150, 150, 150);
    transition: .5s ease-in-out;
}
nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
nav ul li {
    display: inline-block;
    margin-right: 40px;
    color: var(--violet);
}
nav ul li a:hover {
    color: var(--fontColor);
    text-decoration: underline;
}
nav .subMenu:hover {
    color: var(--fontColor);
    text-decoration: underline;
}
nav ul li p {
    color: black;
}
nav img {
    width: 30px;
    height: 30px;
    vertical-align: middle;
}
nav ul {
    flex: 0 0 65%;
    position: relative;
}
nav .logo {
    font-size: 1.2rem;
    flex: 0 0 15%;
    color: var(--violet);
}
nav button{
    flex: 0 0 20%;
    order: 1;
    border: none;
    border: 2px solid var(--buttonHover);
    border-radius: 3px;
    padding: 8px 20px;
    color: var(--buttonHover);
    font-weight: bold;
    background-color: var(--white);
    font-size: .9rem;
    transition: var(--transition);
    cursor: pointer;
}
nav button:hover {
    color: var(--white);
    background-color: var(--buttonHover);
}
.btn-ham {
    display: none;
}
/********************
dropdown menu
********************/
.dropDown {
    position: absolute;
    display: none;
    background-color: var(--white);
    box-shadow: 0 16px 24px 2px rgba(29,17,51,.04),0 6px 32px 4px rgba(9,32,77,.12),0 8px 12px -5px rgba(29,17,51,.12);
    border-radius: 10px;
    padding: 20px;
    width: 500px;
    height: 75vh;
    top: 70px;
    left: -20px;
    transition: all 0.5s ease;
}
.dropDown .wrapper {
    display: flex;
    flex-wrap: wrap;
}
.dropDown.active {
    display: block;
}
.dropDown ul {
    display: flex;
    flex-wrap: wrap;
    flex: 0 0 50%;
}
.dropDown li {
    padding: 10px;
}
.dropDown ul li {
    margin-right: 20px;
}
.dropDown img {
    margin-right: 5px;
}
.dropDown p {
    margin: 10px 0 0 40px;
    font-size: .9rem;
    font-weight: normal;
}
.subMenu i {
    display: none;
}
.dropDown li:hover {
    background-color: rgb(243, 243, 243);
    padding: 10px;
    border-radius: 4px;
}
/********************
header
********************/
header {
    text-align: center;
    padding-top: 100px;
}
.headings {
    width: 50%;
    margin: auto;
    margin-top: 40px;
}
header img {
    width: 50%;
    height: 50%;
}
header h1 {
    font-size: 2.5rem;
    margin: 40px 0;
}
header p {
    letter-spacing: 1px;
    margin-bottom: 40px;
    line-height: 1.4;
}
header .small-links a {
    color: var(--fontPrimary);
    font-size: .8rem;
    display: block;
    margin-bottom: 20px;
}
header .small-links a:hover{
    text-decoration: underline;
}
header .small-links p {
    font-size: .8rem;
}
header .small-links p a {
    color: var(--blue);
    text-decoration: underline;
}
header .small-links p a:hover {
    text-decoration: none;
}
.bcg-img {
    background-image: url(img/header-bottom.png);
    background-position: 80% 100%;
    background-repeat: no-repeat;
    background-size: auto 420px;
    height: 420px;
    position: relative;
    z-index: -1;
}
.bcg-img img {
    bottom: 0;
    height: 337px;
    width: 1200px;
    position: absolute;
    right: 5%;
}
/********************
browser
********************/
.browser {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: var(--padding);
    margin-bottom: 50px;
}
.browser .text {
    flex: 0 0 47%;
}
.browser .img {
    flex: 0 0 47%;
}
.browser img {
    width: 100%;
    height: auto;
}
.browser span {
    font-weight: bold;
    margin-bottom: 20px;
    display: block;
}
.browser h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}
.browser p {
    line-height: 1.5;
}
/********************
tools
********************/
.tools {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 0px 100px;
}
.tools article {
    flex: 0 0 45%;
    margin-bottom: 100px;
}
.tools img {
    width: 100%;
    margin-bottom: 40px;
}
.tools span {
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
}
.tools h2 {
    margin-bottom: 20px;
}
.tools p {
    line-height: 1.5;
    margin-bottom: 20px;
}
.tools a {
    text-decoration: underline;
    color: var(--blue);
    font-weight: bold;
}
.tools a:hover {
    text-decoration: none;
}
/********************
feature
********************/
.feature {
    padding: var(--padding);
}
.feature span {
    display: block;
    text-align: center;
    font-weight: bold;
    margin-bottom: 10px;
}
.feature h2{
    text-align: center;
    font-size: 2rem;
    margin-bottom: 100px;
}
.feature .row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
.feature article {
    flex: 0 0 28%;
    margin-bottom: 100px;
}
.feature h3 {
    margin: 30px 0 10px 0;
}
.feature p {
    line-height: 1.5;
    margin-bottom: 20px;
}
.feature a {
    color: var(--blue);
    text-decoration: underline;
    font-weight: bold;
}
.feature a:hover {
    text-decoration: none;
}
/********************
cta
********************/
.cta {
    padding: var(--padding);
    background:linear-gradient(#09204d,#010817);
    color: var(--white);
}
.cta .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
.cta article {
    flex: 0 0 45%;
    margin: 60px 0;
}
.cta article:nth-child(1) {
    display: flex;
}
.cta article:nth-child(2) {
    display: flex;
}
.cta article:nth-child(4) a {
   color: var(--white);
   font-size: .8rem;
   font-weight: normal;
   margin-left: 65px;
}
.cta button {
    display: block;
}
.cta img {
    margin-right: 30px;
    display: block;
    width: 64px;
    height: auto;
    align-self: flex-start;
}
.cta .browser-img {
    width: 65%;
}
.cta h3 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}
.cta p {
    line-height: 1.5;
    margin-bottom: 20px;
}
.cta a {
    color: #80ebff;
    text-decoration: underline;
    font-weight: bold;
}
.cta a:hover {
    text-decoration: none;
}
/********************
signUp
********************/
.signUp {
    background-image: url(img/newsletter.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    padding: 50px 0;
}
.signUp .row {
    background-color: var(--white);
    border-radius: 8px;
    padding: 40px;
    display: flex;
    align-items: center;
}
.signUp h3 {
    font-size: 1.5rem;
    margin: 10px 0 20px 0;
}
.signUp img {
    flex: 0 0 12%;
    width: 100%;
}
.signUp div {
    flex: 0 0 83%;
}
.signUp article:first-child {
    flex: 0 0 75%;
    display: flex;
    justify-content: space-between;
}
.signUp article:last-child {
    flex: 0 0 25%;
}
.signUp input {
    width: 100%;
    padding: 10px;
    border-radius: 4px;
    border: 2px solid #9595a2;
    margin-bottom: 20px;
}
.signUp input:hover {
    border: 2px solid var(--blue);
}
::placeholder {
    font-size: 1rem;
    color: rgb(150, 150, 150);
}
.signUp .btn {
    width: 100%;
    padding: 10px;
    margin-bottom: 0;
}
/********************
footer
********************/
footer {
    background-color: var(--lightgray);
    padding: var(--padding);
}
footer .container {
    display: flex;
    justify-content: space-between;
}
footer article {
    flex: 0 0 22%;
}
footer h4 {
    margin-bottom: 20px;
}
footer li {
    line-height: 2;
    font-size: .9rem;
}
footer a {
    color: #9e9e9e;
    transition: var(--transition);
}
footer a:hover {
    color: black;
}
footer article:last-child div {
    margin-bottom: 40px;
}
footer article:last-child p {
    margin-bottom: 10px;
}
footer article:last-child i {
    margin-right: 25px;
    font-size: 1.3rem;
    color: #7b7b7c;
    transition: var(--transition);
}
footer article:last-child i:hover {
    color: black;
}
/********************
bottom-bar
********************/
.bottom-bar {
    background-color: var(--lightgray);
    font-size: .8rem;
}
.bottom-bar::before {
    content: "";
    height: 1px;
    width: 85%;
    margin: auto;
    background-color: gray;
    display: block;
}
.bottom-bar img {
    max-width: 100px;
    margin-right: 20px;
}
.bottom-bar a {
    text-decoration: underline;
    color: #7b7b7c;
    transition: var(--transition);
}
.bottom-bar a:hover {
    text-decoration: none;
    color: black;
}
.bottom-bar div:first-child a {
    margin-right: 10px;
    display: inline-block;
    vertical-align: middle;
}
.bottom-bar article div:nth-child(1) {
    margin-bottom: 40px;
}
.bottom-bar .container {
    display: flex;
    justify-content: space-between;
    padding: 50px 0;
}
.bottom-bar article:last-child {
    display: flex;
    flex-direction: column;
}
.bottom-bar article:last-child a {
    margin-bottom: 20px;
}
.bottom-bar article:last-child select {
    width: 170px;
    height: 40px;
    background-color: var(--white);
    border: 2px solid gray;
    border-radius: 4px;
}
.bottom-bar article:last-child select:hover {
    border: 2px solid var(--blue);
}
/********************
pop-up-promo
********************/
aside {
    background-color: var(--fontColor);
    color: var(--white);
    padding: 24px;
    border-radius: 4px;
    box-shadow: 0 8px 12px 1px rgba(29,17,51,.04),0 3px 16px 2px rgba(9,32,77,.12),0 5px 10px -3px rgba(29,17,51,.12);
    position: fixed;
    top: 50%;
    right: -8%;
    transform: translate(-50%,-50%);
    width: 300px;
    display: none;
}
aside h3 {
    font-size: 1.6rem;
    text-align: center;
    margin-top: 10px;
}
aside button {
    position: absolute;
    right: 10px;
    top: 5px;
    color: var(--white);
    background-color: transparent;
    border: none;
    font-size: 1.3rem;
}
aside ul {
    align-items: center;
    border-top: 2px solid rgba(255,255,255,.5);
    display: flex;
    flex-direction: column;
    list-style: none;
    margin: 32px 0 0;
    padding-top: 30px;
}
.promo-products a {
    align-items: center;
    color: #fff;
    display: flex;
    font-weight: 700;
    margin-bottom: 16px;
}
.promo-products  a:hover {
    text-decoration: underline;
}
aside img {
    width: 32px;
    height: 100%;
    display: block;
    margin-right: 16px;
}

/********************
RESPONSIVE
********************/
@media(max-width: 768px) {
    .container {
        width: 90%;
        margin: auto;
    }
    /* top-nav */
    #navbar {
        position: static;
        height: 12vh;
        width: 100%;
        padding: 20px 0;
        transition: none;
    }
    #navbar.active {
       height: 61vh;
       box-shadow: none;
    }
    nav .logo{
        flex: 0 0 50%;
    }
    nav button {
        position: absolute;
        top: 15%;
        left: 30%;
        display: none;
    }
    nav ul {
        position: absolute;
        top: 24%;
        display: flex; 
        flex-direction: column;
        width: 90%;
        background-color: var(--white);
        transform: translateY(-190%);
    }
    nav ul.active {
        transform: translateY(0%);
    }
    nav ul li {
        margin-right: 0px;
    }
    .btn-ham {
        display: block;
        border: none;
        padding: 5px 10px;
        color: var(--fontPrimary);
        font-size: 1.4rem;
        background-color: var(--lightgray);
        border-radius: 4px;
    }
    /* accordion - mobile menu*/
    .subMenu {
        position: relative;
        line-height: 2.5;
        border-top: 1px solid lightgray;
    }
    .subMenu i {
        display: block;
        position: absolute;
        right: 15px;
        top: 15px;
    }
    .subMenu i.active {
        transform: rotate(180deg);
    }
    .dropDown {
        position: relative;
        height: 0;
        top: 0;
        left: 0;
        width: 100%;
        padding: 0;
        transform: translateY(95%);
        box-shadow: none;
        border-radius: 0;
    }
    .dropDown.active {
        height: 73vh;
    }
    .dropDown p {
        display: none;
    }
    .dropDown ul {
        position: static;
        flex: 0 0 100%;
    }
    .dropDown li {
        padding: 8px 0;
        border-bottom: 1px solid lightgray;
    }
    .dropDown .brd-none{
        border-bottom: none;
    }
    .dropDown ul li {
        margin-right: 0px;
    }
    .dropDown a {
        font-size: .9rem;
    }
    .dropDown img {
        width: 24px;
        height: 24px;
        margin-right: 10px;
    }
    .dropDown li:hover {
        background-color: var(--white);
        padding: 8px 0;
        border-radius: 0px;
    }
    nav .subMenu:hover {
        text-decoration: none;
    }
    /* header */
    header {
        padding-top: 20px;
    }
    header img {
        width: 100%;
    }
    .headings {
        width: 75%;
        margin: auto;
    }
    /* browsers */
    .browser {
        padding: 50px 0;
    }
    .browser .text {
        flex: 0 0 100%;
        order: 2;
    }
    .browser .img {
        flex: 0 0 100%;
        margin-bottom: 20px;
    }
    .browser h2 {
        font-size: 1.7rem;
    }
    /* tools */
    .tools {
        padding: 0px 10px;
    }
    .tools article {
        flex: 0 0 100%;
        margin-bottom: 50px;
    }
    /* feature */
    .feature {
        padding: 50px 0;
        text-align: center;
    }
    .feature h2 {
        font-size: 1.7rem;
        margin-bottom: 50px;
    }
    .feature article {
        flex: 0 0 100%;
        margin-bottom: 50px;
    }
    /* cta */
    .cta {
        padding: 50px 0;
    }
    .cta article {
        flex: 0 0 100%;
        margin:20px 0;
    }
    .cta .browser-img {
        width: 90%;
        margin: auto;
    }
    .cta h3 {
        font-size: 2rem;
    }
    .cta article:last-child {
        text-align: center;
    }
    .cta article:last-child button{
        margin: auto;
    }
    .cta article:nth-child(4) a {
        margin-left: 0px;
    }
    /* signUp */
    .signUp .row {
       flex-wrap: wrap;
    }
    .signUp article:first-child {
        flex: 0 0 100%;
    }
    .signUp article:first-child p {
       display: none;
    }
    .signUp img {
       display: none;
    }
    .signUp article:last-child {
        flex: 0 0 100%;
    }
    /* footer */
    footer {
        padding: 50px 0;
    }
    footer .container {
        flex-wrap: wrap;
    }
    footer article {
        flex: 0 0 100%;
    }
    /* bottom-bar */
    .bottom-bar .container {
        flex-wrap: wrap;
    }
    .bottom-bar article:first-child {
        order: 2;
    }
    .bottom-bar article:last-child {
        order: 1;
        margin-bottom: 20px;
    }
    .bottom-bar img {
       margin-bottom: 20px;
    }
    .bottom-bar div:first-child a {
        display: block;
    }
}

