@import "/css/fonts.css";
@import "/css/classes.css";

:root {
    font-size: 100%;
    font-family: OSanse, sans-serif;
    --main-color: #00a35f;
    --main-color-bright: #00ce78;
    --text-color: #505050;
}

body {
    padding: 0;
    margin: 0;
    position: relative;
    width: 100%;
    scroll-behavior: smooth !important;
    font-family: sans-serif;
}

a {
    text-decoration: none;
}

p {
    text-indent: 1em;
    text-align: justify;
    letter-spacing: 0.3px;
}

ul {
    padding: 0;
    list-style: none;
}

li {
    list-style: none;
}

#root .container {
    max-width: 1200px !important;
    margin: 0 auto;
}

/* MASTHEAD AND NAVIGATION */
#masthead {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10101010;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 0 3px 2px rgb(0 0 0 / 20%);
    padding: 1em 0;
    transition: padding 0.5s ease;
}

#root #masthead .container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    position: relative;
    margin-left: auto;
    margin-right: auto;
}

#masthead .container #mheadToggle {
    display: none;
    position: absolute;
    right: 1em !important;
    z-index: 10101110;
}

#masthead .container #mheadToggle div {
    display: block;
    width: 20px;
    height: 2px;
    margin-bottom: 5px;
    position: relative;
    background: var(--main-color);
    border-radius: 3px;
    z-index: 1;
    transform-origin: center;
    transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0),
                background 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0),
                opacity 0.55s ease;
}

#masthead .container #mheadToggle div:first-child {
    transform-origin: center;
}

#masthead .container #mheadToggle div:nth-child(2) {
    transform-origin: center;
}

#masthead .container #mheadToggle[data-checked="true"] div:first-child {
    transform: rotate(45deg) translate(9px, 7px);
    background: var(--main-color);
}

#masthead .container #mheadToggle[data-checked="true"] div:nth-child(3) {
    transform: rotate(-45deg) translate(9px, -7px);
    background: var(--main-color);
}

#masthead .container #mheadToggle[data-checked="true"] div:nth-child(2) {
    opacity: 0;
    transform: scale(0.2, 0.2);
}

.logoContainer {
    display: flex;
    flex-direction: column;
    margin-right: 24px;
    width: 150px;
}

.logo {
    width: 150px;
    color: var(--main-color);
    font-size: 1.1em;
    letter-spacing: 0.75px;
    display: flex;
    justify-content: flex-start;
    margin: 0;
}

.logoUnderline {
    width: 150px;
    color: var(--main-color);
    font-size: 0.65em;
    letter-spacing: 1px;
    text-indent: 0%;
    display: flex;
    justify-content: flex-start;
    margin: 0;
    margin-right: auto;
    margin-left: auto;
}

#masthead .container #mheadInfo div {
    color: var(--main-color);
    float: left;
    margin-right: 1em;
}

#masthead .container #mheadRightContainer {
    display: flex;
    align-items: center;
}

#masthead .container #mheadRightContainer .mheadWrap {
    display: none;
}

#masthead .container #mheadRightContainer nav section {
    display: flex;
    gap: 2em;
}

#masthead .container #mheadRightContainer nav section a {
    color: var(--main-color);
    font-size: 1.1em;
    letter-spacing: 0.1px;
    padding: 0.1em;
}

#masthead .container #mheadRightContainerInfo {
    color: var(--main-color);
    font-size: 1.1em;
    display: none;
}

#masthead .container #mheadRightContainerInfo div {
    display: block;
    text-align: center;
}

#masthead .container #mheadRightContainerInfo div:last-child {
    margin: 1em 0;
}

.mheadRightContainerInfoNumber {
    font-size: 0.6em;
}

.mheadRightContainerInfoEmail {
    font-size: 0.6em;
}

#masthead .container #mheadRightContainer #langSwitch {
    display: flex;
    justify-content: center;
    margin-left: 2em;
    margin-right: 0.2em;
    cursor: pointer;
}

#masthead .container #mheadRightContainer #langSwitch div {
    float: left;
    margin-left: 0.5em;
    color: var(--main-color);
    font-size: 1.1em;
    padding: 0.1em;
}

#masthead .container #mheadRightContainer #langSwitch .inactive {
    opacity: 0.3;
    cursor: default;
}

/* CONTENT */
.contentContainer {
    position: relative;
    font-size: 1.1em;
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 1em;
}

