/* font-family: 'Amatic SC', cursive;      400, 700      title
   font-family: 'Jost', sans-serif;        400           nav also
   font-family: 'Poiret One', cursive;     400           text */

body {
    margin: 0;
    padding: 0;
    color: #808080;
    line-height: 1.6;
    font-weight: 400;
    font-family: 'Poiret One', cursive;
    background-color: #f5f5f5;
}

*, *:before, *:after {
    box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.container_small {
    width: 100%;
    max-width: 800px;
}

/* Header */
.header {
    height: 85vh;
}

.header_top {
    height: 10%;
    padding: 20px 0;
}

.header_top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header_logo {

    font-family: 'Amatic SC', cursive;

    font-size: 30px;

    margin: -3px;
    word-break: break-word;

}


@media screen and (max-width: 600px) {
    .nav_btn,
    .nav_btn:not(:last-child) {
        display: none;
    }

    .nav_btn#contacts_btn,
    .nav_btn[href="../index.html"] {
        display: inline-block;
    }
}


/* Navigation */
.nav_btn {
    margin-right: 20px;
    border: none;
    color: #131313;
    text-transform: uppercase;
    text-decoration: none;
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    background: none;
    cursor: pointer;
    font-size: 14px;
}

.nav_btn:last-child {
    margin-right: 0;
}

.nav_btn_active, .nav_btn:hover {
    color: #ffdd00;
}

.header_bottom {
    background: url(../img/home/header-photo.jpg) center no-repeat;
    background-size: cover;
    height: 90%;
    display: flex;
    align-items: center;
}

.header_bottom .container_small {
    text-align: center;
}

.header_suptitle {
    text-transform: uppercase;
    color: #fff;
    letter-spacing: 0.5em;
    font-family: 'Jost', sans-serif;
}

.header_suptitle:before, .header_suptitle:after {
    content: "";
    display: inline-block;
    width: 100px;
    height: 3px;
    background-color: #fff;
}

.header_title h1 {
    font-size: 87px;
    text-transform: uppercase;
    margin: 20px 0 10px;
    color: #fff;
    font-family: 'Amatic SC', cursive;
}

.header_btn {
    color: #000;
    background-color: #ffdd00;
    text-decoration: none;
    border: 1px #000 solid;
    padding: 8px 20px;
    border-radius: 5px;
    letter-spacing: 0.2em;
    font-family: 'Jost', sans-serif;
    transition: all .3s linear;
}

.header_btn:hover {
    background-color: #d3bc26;
    padding: 10px 22px;
    font-size: 17px;
}

/* About */
.about {
    margin: 80px 0;
}

.about .container {
    display: flex;
    align-items: center;
}

.about_left {
    width: 50%;
}

.about_left img {
    max-width: 100%;
    object-fit: cover;
}

.about_right {
    width: auto;
    padding: 50px;
    background-color: #fff;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.about_title {
    font-family: 'Amatic SC', cursive;
}

/* Section */
.section {
    text-align: center;
    margin: 80px 0;
}

.section_title {
    font-family: 'Amatic SC', cursive;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
}

/* Review */

.review_item {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.slider_name h3 {
    font-size: 24px;
    user-select: none;
}

.slider_text {
    text-align: justify;
    user-select: none;
}

.slick-track {
    display: flex;
    align-items: flex-start;
}

.slick-list {
    overflow: hidden;
}

.slick-dots {
    display: flex;
    justify-content: center;
    align-items: center;
}

.slick-dots li {
    list-style: none;
    margin: 0 5px;
}

.slick-dots button {
    font-size: 0;
    width: 16px;
    height: 16px;
    background-color: #131313;
    border-radius: 999px;
    outline: none;
    cursor: pointer;
}

.slick-dots li.slick-active button {
    background-color: #ffdd00;
    border-color: #131313;
}

/* Gallery */
.gallery_row {
    display: flex;
    justify-content: space-between;
}

.gallery_item {
    margin: 10px;
    overflow: hidden;
    position: relative;
    transition: opacity 0.3s  linear;
}

.gallery_item img {
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: cover;
}

.gallery_item:hover img {
    opacity: 0.5;
}

.gallery_item:hover .gallery_text a {
    opacity: 1;
}

.gallery_text a {
    position: absolute;
    top: 70%;
    left: 0;
    text-align: center;
    z-index: 10;
    text-transform: uppercase;
    opacity: 0;
    width: 100%;
    color: #000;
    text-decoration: underline;
    font-size: 24px;
}

/* Footer */
.footer {
    margin: 50px 0 20px 0;
}

.footer_bio {
    display: flex;
    align-items: center;
}

.footer_bio_img {
    width: 25%;
}

.footer_bio_img img {
    width: 60%;
    border-radius: 999px;
}

.footer_bio_text {
    width: 75%;
}

.footer_bio_text:before, .footer_bio_text:after {
    content: "";
    display: block;
    width: 50%;
    height: 1px;
    background-color: #3366ff;
    margin: 0 auto;
}

.footer_social {
    display: flex;
    justify-content: space-between;
    margin: 50px 0;
}

.social_item {
    text-align: center;
}

.social_icon {
    font-size: 48px;
}

.social_name a {
    border-radius: 999px;
    border: 1px transparent solid;
    padding: 10px 35px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
}

.whatsapp, .whatsapp_name a {
    color: #43d854;
    transition: color .3s linear;
}

.whatsapp_name a:hover {
    color: #fff;
    background-color: #43d854;
}

.telegram, .telegram_name a {
    color: #27aade;
    /*background-color: #e5f6ff;*/
    transition: color, background-color .3s linear;
}

.telegram_name a:hover {
    color: #fff;
    background-color: #27aade;
}

.instagram, .instagram_name a {
    color: #3f729b ;
    /*background-color: #f9f0ff;*/
    transition: color, background-color .3s linear;
}

.instagram_name a:hover {
    color: #fff;
    background: #3f729b;
}

.youtube, .youtube_name a {
    color: #FF0000;
    transition: color, background-color .3s linear;
}

.youtube_name a:hover {
    color: #fff;
    background-color: #FF0000;
}

.footer_contacts {
    display: flex;
    justify-content: center;
}

.footer_contact_item {
    margin: 20px 50px 10px;
}

.footer_contact_item a {
    text-decoration: none;
    letter-spacing: 0.2em;
    font-weight: 700;
}

/* Copyright */
.copyright {
    background-color: #5b5858;
    padding: 10px 0;
}

.copyright .container {
    text-align: center;
    color: #fff;
}

/* Media */
@media (max-width: 620px) {
    /* Header */
    .header {
        height: 60vh;
    }

    .header_text {
        margin-top: 20%;
    }

    .header_suptitle {
        letter-spacing: 0.3em;
    }

    .header_title h1 {
        font-size: 55px;
    }

    .header_suptitle:before, .header_suptitle:after {
        width: 40px;
    }

    /* Navigation */
    .nav button {
        display: none;
    }
}

@media (max-width: 500px) {
    /* Header */
    .header_suptitle:before, .header_suptitle:after {
        width: 30px;
    }

    .header_title {
        font-size: 45px;
    }

    /* Advantages */
    .advantages_row {
        flex-wrap: wrap;
    }

    /* About */
    .about_right {
        padding: 30px;
    }

    /* Gallery */
    .gallery_row {
        flex-wrap: wrap;
    }

    /* Footer */
    .footer_social {
        display: block;
    }

    .social_item {
        margin: 30px 0;
    }
}

@media (max-width: 400px) {
    /* Phone */
    .phone a {
        padding: 5px 5px;
    }

    /* Header */
    .header_suptitle {
        letter-spacing: 0.1em;
    }

    .header_title h1 {
        font-size: 45px;
        margin: 20px 0;
    }

    .header_suptitle:before, .header_suptitle:after {
        display: none;
    }

    /* About */
    .about_right {
        max-height: 300px;
        overflow: scroll;
    }

    /* Footer */
    .footer_contacts {
        display: block;
        text-align: center;
    }
}

@media (max-height: 950px) {
    /* Header */
    .header {
        height: 80vh;
    }
}

@media (max-height: 600px) {
    /* Header */
    .header_top {
        height: 15%;
    }
}

@media (max-height: 530px) {
    /* Header */
    .header_top {
        height: 20%;
    }

    .header_title h1 {
        margin: 20px 0 5px;
    }
}