* {
    padding: 0;
    margin: 0;
    /*outline: 1px solid rgba(246, 246, 246, 0.18);*/
    letter-spacing: 1px;
    scroll-behavior: smooth;
}

body {
    background-image: url("../img/bgNew.png");
    height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    background-color: black;
    background-attachment: fixed;
}

.container {
    height: 100%;
}

header .navbar-nav .nav-link {
    margin-left: 25px;
}
main {
    display: flex;
    width: 100%;
    height: 630px;
    margin-top: 7%;
    justify-content: space-around;

}
main h1 {
    display: flex;
    justify-content: center;
    text-align: center;
    align-items: center;
    width: 100%;
    color: white;
    font-size: 50px;
}
main div p {
    display: flex;
    width: 80%;
    height: 40%;
    color: white;
    text-align: center;
    align-items: center;
    font-size: 25px;
    margin-top: 15px;
}
.boxTitle {
    display: flex;
    flex-direction: column;
    align-items: center;
}

main div span {
    display: flex;
    align-items: center;
    text-align: center;
    width: 50%;
    height: 10%;
    margin: 30px;
    color: white;
    font-size: 18px;
}
main div div section {
    display: flex;
    text-decoration: none;
    margin-top: 40px;
}

.buttonTelegram {
    /*Стиль кнопки*/
    position: relative;
    overflow-x: hidden;
    display: inline-block;
    text-decoration: none;
    letter-spacing: 1px;
    color: white;
    padding: 13px 98px;
    margin: 10px;
    border-radius: 30px;
    border: none;
    background: rgba(45, 182, 253, 0.8);
    /*Анимация кнопки*/
    &:before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 30px;
        height: 100%;
        background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.2));
        transform: translateX(-60px) skewX(-45deg);
        animation: flareAnimation 2.5s infinite linear;
    }
}
.buttonWhatsApp {
    position: relative;
    overflow-x: hidden;
    display: inline-block;
    text-decoration: none;
    color: white;
    padding: 13px 98px;
    margin: 10px;
    border-radius: 30px;
    border: none;
    background: rgba(74, 200, 87, 0.8);
    /*Анимация кнопки*/
    &:before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 30px;
        height: 100%;
        background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.2));
        transform: translateX(-60px) skewX(-45deg);
        animation: flareAnimation 2.5s infinite linear;
    }
}


@keyframes flareAnimation {
    0% {
        left: -150%;
    }
    100% {
        left: 150%;
    }
}

.downArrow {
    /*Позиционирование кнопки*/
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.arrow-down {
    margin: 35px;
}

.arrow-down span {
    display: block;
    width: 30px;
    height: 30px;
    border-bottom: 3px solid #ffffff;
    border-right: 3px solid #ffffff;
    transform: rotate(45deg);
    margin: -10px;
    animation: arrow-down 4s infinite;
    border-radius: 2px;
}

.arrow-down span:nth-child(2) {
    animation-delay: -0.2s;
}

.arrow-down span:nth-child(3) {
    animation-delay: -0.4s;
}


@keyframes arrow-down {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-20px, -20px);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: rotate(45deg) translate(10px, 10px);
    }
}

.boxWork {
    display: flex;
    align-items: center;
    width: 100%;
    height: 750px;
    margin-top: 0;
}