.contentContainer header {
    width: 100%;
    display: block;
    text-align: center;
    font-size: 1.7em;
    color: var(--main-color);
    margin: 0.35em 0 0.7em 0;
}

.contentContainer#header {
    max-width: 100%;
    padding: 0;
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.53), rgba(0, 0, 0, 0.352)), url(../images/for-preview.jpg) no-repeat;
    background-position: center;
    background-size: cover;
}

@media screen and (min-device-pixel-ratio: 2) and (min-width: 428px),
screen and (min-resolution: 192dpi) and (min-width: 428px),
screen and (min-resolution: 2dppx) and (min-width: 428px) {
    .contentContainer#header {
        background: linear-gradient(rgba(0, 0, 0, 0.53), rgba(0, 0, 0, 0.352)), url(../images/for-preview.jpg) no-repeat;
        background-size: cover;
    }
}

.contentContainer#header .middle {
    color: #ffffff;
    font-size: 4em;
}

.contentContainer#header .middle .sub {
    display: block;
    text-align: center;
    font-size: 0.5em;
}

.contentContainer#products .imgContainer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
    flex-wrap: wrap;
}

.contentContainer#products .productPrevImg {
    margin: 0 0.5em 0.5em 0.5em;
    position: relative;
    height: 270px;
    overflow: hidden;
    flex: 1;
    max-width: 32%;
}

.contentContainer#products .productPrevImg div {
    position: absolute;
    width: 100%;
    height: 19%;
    padding: 0.6em 0;
    background: rgba(219, 219, 219, 0.8);
    color: #000;
    bottom: 0;
    content: ' ';
    font-size: 1.3em;
    text-align: center;
    transform: translate(0%, 100%);
    transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.contentContainer#products .productPrevImg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contentContainer#production .imgContainer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
    flex-wrap: wrap;
}

.contentContainer#products .productPrevImg:hover .productPrevImgDescription {
    transform: translate(0%, 0%);
}

.contentContainer#products .productPrevImg:focus .productPrevImgDescription {
    transform: translate(0%, 0%);
}

.contentContainer#production .productionImg {
    display: block;
    margin: 0.5em;
    width: 100%;
    height: 19em;
    background-position: center;
    background-size: cover;
    position: relative;
    flex: 1;
    max-width: 32%;
}

.contentContainer#production .productionImg .middle {
    display: flex;
    text-align: center;
    color: #ffffff;
    font-size: 1.2em;
    background: rgba(0, 0, 0, 0.3);
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
}

.contentContainer#contacts .centertext .phone,
.contentContainer#contacts .centertext .phoneSecond {
    font-size: 1.5em;
    color: var(--main-color);
    display: inline-block;
    margin: 1em;
}

.contentContainer#contacts .centertext .container {
    font-size: 1.2em;
}

.contentContainer#contacts .centertext .container sub {
    font-size: 0.8em;
}

/* FOOTER */
#footer {
    width: 100%;
    background-color: var(--main-color);
    color: #ffffff;
    margin-top: 2em;
}

#footer .container {
    display: flex;
    position: relative;
    align-items: center;
    justify-content: space-between;
    padding: 1em 3em !important;
}

#footer .container #footerLeftContainer,
#footer .container #footerRightContainer {
    width: 40%;
}

#footer .container #footerLeftContainer {
    text-align: left;
    margin-left: 15px;
}

#footer .container #footerRightContainer {
    text-align: right;
    margin-right: 15px;
}

#footer #footerDivider {
    display: block;
    width: 1px;
    height: 6em;
    background-color: #ffffff;
}

