html {
    scroll-behavior: smooth;
}

body {
    font-family: "Montserrat", Arial, sans-serif;
}

.border {
    height: 30px;
    width: 100%;
    background-image: var(--gradient-accent);
}

.strong {
    font-weight: 600;
}

.btn {
    display: inline-block;
    text-transform: uppercase;
    padding: 5.5px 25px;
    background-image: var(--gradient-accent);
    color: var(--font-color-first);
    font-weight: 700;
}

.social-icon {
    color: var(--font-color-first);
    background-image: var(--gradient-accent);
    border-radius: 50%;
    text-align: center;
    width: 30px;
    height: 30px;
    display: inline-block;
    font-size: 20px;
}

.social-icon .fa-brands {
    vertical-align: sub;
}

.layout {
    max-width: 1200px;
    margin: 0 auto;
}

.hide {
    opacity: 0;
    pointer-events: none;
}

.link, .link:hover, .link:visited {
    text-decoration: underline;
}

@media only screen and (min-width: 992px) {
    .border {
        height: 50px;
    }

    .btn {
        font-size: 18px;
        font-weight: 600;
        margin-top: 8px;
        padding: 8px 25px;
    }
}

/* header */
.header {
    background-color: var(--bg-color-second);
    color: var(--font-color-second);
}

.header-container {
    padding: 40px 0 30px;
    display: grid;
    grid-template:
        "logo"
        "social" / 1fr;
}

.header-logo {
    grid-area: logo;
    display: grid;
    grid-template:
        "image text-1"
        "image text-2" / 80px 160px;
    margin: 0 auto 40px;
    align-items: center;
}

.header-logo__logo {
    grid-area: image;
    margin: -5px 10px 0 0;
    width: 70px;
    height: 70px;
}

.header-logo__header {
    grid-area: text-1;
    text-transform: uppercase;
    font-size: 18px;
    font-weight: 600;
    line-height: 19px;
    margin-bottom: 3px;
}

.header-logo__description {
    grid-area: text-2;
    text-transform: uppercase;
    font-size: 11px;
    line-height: 12px;
    color: var(--font-color-light)
}

.header-social {
    grid-area: social;
    font-size: 13px;
    letter-spacing: 1px;
}

.header-social__text {
    display: inline-block;
    margin: 0 10px;
    color: var(--font-color-accent);
    line-height: 18px;
    font-weight: 600;
}

.header-icons {
    margin: 10px 10px 0 0;
}

.header-icons__icon {
    margin-left: 15px;
}

.header-contact {
    display: none;
}

@media only screen and (min-width: 400px) {
    .header-icons {
        float: right;
        margin: -3px 10px 0 0;
    }
}

@media only screen and (min-width: 992px) {
    .header-container {
        grid-template: "social logo contact" / 350px 1fr 350px;
        padding: 40px 20px 30px;
    }

    .header-logo {
        margin: 60px auto 20px;
    }

    .header-social {
        width: 200px;
    }

    .header-social__text{
        font-size: 20px;
        margin: 0 30px;
    }

    .header-icons {
        float: none;
        margin: 15px 0 0;
    }

    .header-contact {
        display: block;
        line-height: 26px;
        grid-area: contact;
        text-align: right;
    }

    .header-contact__text {
        color: var(--font-color-accent);
        font-size: 20px;
        font-weight: 600;
    }
}

/* banner */
.banner-container {
    color: var(--font-color-second);
    background-color: var(--bg-color-second);
}

.banner {
    height: 300px;
    box-sizing: border-box;
    background-size: cover;
    background-repeat: no-repeat;
    background-position-x: center;
    background-position-y: 30%;
    position: relative;
}

.banner-header {
    text-transform: uppercase;
    font-size: 26px;
    font-weight: 400;
    line-height: 28px;
    padding: 0 20px;
    position: absolute;
    bottom: 30px;
    width: 100%;
    box-sizing: border-box;
}

.banner-header__small {
    display: block;
    font-size: 22px;
    margin-bottom: 3px;
}

.banner-space {
    height: 150px;
    background-color: var(--bg-color-second);
}

.banner-image-container {
    background-color: var(--bg-color-first);
    padding: 15px;
    margin: -185px auto 0;
    position: relative;
    max-width: 500px;
}

.banner-image-container__image {
    width: 100%;
    height: 100%;
}

@media only screen and (min-width: 992px) {
    .banner {
        height: 400px;
        background-position-y: 50%;
    }

    .banner-space {
        height: 100px;
    }

    .banner-image-container {
        background-color: transparent;
        padding: 0;
        text-align: right;
        max-width: initial;
        margin-left: 20px;
        margin-right: 20px;
    }

    .banner-image-container__image {
        width: 400px;
    }
}

@media only screen and (min-width: 1200px) {
    .banner-image-container {
        margin-left: auto;
        margin-right: auto;
        max-width: 1200px;
    }
}

/* directions */
.directions__header {
    text-transform: uppercase;
    font-weight: 500;
    font-size: 22px;
    text-align: center;
    margin: 15px;
}

.directions-text {
    background-repeat: no-repeat;
    background-position: 50px center;
    background-size: cover;
    grid-area: text;
}

.directions__p {
    margin: 0 20px;
    text-align: justify;
    color: var(--font-color-paragraph);
    line-height: 20px;
}

.directions-list {
    margin: 30px 50px 15px;
    color: var(--font-color-paragraph);
    line-height: 20px;
    counter-reset: elementcounter -1;
}

.directions-list__item:before {
    content: counter(elementcounter) " – ";
    counter-increment: elementcounter;
    font-weight: bold;
}

.directions__image {
    width: 100%;
    height: 100%;
    grid-area: image;
}

