@import url('https://fonts.googleapis.com/css?family=Open+Sans');

:root {
    font-family: "Open Sans", sans-serif;

}

body {
    max-width: 980px;
    min-width: 577px;
    margin: auto;
}

header {
    border-bottom: 3px solid black;
}

header .logo {
    font-family: 'Major Mono Display', monospace;
    font-size: 3rem;
    /*text-align: center;*/
    /*margin: 24px auto;*/
    font-weight: bold;
}

header .wrapper {
    display: flex;
    justify-content: space-between;
}

.navbar {
    display: flex;
    padding: 1em;
    justify-content: space-around;

}

header .search,
header .contacts {
    margin-top: 2em;

}

form>div {
    display: flex;
    margin-bottom: 8px;
}

label {
    width: 150px;

}

form input[type=submit] {
    margin-left: 150px;
    margin-bottom: 8px;

}


footer {
    padding: 1em;
    color: #e2d7d7;
}

footer .copyright {
    padding: 1em 1em;
    padding-bottom: 0;
    color: darkcyan;
    text-align: center;
    margin-top: 1em;
}

footer .socials {
    display: flex;
    align-items: center;

}

footer .socials a {
    margin-left: 1em;

}



.carousel.slide {
    height: 450px;
    overflow: hidden;
    margin-bottom: 16px;
}

.trainers figure {
    display: flex;
}

.trainers img {
    width: 157px;
    height: 155px;
    flex-shrink: 0;
}

.trainers figure figcaption {
    margin-left: 16px;
}

h2 {
    margin: 24px 0 18px;
}

h3 {
    margin: 16px 0 16px;
    font-size: 18px;
}

/*mobile version*/

@media (max-width: 990px) {
    .logo {
        height: 150px
    }

    .table {
        display: none;
    }

}

@media (min-width: 992px) {
    .alternative {
        display: none;
    }


}

@media (max-width: 577px) {
    .d-flex wrapper {
        display: none;
    }
    .logo {
        align-items: center;
    }
}
