/* 0. Font ========================================================================================================== */

@font-face {
    font-family: 'Gotham';
    src: local('Gotham Book'), local('Gotham-Book'),
    url('fonts/Gotham-Book.woff2') format('woff2'),
    url('fonts/Gotham-Book.woff') format('woff'),
    url('fonts/Gotham-Book.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Gotham';
    src: local('Gotham Bold'), local('Gotham-Bold'),
    url('fonts/Gotham-Bold.woff2') format('woff2'),
    url('fonts/Gotham-Bold.woff') format('woff'),
    url('fonts/Gotham-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

body, html {
    font-family: 'Gotham', Arial, sans-serif;
    text-rendering: geometricPrecision;
    -webkit-font-smoothing: antialiased;
}

/* 1. Common ======================================================================================================== */

body {
    background-image: url('./img/arrow_bg.png');
    background-repeat: no-repeat;
    background-position: right 200px;
    background-size: 600px auto;
}

h1 {
    font-size: 60px;
    line-height: 100%;
}

h2 {
    font-size: 64px;
    margin: 20px 0;
    line-height: 100%;
}

.subtitle {
    line-height: 1.2;
}

a {
    color: black;
    text-decoration: none;
}

.container {
    width: 1140px;
    margin: 0 auto;
}

.button {
    padding: 10px 20px;
    border: 1px solid black;
    border-radius: 5px;
}

.input {
    display: block;
    width: 100%;
    padding: 20px;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #D3D3D3;
    background: #F4F4F4;
    margin-bottom: 15px;
    box-sizing: border-box;
    font-family: inherit;
}

button {
    font-family: inherit;
}

.primary-btn {
    background-color: #FF5858;
    color: white;
    border: none;
    font-size: 20px;
    padding: 18px;
}

.checkbox-group {
    margin-bottom: 30px;
    text-align: left;
}

/* 2. Header ======================================================================================================== */

header {
    padding-top: 20px;
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-menu a {
    display: inline-block;
    margin-right: 30px;
}

a#logo {
    display: block;
    width: 200px;
}

header .primary-btn {
    padding: 8px 20px;
}

/* 3. Welcome ======================================================================================================= */

.welcome .container {
    padding: 100px 0;
    display: flex;
}

.welcome .subtitle {
    font-size: 24px;
    margin: 0 0 40px;
}

.welcome-links {
    display: flex;
}

.welcome-links a {
    display: inline-block;
    margin-right: 20px;
}

@media screen and (min-width: 1140px) {

    .welcome .img-wrap {
        display: flex;
        justify-content: center;
        flex-direction: column;
    }
}

/* 4. Courses ======================================================================================================= */

.courses .subtitle {
    font-size: 24px;
    max-width: 800px;
}

.courses-row {
    margin-bottom: 30px;
    display: flex;
}

.course {
    width: calc(33% - 10px);
    padding: 15px 15px 82px;
    color:  white;
    background-color: #8A9FEB;
    box-sizing: border-box;
    border-radius: 5px;
    cursor: pointer;
    position: relative;
    background-repeat: no-repeat;
    background-position: top right;
    background-size: 100% auto;
}

.courses-row .course:nth-child(1),
.courses-row .course:nth-child(2) {
    margin-right: 20px;
}

.course-head {
    min-height: 83px;
}

.course h3 {
    font-size: 24px;
    font-style: normal;
    font-weight: bold;
    line-height: normal;
    margin: 0 0 8px;
}

.courses-list {
    margin-top: 50px;
}

.course .subtitle {
    font-size: 14px;
    margin: 0 0 40px;
}

.courses-callback .x-title {
    font-size: 24px;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    color: #555;
}

.courses-callback .x-description {
    font-size: 16px;
    margin-bottom: 30px;
    text-align: center;
}

.course-image {
    height: 325px;
    border-radius: 5px;
    margin-bottom: 25px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.course-old-price {
    font-size: 20px;
    text-decoration: line-through;
    opacity: .5;
    margin-bottom: 0px;
    margin-top: 270px;
}

.course-price-block {
    display: flex;
    margin-bottom: 20px;
}

.price-rub {
    font-size: 26px;
    margin-right: 20px;
}

.price-desc {
    text-transform: uppercase;
    width: 110px;
    font-size: 13px;
}

.course-description {
    font-size: 14px;
    line-height: 1.2;
}

.courses-callback {
    width: calc(33% - 10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 2px solid #888;
    border-radius: 5px;
    padding: 15px;
    text-align: center;
    box-sizing: border-box;
}

.course-button {
    display: block;
    width: calc(100% - 30px);
    border-radius: 5px;
    text-align: center;
    background-color: white;
    padding: 15px;
    box-sizing: border-box;
    color: black;
    position: absolute;
    bottom: 15px;
    left: 15px;
}

#courses-callback-form {
    width: 100%;
}

#courses-callback-form .primary-btn {
    width: 100%;
    padding: 15px 15px;
    font-size: 16px;
}

.courses-list .courses-row:first-child .course:nth-child(2) {
    background-color: #F0EEFF;
    color: black;
}

.courses-list .courses-row:nth-child(2) .course:nth-child(1) {
    background-color: #E8F0FF;
    color: black;
}

/* 5. Persons ======================================================================================================= */

.persons .container {
    overflow: hidden;
}

.persons .subtitle {
    font-size: 24px;
    max-width: 600px;
    margin-bottom: 50px;
}

.persons-slider-inner {
    margin-bottom: 100px;
}

.person {
    width: 1140px;
    display: flex;
    background-color: #E8F0FF;
    margin-bottom: 40px;
}

.person-avatar {
    height: 425px;
    width: 350px;
    flex-shrink: 0;
    background-position: center;
    background-size: cover;
}

.person-text {
    padding: 35px;
}

h4.person-title {
    margin: 0 auto 20px;
    font-size: 36px;
    font-weight: normal;
}

.person-subtitle {
    font-size: 20px;
}

.person-description {
    line-height: 1.4;
    font-size: 16px;
}

/* 6. Gallery ======================================================================================================= */

.gallery h2,
.replies h2,
.gallery_numbers h2 {
    font-size: 48px;
}

.gallery_numbers .container, .gallery .container {
    display: flex;
    padding: 50px 0;
}

.gallery-slider-wrap {
    width: 500px;
    flex-shrink: 0;
    margin-left: 50px;
}

.gallery-slider-main {
    height: 330px;
    width: 100%;
    border-radius: 5px;
    background-size: cover;
    background-position: center;
}

/* 7. Callback ====================================================================================================== */

section.callback {
    padding: 50px 0;
}

.callback .container {
    background-color: #212121;
    padding: 60px 45px;
}

.form-wrap .x-text {
    width: 55%;
    color: white;
}

.form-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.callback h2 {
    font-size: 48px;
}

.callback .subtitle {
    font-size: 20px;
    line-height: 1.4;
}

.callback .checkbox-group {
    color: white;
}

.callback .primary-btn {
    width: 100%;
}

/* 8. Partners ===================================================================================================== */

.partners {
    padding: 50px 0;
    background: #F7F7F7;
}

.partners h2 {
    font-size: 36px;
    text-align: center;
    margin-bottom: 50px;
}

.partners-gallery {
    display: flex;
    justify-content: space-between;
}

.partner-block {
    width: 25%;
    height: 150px;
    background-size: 70% auto;
    background-position: center;
    background-repeat: no-repeat;
}

/* 9. Gallery and Numbers ========================================================================================== */

.gallery-slider-list-wrap {
    margin-top: 20px;
}

.gallery-slider-list-inner {
    overflow: hidden;
    height: 70px;
}

.gallery-slider-list-inner a {
    height: 70px;
    display: inline-block;
    margin-right: 10px;
    width: 111px;
    background-position: center;
    background-size: cover;
    cursor: pointer;
    border-radius: 5px;
}

.gallery .subtitle {
    font-size: 20px;
    line-height: 1.2;
}

.number-blocks {
    display: flex;
}

.number-block {
    width: calc(50% - 20px);
    margin-right: 20px;
}

.number-block .x-number {
    font-size: 48px;
    font-weight: bold;
}

.number-block .x-description {
    font-size: 16px;
}

/* 10. Replies =======================================================================================================*/

.replies .container {
    overflow: hidden;
}

.reply-slide {
    width: 560px;
    display: flex;
    margin-right: 50px;
    margin-bottom: 30px;
}

.reply-photo {
    height: 240px;
    width: 180px;
    background-size: cover;
    background-position: center;
    margin-right: 30px;
    border-radius: 5px;
    flex-shrink: 0;
}

.reply-text {
    line-height: 1.4;
    font-size: 14px;
    margin-bottom: 30px;
}

.reply-author {
    font-size: 28px;
    margin-bottom: 5px;
}

.reply-rating {
    background-image: url('./img/stars.png');
    background-position: left center;
    background-repeat: no-repeat;
    height: 25px;
    margin-bottom: 20px;
    position: relative;
    left: -8px;
}

.replies h2 {
    margin-bottom: 50px;
}

.reply-date {
    margin-top: 15px;
}

.courses-callback:first-child:last-child {
    display: none;
}

.lity-wrap {
    padding: 100px !important;
}