/* MEDIA QUERIES */
@media only screen and (max-width: 1000px) {
    :root {
        font-size: 80%;
    }

    #masthead {
        padding: 0;
    }

    .container {
        height: 100px;
    }

    .logoContainer {
        margin-top: 5px;
        margin-bottom: 5px;
        margin-left: 15px;
    }

    .logo {
        width: 130px;
        font-size: 2.1em;
    }

    .logoUnderline {
        width: 170px;
        margin: 0;
        font-size: 1.1em;
    }

    .lineToggleStick {
        width: 62px !important;
        height: 3px !important;
        margin-bottom: 9px !important;
        transform-origin: center;
    }

    .contentContainer#products .productPrevImg {
        height: 400px;
        max-width: 100%;
    }

    .productPrevImgPHOTO {
        height: 400px !important;
    }

    .phone {
        margin-top: 86px !important;
    }

    .phoneSecond {
        margin-top: 10px !important;
    }

    .mheadMenuNavigator {
        z-index: 2;
    }

    #masthead .container #mheadRightContainer {
        position: fixed;
        top: 0;
        right: -750px;
        display: flex;
        flex-direction: column;
        align-items: center;
        background-color: #ffffff;
        width: 70vw;
        min-width: 280px;
        height: 100vh;
        overflow-y: auto;
        transition: right 0.4s cubic-bezier(0.77, 0.2, 0.88, 1.0);
        padding-bottom: 20px;
    }

    #masthead .container #mheadRightContainer.open {
        right: 0;
    }

    #masthead .container #mheadRightContainer .mheadWrap {
        display: none;
    }

    #masthead .container #mheadRightContainer nav {
        width: 100%;
        padding: 1em 0;
        padding-top: 80px;
    }

    #masthead .container #mheadRightContainer nav section {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    #masthead .container #mheadRightContainer nav section a {
        display: flex; /* Используем flex для центрирования */
        justify-content: center; /* Горизонтальное центрирование */
        align-items: center; /* Вертикальное центрирование */
        width: 100%; /* Полная ширина блока */
        height: 60px; /* Фиксированная высота для кнопки */
        padding: 0.8em 1em;
        border-bottom: 1px solid #dbdbdb;
        font-size: 1.5em;
        text-align: center;
        box-sizing: border-box; /* Учитываем padding в размерах */
    }

    #masthead .container #mheadRightContainerInfo {
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 3.0em; /* Увеличиваем размер шрифта */
        margin-top: 1em;
        gap: 0.5em;
        padding: 0 1em;
    }

    #masthead .container #mheadRightContainerInfo div {
        text-align: center;
    }

    #masthead .container #mheadRightContainer #langSwitch {
        display: flex;
        justify-content: center;
        margin: 1em 0;
        padding: 0 1em;
    }

    #masthead .container #mheadToggle {
        display: block;
    }

    #masthead .container #mheadInfo {
        display: none;
    }

    .contentContainer#header .middle {
        color: #ffffff;
        font-size: 3em;
    }

    .contentContainer#products .imgContainer {
        flex-direction: column;
    }

    .contentContainer#products .productPrevImg img {
        width: 80vw;
        height: 400px !important;
    }

    .contentContainer#production .imgContainer {
        flex-direction: column;
    }

    .contentContainer#production .imgContainer .productionImg {
        width: 80vw;
        max-width: 100%;
    }

    .contentContainer#production .productionImg .middle {
        font-size: 1.7em;
    }

    @media screen and (min-device-pixel-ratio: 2) and (min-width: 428px),
    screen and (min-resolution: 192dpi) and (min-width: 428px),
    screen and (min-resolution: 2dppx) and (min-width: 428px) {
        .contentContainer#header {
            background: linear-gradient(rgba(0, 0, 0, 0.53), rgba(0, 0, 0, 0.352)), url(../images/for-preview.jpg) no-repeat;
            background-size: cover;
        }
        .productionImg {
            background-image: url(../images/33.jpg);
        }
    }
}

/* Стили для десктопа с максимальной специфичностью */
@media (min-width: 1001px) {
    #root #masthead .container {
        justify-content: space-between !important;
    }

    #masthead .container #mheadRightContainer {
        position: static !important;
        right: auto !important;
        display: flex !important;
        background: none !important;
        width: auto !important;
        height: auto !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    #masthead .container #mheadRightContainer.open {
        position: static !important;
        right: auto !important;
        display: flex !important;
        transform: none !important;
        transition: none !important;
    }

    #masthead .container #mheadRightContainer nav section {
        display: flex !important;
        gap: 2em !important;
    }

    #masthead .container #mheadRightContainer nav section a {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    #masthead .container #mheadToggle {
        display: none !important;
    }

    #masthead .container #mheadRightContainerInfo {
        display: none !important;
    }

    #masthead .container #mheadRightContainer nav {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    #masthead .container #mheadRightContainer nav section {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .contentContainer#products .imgContainer {
        flex-direction: row;
        justify-content: space-between;
    }

    .contentContainer#products .productPrevImg {
        max-width: 32%;
    }

    .contentContainer#products .productPrevImg img {
        width: 100%;
    }

    .contentContainer#production .imgContainer {
        flex-direction: row;
        justify-content: space-between;
    }

    .contentContainer#production .productionImg {
        max-width: 32%;
    }
}
