body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    position: relative;
    /*overflow: hidden;*/
    overflow-x: hidden;
}

@media (max-width: 1024px) {
    body, html {
        font-size: 14px;
    }
}

/*прилоадер при загрузке страницы*/
.preloader-backdrop-page {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.preloader-page {
    width: 20vw;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.button {
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
}

p {
    font-family: 'Roboto', sans-serif;
    font-size: 1.1rem;
}

.input-number-small {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
}

.product-price {
    font-size: 1rem;
    line-height: 24px;
}

.slider-value, .slider-label {
    font-size: 0.9rem;
}

.font_popup .vmenu li {
    font-size: 2rem;
}

#cart {
    font-size: 0.9rem;
}

.fa {
    font: normal normal normal 1.5rem / 1 FontAwesome!important;
}

.modal-body {
    font-size: 1.1rem;
    line-height: 2rem;
}


.container {
    display: flex;
    height: 95vh;
}

.box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    text-align: center;
    position: relative;
}

.box-1 {
    flex: 0 0 20%;
    height: 95vh;
}

.box-2 {
    position: relative;
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0;
}

.box-2-inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.box-section {
    display: flex;
    align-items: center;
    justify-content: center;
}

.box-2-2 {
    width: 60vw;
    height: 30vw;
    position: relative;
}

.box-2-3 {
    display: flex;
    flex-direction: row;
    width: 100%;
}

.box-2-3-inner {
    display: flex;
    width: 100%;
}

.box-2-3-3 {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px 10px;
}

.box-2-3-1, .box-2-3-3 {
    display: none;
    flex: 0 0 auto;
    margin-top: 10px;
}

.box-2-3-1 {
    margin-left: 60px;
}

 .box-2-3-3 {
    margin-right: 60px;
}

.box-2-3-2 {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.box-2-3-2-b {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.box-3 {
    display: flex;
    flex: 0 0 20%;
    flex-direction: column;
    height: 90vh;
}

.box-3-1, .box-3-common, .box-3-text {
    flex: 1;
    box-sizing: border-box;
    text-align: center;
}

.box-3-1 {
    position: relative;
}

.box-3-common {
    position: relative;
    margin: 0;
    padding: 5px 0;
}

.box-3-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.button {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 5px;
    padding: 9px 20px 7px 20px;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    box-shadow: 0 0 6px -2px rgba(0,0,0,0.5);
    line-height: 1.25;
    background: #0fbbf8;
    user-select: none;
    letter-spacing: .08em;
    text-transform: uppercase;
    position: relative;
    transition: background-color .6s ease;
}

.button:hover {
    background: #00a9F3;
}

.button::after {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    top: 50%;
    left: 50%;
    transform-style: flat;
    transform: translate3d(-50%, -50%, 0);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 100%;
    transition: width .3s ease, height .3s ease;
}

.button:active::after {
    width: 300px;
    height: 300px;
}

/*корректировочный блок*/
#zoomFactorControls {
    display: none;
}

.input-number-small {
    width: 60px;
    text-align: center;
    /*margin: 0 10px;*/
}

.box-2-3-2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* Отступы между кнопками и полем ввода */
}


@media (max-width: 1024px) {
    .container {
        display: block;
        width: 100vw;
        height: 95vh;
        box-sizing: border-box;
    }

    .box-1, .box-3 {
        width: 50vw;
        height: 40vh;
        float: left;
        display: block;
        box-sizing: border-box;
        z-index: 1;
    }

    .box-2 {
        width: 100vw;
        height: auto;
        display: block;
        float: left;
        box-sizing: border-box;
        position: absolute;
        bottom: 0;
        z-index: 2;
    }

    .box-2-2 {
        width: 100vw;
        height: calc(0.5 * 100vw);
        max-width: 600px;
    }

    #buttonContainer {
        order: 2;
        width: 100%;
    }

    .box-2-3-1 {
        margin: 0;
        margin-left: 10px;
    }

    .box-2-3-3 {
        margin: 0;
    }

    .box-2-3 {
        flex-direction: column;
    }

    .box-2-3 .button {
        width: 100%;

    }
    .button {
    box-shadow: 0 0 3px -2px rgba(0, 0, 0, 0.5);
    }
}