.boxCarousel {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.boxWork div section {
    width: 100%;
}

.boxCarousel img {
    height: 650px;
    border-radius: 4px;
}

.welcome {
    display: flex;
    align-items: center;
    flex-direction: column;
    height: 600px;
    width: 750px;

}
.welcome section {
    display: flex;
    align-items: center;
    justify-content: center;
}
.welcome h1 {
    margin: 30px;
}

.welcome p {
    font-size: 17px;
    color: white;
    text-align: center;
    margin: 10px 30px ;
}

.questionsTitle {
    text-align: center;
    color: white;
    margin: 20px;
}
.boxQuestions {
    display: flex;
    width: 100%;
    margin-top: 20px;
}

.parent {
    display: grid;
    grid-template-columns: auto auto auto;
    grid-row-gap: 20px;
    grid-gap: 30px 20px;
}
.child {
    display: grid;
    place-items: center;
    margin: 10px;
    color: white;
    align-items: start;
    padding: 5px;

}
.boxQuestions-title {
    width: 330px;
    font-size: 20px;

}
.boxQuestions-title div {
    justify-content: center;
    margin-right: 10px;
    background: rgba(108, 108, 108, 0.1);
    color: #ffffff;
    border-radius: 50%;
    width: 53px;
    padding: 10px;
    box-shadow: 1px 1px 10px 1px rgba(255, 255, 255, 0.4);
}

.boxQuestions-title h5{
    margin-top: 10px;
    text-align: inherit;
    width: 200px;
}

.boxQuestions-title .box-title {
    justify-content: center;
}

.child div {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.child p {
    display: flex;
    font-size: 16px;
    width: 330px;
    margin-top: 15px;
    text-align: center;
}
.advantagesTitle {
    text-align: center;
    color: white;
    margin: 20px;
}
.container-advantages {
    display: flex;
    width: 100%;
    margin-top: 20px;
}

.box-advantages-title {
    width: 500px;
    font-size: 20px;
}
.box-title-img {
    justify-content: space-around;
}
.box-title img {
    height: 40px;
    margin: 5px;
}
.box-advantages-title h5 {
    margin: 10px;
    font-size: 30px;
}
.parent-advantages {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-row-gap: 20px;
    grid-gap: 30px 20px;
}
.parent-advantages p {
    width: 500px;
    font-size: 18px;
}
.box-end {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    height: 500px;
    margin-top: -30px;
}
.box-end section {
    display: flex;
}
.box-end h5 {
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    font-size: 45px;
    width: 1100px;
}
.box-end p {
    text-align: center;
    width: 1000px;
    font-size: 20px;
    color: white;
}

.box-button-end a {
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    width: 350px;
}
.arrow-position-after-work {
    margin-bottom: 30px;
}
.arrow-position-after-questions {
    margin-bottom: 60px;
}


@media only screen and (max-width: 767px) {
    header .navbar-nav .nav-link {
        margin-left: 0;
    }
    main {
        margin-top: 40px;
    }
    main .boxTitle h1 {
        font-size: 35px;
    }
    main .boxTitle p {
        width: 90%;
        height: 40%;
        font-size: 18px;
    }
    main .boxTitle span {
        width: 80%;
        height: 10%;
        font-size: 13px;
    }
    main div div section {
        display: flex;
        margin-top: 20px;
        flex-direction: column;
        align-items: center;
        width: 300px;
    }
    .buttonTelegram {
        padding: 10px 70px;
        margin: 10px;
        font-size: 13px;
    }
    .buttonWhatsApp {
        padding: 10px 66px;
        margin: 10px;
        font-size: 13px;
    }
    .arrow-down span {
        width: 25px;
        height: 25px;
    }
    .boxCarousel img {
        height: 400px;
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
    }
    .boxWork {
        flex-direction: column;
        justify-content: space-evenly;
        align-items: center;
        margin-top: 48%;
    }
    .boxCarousel img {
        height: 450px;
    }
    .boxWork .welcome {
        margin: 10px;
    }
    .welcome {
        width: 350px;
    }
    .welcome h1 {
        font-size: 30px;
    }
    .welcome p {
        font-size: 13px;
        margin: 10px;
    }
    .arrow-position-after-work .downArrow {
        margin-top: 180px;
    }
    .parent {
        grid-template-columns: repeat(1, 1fr);
        grid-gap: 10px;
    }
    .container-advantages {
        margin-top: 50%;
    }
    .parent-advantages {
        grid-template-columns: repeat(1, 1fr);
        grid-gap: 10px;
    }
    .box-advantages-title {
        width: 330px;
    }
    .boxQuestions-title h5 {
        font-size: 20px;
    }
    .parent-advantages p {
        width: 330px;
        font-size: 15px;
    }
    .box-end h5 {
        margin-top: 20px;
        font-size: 25px;
        width: 330px;
    }
    .box-end p {
        width: 300px;
        font-size: 15px;
    }
    .box-button-end a {
        width: 250px;
    }
    .box-end section {
        height: 150px;
        flex-direction: column;
        justify-content: space-evenly;
        width: 320px;
        align-items: center;
    }
    .box-button-end button {
        width: 190px;
        padding: 10px;
        margin: 5px;
    }
    .arrow-position-after-questions .downArrow {
        margin-top: 0;
    }
    .arrow-position-end .downArrow {
        margin-top: 0;
    }
     @media only screen and (max-width: 767px) {
    .boxQuestions-title h5 {
        font-size: 18px;
        width: auto;
        text-align: center;
    }

    .child p {
        font-size: 14px;
        width: 90%;
        text-align: center;
    }
}
.questionsTitle {
    text-align: center;
    color: white;
    margin-top: 100px; /* Добавляем воздух сверху */
    margin-bottom: 30px;
}
}