* { margin: 0; padding: 0; }
body{
    scroll-behavior: smooth;
}

@media screen and (max-width: 512px) {
    .container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .element-right{
        background-color: #fafafa;
        width: 100vw;
        display: flex;
        flex-direction: column; 
    }
    .element-left{
        background-color: #ffffff;
        width: 100vw;
    }
    .button-right {
        border: none;
        font-size: 2.5vw;
        padding: 0.5vh 3vw;
        border-radius: 20px;
        text-align: center;
        background-color: aquamarine;
    }
    
    .button-left {
        border: none;
        font-size: 2.5vw;
        padding: 0.5vh 3vw;
        border-radius: 20px;
        text-align: center;
        background-color: aquamarine;
    }
    .text-right{
        color: black;
        text-align: center;
    }

    .text-left{
        color: black;
    }

    .description-left{
        font-family: 'Jost', sans-serif;
        font-weight: 400;
        font-size: 2.5vw;
        text-align: center;
        margin: 0.25vw;
    }

    .description-right{
        text-align: center;
        font-family: 'Jost', sans-serif;
        font-weight: 400;
        font-size: 2.5vw;
        margin: 0.4vw;
    }

    .item {
        width: 99vw;
        background-color: #ffffff;
        font-size: 1.5vw;
        text-align: center;
    }

    .item.left .content {
        display: flex;
    }

    .item.right .content {
        display: flex;
    }

    .right-content {
        display: flex;
        flex-direction: row-reverse; /* Реверс на правую сторону */
    }

    .gbpou{
        text-align: center;
        font-size: 7vw;
        z-index: 1;
    }
    .image-top{
        position: relative;
        background-image: url('/img/image-top.jpg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100vh;
        width: 100vw;
        background-color: gray;
    }

    .image-top::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: #00000063; /* Цвет и прозрачность затемнения main фотографии */
        z-index: 0; 
    }
    .triangle{
        content: "";
        background-color: aqua;
        width: 50px;
    }
    h1{
        user-select: none;
        color: white;
        font-family: 'Jost', sans-serif;
    }
    img {
        width: 40vw; 
        height: 25vw;
    }
}
/* Телефон */
@media (min-width: 512px) and (max-width: 768px) {
    .container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .element-right{
        background-color: #fafafa;
        width: 100vw;
        display: flex;
        flex-direction: column; 
    }
    .element-left{
        background-color: #ffffff;
        width: 100vw;
    }
    .button-right {
        border: none;
        font-size: 2.5vw;
        padding: 0.5vh 3vw;
        border-radius: 20px;
        text-align: center;
        background-color: aquamarine;
    }
    
    .button-left {
        border: none;
        font-size: 2.5vw;
        padding: 0.5vh 3vw;
        border-radius: 20px;
        text-align: center;
        background-color: aquamarine;
    }
    .text-right{
        color: black;
        text-align: center;
    }

    .text-left{
        color: black;
    }

    .description-left{
        font-family: 'Jost', sans-serif;
        font-weight: 400;
        font-size: 2.5vw;
        text-align: center;
        margin: 0.25vw;
    }

    .description-right{
        text-align: center;
        font-family: 'Jost', sans-serif;
        font-weight: 400;
        font-size: 2.5vw;
        margin: 0.25vw;
    }

    .item {
        width: 99vw;
        background-color: #ffffff;
        font-size: 1.5vw;
        text-align: center;
    }

    .item.left .content {
        display: flex;
    }

    .item.right .content {
        display: flex;
    }

    .image img {
        width: 40vw; 
        height: 20vh;
    }

    .right-content {
        display: flex;
        flex-direction: row-reverse; /* Реверс на правую сторону */
    }

    .gbpou{
        text-align: center;
        font-size: 6vw;
        z-index: 1;
    }
    .image-top{
        position: relative;
        background-image: url('/img/image-top.jpg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100vh;
        width: 100vw;
        background-color: gray;
    }

    .image-top::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: #00000063; /* Цвет и прозрачность затемнения main фотографии */
        z-index: 0; 
    }
    .triangle{
        content: "";
        background-color: aqua;
        width: 50px;
    }
    h1{
        user-select: none;
        color: white;
        font-family: 'Jost', sans-serif;
    }
}
/* ПК */
@media screen and (min-width: 768px) {
    .container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .element-right{
        background-color: #fafafa;
        width: 100%;
        display: flex;
        flex-direction: column; 
        align-items: flex-end;
    }
    .element-left{
        background-color: #ffffff;
        width: 100%;
    }
    .button-right {
        margin-right: 8px;
        border: none;
        font-size: 15px;
        padding: 10px 10px;
        border-radius: 20px;
        text-align: left;
        background-color: aquamarine;
    }
    
    .button-left {
        border: none;
        font-size: 15px;
        padding: 10px 10px;
        border-radius: 20px;
        text-align: left;
        margin-left: 10px;
        background-color: aquamarine;
    }
    .text-right{
        color: black;
        margin-right: 10px;
        text-align: right;
    }

    .text-left{
        color: black;
        margin-left: 10px;
    }

    .description-left{
        font-family: 'Jost', sans-serif;
        font-weight: 400;
        font-size: 19px;
        margin-left: 10px;
    }

    .description-right{
        text-align: right;
        font-family: 'Jost', sans-serif;
        font-weight: 400;
        font-size: 19px;
        margin-right: 10px;
    }

    .item {
        width: 100%;
        background-color: #ffffff;
    }

    .item.left .content {
        display: flex;
    }

    .item.right .content {
        display: flex; 
    }

    .image img {
        width: auto; 
        /*width: 300px;*/ 
        height: 230px;
    }

    .right-content {
        display: flex;
        flex-direction: row-reverse; /* Реверс на правую сторону */
    }

    .gbpou{
        text-align: center;
        font-size: 3vw;
        z-index: 1;
    }
    .image-top{
        position: relative;
        background-image: url('/img/image-top.jpg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100vh;
        background-color: gray;
    }

    .image-top::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: #00000063; /* Цвет и прозрачность затемнения main фотографии */
        z-index: 0; 
    }
    .triangle{
        content: "";
        background-color: aqua;
        width: 50px;
    }
    h1{
        user-select: none;
        color: white;
        font-family: 'Jost', sans-serif;
    }
    .btn-navigate-link{
        border: 0;
        background-color: aquamarine;
        padding: 10px 10px;
        border-radius: 20px;
        margin-top: 10px;
        margin-bottom: 10px;
        font-family: 'Jost', sans-serif;
    }
    .btn-navigate-link a {
        text-decoration: none;
        color: black;
        font-size: 18px;
    }
}