body {
    font-family: 'Source Sans 3', sans-serif;
    margin: 0;
    background-image: url(imagesmain/bg.jpg);
    height: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

.header {
    position: fixed;
    top: 0;
    width: 100%;
}

.container1 {
    padding-top: 50px;
    margin: 0 147px;
}

.header-line {
    display: flex;
    top: 0;
    width: 100%;
    align-items: center;
    justify-content: space-around;
    padding-top: 20px;
    padding-bottom: 20px;
    background: rgba(0, 0, 0, 0.596);
    box-shadow: 0px 5px 5px hsla(0, 0%, 0%, 0.596);
}
.logo {
    width: 250px;
}

.nav-item {
    color: white;
    text-decoration: none;
    font-size: 29px;
    font-weight: 900;
    margin-right: 25px;
    transition: color 0.3s linear;
}

.nav-item:hover {
    color: aqua;
}

.button-reg {
    background-color: #23ab3a;
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    font-size: 25px;
    border-radius: 10px;
    margin-right: 20px;
    transition: background-color 0.2s linear;
}

.button-reg:hover {
    background-color: #47852d;
}

.button-enter {
    background-color: #369fe0;
    color: white;
    text-decoration: none;
    padding: 5px 47px;
    font-size: 25px;
    border-radius: 10px;
    transition: background-color 0.2s linear;
}

.button-enter:hover {
    background-color: #318fca;
}

.header-title {
    color: white;
    font-size: 53px;
    font-weight: bold;
    margin-top: 67px;
}

.header-title p {
    text-shadow: 0px 4px 6px black;
    margin: 0;
}

.header-desc {
    text-align: left;
    color: white;
    font-size: 28px;
    text-shadow: 0px 4px 6px black;
}

.header-button {
    text-decoration: none;
    font-size: 22px;
    font-weight: bold;
    background-color: #58b632;
    color: white;
    padding: 5px 30px;
    border-radius: 10px;
    border: 3px solid #3b6e26;
    transition: background-color 0.2s linear;
}

.header-button:hover {
    background-color: #47852d;
}
/*-------------------------------------------*/
.container {
    margin: 110px 67px 0px 67px;
    color: white;
    text-shadow: 0px 4px 6px black;
}
.about {
    display: flex;
    justify-content: space-between;
}
.about-desc {
    width: 50%;
    font-size: 24px;
    padding-right: 10px;
}
p {
    font-size: 55px;
    line-height: 0;
    margin-bottom:45px;
}
.about-img {
    width: 50%;
    height: 300px;
    margin-top: 35px;
    border: 1px solid black;
    border-radius: 10px;
    box-shadow: 0px 5px 5px hsla(0, 0%, 0%, 0.596);
}
.about-video {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    margin-bottom: 30px;
}
.about-video video {
    width: 45%;
    border-radius: 10px;
    box-shadow: 0px 5px 5px hsla(0, 0%, 0%, 0.596);
}
.contacts {
    width: 50%;
    font-size: 24px;
}
#open {
    color: #04ceff;
    text-shadow: 0px 4px 6px black;
    text-decoration: none;
    font-size: 35px;
    font-weight: 900;
    transition: color 0.3s linear;
}
@media (max-width: 1350px) {
    .header-line {
        padding-bottom: 60px;
    }
    nav {
        position: fixed;
        top: 80px;
        width: 100%;
        user-select: none;
        text-align: center;
        padding-left: 20px;
    }
    .about-img {
        margin-top: 50px;
    }
}
@media (max-width: 1160px) {
    .about-desc {
        font-size: 20px;
    }
    .contacts {
        font-size: 20px;
    }
}
@media (max-width: 900px) {
    .container {
        margin: 110px 37px 0px 37px;
    }
}
@media (max-width: 777px) {
    .about-desc {
        font-size: 16px;
    }
    .contacts {
        font-size: 16px;
    }
    .about-img {
        height: 200px;
    }
    p {
        font-size: 50px;
        margin-top: 70px;
    }
}
@media (max-width: 694px) {
    .header-line {
        padding-bottom: 95px;
    }
    .button-enter {
        padding: 5px 5px;
    }
    .button-reg {
        margin-right: 10px;
    }
    .about {
        display: block;
        text-align: center;
    }
    .about-desc {
        width: 100%;
    }
    .about-img {
        width: 80%;
        margin-top: 10px;
    }
    .container {
        margin-top: 200px;
    }
    .about-video {
        display: block;
        text-align: center;
        margin-top: 10px;
    }
    .about-video video {
        
        width: 100%;
    }
    .contacts {
        width: 100%;
    }
    p {
        font-size: 40px;
        margin-bottom: 30px;
    }
}
@media (max-width: 365px) {
    .button-reg {
        border-radius: 10px;
        font-size: 12px;
    }
    .button-enter {
        border-radius: 10px;
        font-size: 12px;
    }
    .header-line {
        padding-top: 10px;
    }
    nav {
        top: 45px;
    }
}
@media (max-width: 530px) {
    .header-line {
        padding-bottom: 50px;
    }

    .logo {
        width: 150px;
    }

    nav {
        top: 70px;
    }

    .nav-item {
        font-size: 15px;
    }

    .button-reg {
        font-size: 15px;
    }

    .button-enter {
        font-size: 15px;
    }
    #open {
        font-size: 17px;
    }
    .container {
        margin-top: 140px;
    }
    .about-img {
        width: 100%;
        margin-top: 10px;
        height: 150px;
    }
}
@media (max-width: 415px) {
    .button-reg {
        border-radius: 10px;
        font-size: 12px;
    }
    .button-enter {
        border-radius: 10px;
        font-size: 12px;
    }
    .header-line {
        padding-top: 10px;
    }
    nav {
        top: 45px;
    }
    .container {
        margin: 120px 17px 0 17px;
    }
    .contacts {
        margin-bottom: 10px;
    }
}