.directions__videos {
    margin: 15px 30px;
    grid-area: videos;
    display: grid;
    grid-template:
        "icon link1"
        "icon link2" / 40px 1fr;
    align-items: center;
    z-index: 1;
}

.directions-videos__icon {
    background-color: red;
    color: white;
    border-radius: 50%;
    height: 30px;
    width: 30px;
    font-size: 16px;
    text-align: center;
    padding-top: 3px;
    box-sizing: border-box;
    grid-area: icon;
}

.directions-videos__icon .fa-brands {
    vertical-align: sub;
}

.directions-videos__item {
    display: block;
    line-height: 22px;
}

@media only screen and (min-width: 992px) {
    .directions {
        margin-top: -77px;
        display: grid;
        grid-template:
            "videos videos"
            "image text" / 1fr 440px;
    }

    .directions__image {
        background-color: white;
        padding: 0 20px 20px;
    }

    .directions-text {
        margin-left: 20px;
    }
}

@media only screen and (min-width: 1200px) {
    .directions {
        grid-template: "videos videos"
            "image text" / 1fr 420px;;
    }
}

/* courses */
.courses {
    background-color: var(--bg-color-second);
    color: var(--font-color-second);
    text-align: right;
    font-size: 0;
}

.courses-header {
    padding: 50px 30px 50px 10px;
}

.courses-header__header {
    text-transform: uppercase;
    font-size: 26px;
    font-weight: 400;
    line-height: 30px;
}

.courses-header__small {
    text-transform: none;
    display: block;
    font-size: 18px;
}

.courses-header__description {
    font-size: 14px;
    display: inline-block;
    margin-top: 5px;
}

.courses__image {
    max-height: 500px;
    margin: 0 auto;
    display: block;
    max-width: 100%;
}

@media only screen and (min-width: 992px) {
    .courses {
        text-align: center;
    }

    .courses-header {
        text-align: right;
        width: 80%;
        max-width: 1200px;
        margin: 0 auto;
    }

    .courses__image {
        margin-bottom: -200px;
    }

    .courses-border {
        margin-bottom: 150px;
    }
}

/* offer */
.offer {
    padding: 30px 20px;
    text-align: center;
}

.offer__header {
    text-transform: uppercase;
    font-size: 26px;
    font-weight: 600;
}

.offer__p {
    color: var(--font-color-paragraph);
    text-align: justify;
    margin: 10px 0;
    line-height: 20px;
}

.offer__button {
    margin-top: 20px;
    padding: 10px 55px;
}

/* team */
.team-space {
    background-color: var(--bg-color-second);
    height: 200px;
}

.team-image {
    background-color: var(--bg-color-first);
    padding: 20px;
    width: 50%;
    margin: -190px auto 10px
}

.team-image__image {
    width: 100%;
}

.team-description {
    padding: 0 20px 30px;
    background-repeat: no-repeat;
    background-position: 50px center;
    background-size: cover;
    transform: scaleX(-1);
}

.team-description__container {
    transform: scaleX(-1);
}

.team-description__header {
    text-transform: uppercase;
    font-size: 26px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 30px;
}

.team-description__header--second {
    margin-top: 30px;
}

.team-description__strong {
    text-transform: uppercase;
    font-weight: 600;
    font-size: 18px;
    margin-top: 20px;
    display: block;
}

.team-description__p {
    color: var(--font-color-paragraph);
    text-align: justify;
    margin: 10px 0;
    line-height: 20px;
}

@media only screen and (min-width: 992px) {
    .content {
        display: grid;
        grid-template: "text image" / 1fr 300px;
        margin-right: 50px;
    }

    .offer {
        grid-area: text;
        padding-left: 50px;
    }

    .team-space, .team-border {
        display: none;
    }

    .team-image {
        grid-area: image;
        width: 300px;
        box-sizing: border-box;
        margin-top: -90px;
    }

    .team-description {
        padding-right: 50px;
        padding-bottom: 70px;
    }
}

@media only screen and (min-width: 1200px) {
    .content {
        margin-right: auto;
    }
}

/* footer */

.qr-image {
    width: 100px;
    margin: -50px 30px 0;
    padding: 10px;
    background-color: var(--bg-color-first);
    position: relative;
}

.qr-image__image {
    width: 100%;
}

.qr-text {
    text-transform: uppercase;
    font-weight: 600;
    text-align: right;
    margin: -22px 10px 0 0;
}

@media only screen and (min-width: 992px) {
    .qr-image {
        margin: -90px 0 0 100px;
        width: 250px;
        padding: 20px;
    }

    .qr-text {
        text-align: left;
        margin: -35px 0 0 420px;
        font-size: 22px;
    }
}

.footer {
    background-color: var(--bg-color-second);
    color: var(--font-color-second);
    font-size: 14px;
    letter-spacing: 1px;
    padding: 70px 50px 20px;
    margin-top: -67px;
}

.footer__header {
    color: var(--font-color-accent);
    font-weight: 600;
    line-height: 28px;
    margin-top: 20px;
}

.footer__strong {
    text-transform: uppercase;
    font-weight: 600;
    line-height: 22px;
}

.footer__text {
    line-height: 18px;
}

.footer-icons {
    margin: 30px 0;
}

.footer-icons__icon {
    margin-top: 20px;
}

.footer-icons__text {
    display: inline-block;
    margin-left: 10px;
    font-size: 8px;
}

@media only screen and (min-width: 400px) {
    .footer-icons__text {
        font-size: 12px;
    }
}

@media only screen and (min-width: 992px) {
    .footer {
        margin-top: -190px;
        padding: 10px 0 20px;
    }

    .footer__container {
        margin-left: 410px;
        margin-right: 100px;
    }

    .footer-icons {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        justify-items: center;
    }

    .footer-link {
        display: block;
        text-align: center;
    }
}
