﻿/* Глобальные переменные */
:root {
    --primary-color: #860e43; /*темный*/
    --second-color: #fadeea; /*сетлый*/
    --third-color: #ba5d86; /*footer*/
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: calc( var(--header-height) + 1rem );
}
body {
    margin: 0;
    background: url(/images/background.jpg) #f8e7e7; /*фон окна*/
    padding: 10px 10px 10px 10px;
    text-align: left;
    font-size: 18px;
    inline-size:auto;
    font-family: serif;
    user-select: none;
}
a {
    color: var(--primary-color);
}
img {
    pointer-events: none;
    user-select: none; /* Запрещает выделение */
}

.wrapper { /*контейнер, средняя  часть, на которой располагается весь контент */
    width: 94%;
    max-width: 1100px;
    margin: 0 auto;
    background-color: #f8f0ed;
    padding: 0px 10px;
    overflow: hidden; /*Отображается только область внутри элемента, остальное будет скрыто.*/
    border-radius: 20px;
    box-shadow: inset rgba(105,59,17,.5) -3px -3px 5px, inset rgba(255,255,255,.9) 3px 3px 5px, rgba(105,59,17,.8) 3px 3px 5px -3px;
}
.layout {
    overflow: hidden;
    margin: 0px;
    padding: 0;
}
.breadcrumbs {
    margin: 7px 0 0 0;
    padding: 0;
}
/*панели*/
.group_panel {
    width: 225px;
    /*max-height: 300px;
    overflow: auto; /* Полоса прокрутки при необходимости */
    background: #fff;
    color: var(--primary-color);
    border: 1px solid #d490ae;
    border-radius: 10px 0px 0px 0px;
    box-shadow: inset rgba(105,59,17,.5) -3px -3px 5px, inset rgba(255,255,255,.9) 3px 3px 5px, rgba(105,59,17,.8) 3px 3px 5px -3px;
}

.group_panel2 {
    width: 303px;
    background: #fff;
    /* border-radius: 10px 10px 10px 10px; */
    border: 1px solid #d490ae;
}

.col2 {
    margin: 0 0 0 235px;
    display: block;
}

.col1 {
    display: block;
    width: 225px;
    float: left; 
    margin: 0; 
}

.content-white {
    background-color: #fff; /* Белый цвет фона */
    margin: 0px 0 5px 0; /* Отступы */
    padding: 5px 10px 5px 10px; /* Поля */
    /*text-align: justify;  Выравнивание по ширине */
    border: 1px solid #d490ae;
    border-radius: 5px 5px 0 0;
}
/* шапки боковыx панелей*/
.group_name {
    background: var(--primary-color);
    color: var(--second-color);
    font-size: 20px;
    padding: 7px 10px; /* Поля */
}
/*поле для текста боков. панелей */
.group_in {
    padding: 5px 5px 5px 5px; /* Поля */
    font: Roboto, sans-serif;
    margin-bottom: 10px;
}  

/* ------HEADER--------- */
header {
    background-image: url(/images/header.jpg);
    background-size: cover;
    padding: 5px 5px 0px 5px;
    border-radius: 20px 20px 0 0;
    box-shadow: inset rgba(105,59,17,.5) -3px -3px 5px, inset rgba(255,255,255,.9) 3px 3px 5px, rgba(105,59,17,.8) 3px 3px 5px -3px;
}
.bgImg {
    width: 100%;
    height: auto;
    border-radius: 20px 20px 0 0;
}

.navbarPC nav {
    margin-top: 90px;
}
.navContainer {
    display: flex;
    justify-content: center;
}

    .navContainer div {
        background-color: #f8f0ed;
        border: 1px solid #d490ae;
        box-shadow: inset rgba(105,59,17,.5) -3px -3px 5px, inset rgba(255,255,255,.9) 3px 3px 5px, rgba(105,59,17,.8) 3px 3px 5px -3px;
        border-radius: 5px;
        margin: 0 5px;
        padding: 5px;
        font-size: 18px;
        font-weight: 600;
        text-align: center;
    }
        .navContainer div:active {
            -webkit-transform: translate(0, 3px);
            transform: translate(0, 3px);
            background-color: var(--third-color);
        }
        .navContainer div:hover {
            background-color: var(--third-color);
        }
    .navContainer a {
        text-decoration: none;
        color: #330033;
    }

/*Подвал*/
footer {
    height: auto;
    background-color: var(--third-color);
    color: var(--primary-color);
    padding: 0 20px 0 10px;
    box-shadow: inset rgba(105,59,17,.5) -3px -3px 5px, inset rgba(255,255,255,.9) 3px 3px 5px, rgba(105,59,17,.8) 3px 3px 5px -3px;
}
    footer .info {
        display: flex;
        justify-content: space-between;
    }
    footer a {
        text-decoration: none;
        color: var(--second-color)
    }
.copyright {
    text-align: center;
    padding: 5px;
}
footer .logo {
    float: left; /* Выравниваем рисунок влево */
    margin: 10px 0px 0 10px;
    padding: 4px;
    width: 90px;
    height: 120px;
}

/*Home Page*/
.bgHomePage {
    margin: 10px 0;
    height: 614px;
    box-shadow: inset rgba(105,59,17,.5) -3px -3px 5px, inset rgba(255,255,255,.9) 3px 3px 5px, rgba(105,59,17,.8) 3px 3px 5px -3px;
    background: url(/images/bgHomePage.jpg) no-repeat;
    background-size: cover;
}
.bgHomePage .container {
    text-align: center;
    padding-top: 20px;
}
.bgHomePage h1 {
    margin-top: 50px;
}
.bgHomePage h2 {
    margin: 0;
    font-size: 20px;
    color: #330033;
}

/*Меню HomePage*/
.navHome {
    margin-top: 0px;
}
.navContainerHome {
    display: flex;
    justify-content: center;
    
}

.btFace, .btHair, .btFolk, .btRecipe, .btComfort {
    width: 80px;
    height: 80px;
    border-radius: 40px;
    margin: 10px;
    background: url(/images/button/btBeautifulFace.png) center;
    background-size: contain;
    border: 1px solid #d490ae;
    box-shadow: inset rgba(105,59,17,.5) -3px -3px 5px, inset rgba(255,255,255,.9) 3px 3px 5px, rgba(105,59,17,.8) 3px 3px 5px -3px;
}

.btHair {
    background: url(/images/button/btHealthyHair.png) center;
    background-size: contain;
}
.btFolk {
    background: url(/images/button/btFolkSecrets.png) center;
    background-size: contain;
}
.btRecipe {
    background: url(/images/button/btWorldsRecipes.png) center;
    background-size: contain;
}
.btComfort {
    background: url(/images/button/btHomeComfort.png) center;
    background-size: contain;
}
.btFace:hover {
    background: url(/images/button/active/btBeautifulFace.png) center;
    background-size: contain;
}
.btHair:hover {
    background: url(/images/button/active/btHealthyHair.png) center;
    background-size: contain;
}

.btFolk:hover {
    background: url(/images/button/active/btFolkSecrets.png) center;
    background-size: contain;
}

.btRecipe:hover {
    background: url(/images/button/active/btWorldsRecipes.png) center;
    background-size: contain;
}

.btComfort:hover {
    background: url(/images/button/active/btHomeComfort.png) center;
    background-size: contain;
}

.navContainerHome a {
    text-decoration: none;
    color: var(--second-color)
}
.navContainerHome div:active {
    -webkit-transform: translate(0, 3px);
    transform: translate(0, 3px);
}
.btText {
    font-weight: bolder;
    color: #330033;
    text-shadow: 2px 2px 0 #fff, 2px -2px 0 #fff, -2px 2px 0 #fff, -2px -2px 0 #fff, 2px 0px 0 #fff, 0px 2px 0 #fff, -2px 0px 0 #fff, 0px -2px 0 #fff;
}

/*Скругленные края блоков*/
.radius_all {
    -moz-border-radius: 20px 20px 20px 20px; /* Для Firefox 3 */
    -webkit-border-radius: 20px 20px 20px 20px; /* Для Safari 4 и Chrome */
    border-radius: 20px 20px 20px 20px; /* Для современных браузеров */
}

.radius_top {
    -moz-border-radius: 20px 20px 0 0;
    -webkit-border-radius: 20px 20px 0 0;
    border-radius: 20px 20px 0 0;
}

.radius_bottom {
    -moz-border-radius: 0 0 20px 20px;
    -webkit-border-radius: 0 0 20px 20px;
    border-radius: 0 0 20px 20px;
}

/* Страницы с текстами */

.textContainer {
    box-shadow: inset rgba(105,59,17,.5) -3px -3px 5px, inset rgba(255,255,255,.9) 3px 3px 5px, rgba(105,59,17,.8) 3px 3px 5px -3px;
}
.textContainer h1 {
    text-align: center;
    color: var(--primary-color);
    font-family: Cambria;
    font-size: 40px;
    font-weight: normal;
    margin-top:0;
}
.textContainer .secondH1 {
    font-size: 36px;
    background-color: var(--primary-color);
    color: var(--second-color);
    padding: 10px 0;
    margin-top: 40px;
    box-shadow: inset rgba(105,59,17,.5) -3px -3px 5px, inset rgba(255,255,255,.9) 3px 3px 5px, rgba(105,59,17,.8) 3px 3px 5px -3px;
}
.textContainer h2 {
    color: var(--primary-color);
    font-family: Cambria;
    font-size: 20px;
    text-align: center;
    background-color: var(--second-color);
    padding: 10px 0;
    margin-top: 40px;
    box-shadow: inset rgba(105,59,17,.5) -3px -3px 5px, inset rgba(255,255,255,.9) 3px 3px 5px, rgba(105,59,17,.8) 3px 3px 5px -3px;
}
    .textContainer h3 {
        font-size: 20px;
        color: var(--primary-color);
        margin-bottom: 3px;
    }
h3 + p {
        margin-top: 3px;
    }
h3 + ul {
    margin-top: 3px;
}
h3 + ol {
    margin-top: 3px;
}
.ulBefore {
    margin-bottom: 3px;
}
p + ul {
    margin-top: 3px;
}
p + ol {
    margin-top: 3px;
} 
.textContainer .bigImg{
    background: #FFF;
    padding: 7px;
    margin: 10px;
    border-radius: 5px 5px 5px 5px;
    border: 1px solid #248D78;
    width: 90%;
}
.imgRecipy {
    max-width: 500px;
}

.menuImg {
    max-width: 255px;
}
.sectionImgMenu {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around
}
.secondMenuList {
    display: flex;
    background: var(--second-color);
    font-size: 18px;
    margin: 5px;
    font-weight: bold;
    border-radius: 10px;
    padding: 5px;
    border: 1px solid #3e897a;
    box-shadow: inset rgba(20,30,75,.5) -3px -3px 5px, inset rgba(200,200,255,.9) 3px 3px 5px, rgba(20,30,75,.8) 3px 3px 5px -3px;
    max-width: 255px;
    text-align: center;
}
    .secondMenuList a {
        text-decoration: none;
        color: var(--primary-color);
    }
.menuImgHome {
    display: flex;
    background: var(--second-color);
    font-size: 18px;
    margin: 5px;
    font-weight: bold;
    border-radius: 10px;
    padding: 5px;
    border: 1px solid #3e897a;
    box-shadow: inset rgba(20,30,75,.5) -3px -3px 5px, inset rgba(200,200,255,.9) 3px 3px 5px, rgba(20,30,75,.8) 3px 3px 5px -3px;
    text-align: center;
    max-width: 500px;
}
.menuImgHome a {
    text-decoration: none;
}
.imgHomeMenu {
    width: 99%;
    max-width: 500px;
    height: auto;
}
.textHomeMenu {
    font-weight: normal;
}
/* Дополнительные элементы */
/* Линия с тенью */
.hr-shadow {
    margin: 20px 20%;
    padding: 0;
    height: 10px;
    text-align: center;
    border: none;
    border-top: 2px solid var(--primary-color);
    box-shadow: 0 15px 10px -10px #f69ec5 inset;
}
/* Замыленная линия */
.hr-washed {
    margin: 20px 0;
    padding: 0;
    height: 0;
    border: none;
    box-shadow: 0 0 10px 1px black;
}
/* Вертикальные линии */
.hr-vertical-lines {
    margin: 20px 100px;
    padding: 0;
    height: 10px;
    border: none;
    color: orange;
    background-image: linear-gradient(90deg, orange, orange 33.33%, transparent 33.33%, transparent 100%);
    background-size: 3px 100%;
}
/* Наклонные линии */
.hr-inclined-right {
    margin: 25px 0 40px 0;
    padding: 0;
    height: 0;
    border: none;
    border-top: 1px solid #333;
    transform: rotate(-2deg);
}
/* Кнопка даижения вверх */
.scroll-top-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #64052f;
    color: white;
    font-weight: bold;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-size: 20px;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s, visibility 0.3s;
    box-shadow: inset rgba(105,59,17,.5) -3px -3px 5px, inset rgba(255,255,255,.9) 3px 3px 5px, rgba(105,59,17,.8) 3px 3px 5px -3px;
}

    .scroll-top-button:hover {
        opacity: 1;
    }
    .scroll-top-button.hidden {
        opacity: 0;
        visibility: hidden;
    }

    /*карта сайта*/
.siteMapBox {
    border: 3px double #860e43;
    max-width: 700px;
}


/*  Кнопка-гамбургер (скрытый чекбокс + метка)  */
/* Базовые стили */
.navbarMob {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 5px 10px;
}

.nav-menu {
    display: flex;
    gap: 10px;
    list-style: none;
}

.group_in a {
    text-decoration: none;
    color: var(--primary-color);
    font-size: 18px;
}

.menu-btn {
    display: none; /* Скрыта на ПК */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.bar {
    height: 4px;
    width: 100%;
    background-color: #333;
    transition: all 0.3s ease;
}


/* Стили для вертикального экрана (ширина < высоты) */
@media (orientation: portrait) {
    

    .col1 { /* мобильный вариант без первой колонки*/
        display: none;
        float: right;
        width: 0;
        overflow: hidden;
    }

    .col2 { /*максимальная ширина контента, расположен по цетру*/
        float: left;
        margin: 0;
        width: 100%;
    }

    .bgHomePage {
        background: url(/images/bgHomePageSmall.jpg) center;
        background-size: cover;
        min-height: 100%;
    }

        .bgHomePage .titleBox {
            visibility: hidden;
        }

    .navHome {
        /*margin-top: 50px;*/
        position: absolute;
        top: 55vh;
        left: 3vh;
        width: 90vw;
    }

    .navContainerHome {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }


        .navContainerHome .navHomeText {
            padding: 1vw;
            font-size: 2vw;
        }

    .btFace, .btHair, .btFolk, .btRecipe, .btComfort {
        width: 12vw;
        height: 12vw;
        min-height: 80px;
        min-width: 80px;
        border-radius: 6vw;
    }

    .navbarPC {
        display: none;
    }

    /*  Кнопка-гамбургер (скрытый чекбокс + метка)  */
    .navbarMob {
        display: flex;
    }
    .menu-btn {
        display: flex; /* Показываем кнопку */
        z-index: 10;
    }

        /* Класс, который будет добавлять JavaScript */
        .nav-menu.active {
            left: 0; /* Выдвигаем меню */
        }

    /* Анимация превращения гамбургера в крестик */
    .menu-btn.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .menu-btn.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-btn.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    /* Меняем left на right, чтобы меню выезжало справа */
    .nav-menu {
        position: fixed;
        right: -100%; /* Спрятано справа */
        left: auto; /* Сбрасываем старое левое позиционирование */
        top: 0;
        flex-direction: column;
        background-color: var(--second-color);
        width: 70%; /* Теперь меню занимает не весь экран, а 70%, чтобы был виден overlay */
        height: 100vh;
        padding-top: 10px;
        align-items: center;
        text-align: left;
        transition: 0.3s ease;
        z-index: 100; /* Меню должно быть выше фона */
    }

        .nav-menu.active {
            right: 0; /* Выдвигаем */
        }

    /* Стили для затемняющего фона */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.5); /* Черный цвет с прозрачностью 50% */
        z-index: 99; /* Чуть ниже самого меню, но выше остального контента сайта */
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

        /* Когда фон активен — показываем его */
        .menu-overlay.active {
            opacity: 1;
            visibility: visible;
        }
    header {
        background-image:none;
        background-color: var(--second-color);
        padding: 0px;
        margin:0px;
    }

    .logoMob {
        float: left; /* Выравниваем рисунок влево */
        margin: 0px;
        width: 38vw;
        height: 13vw;
        background: url("/images/logo/logo.png") no-repeat;
        background-size: contain;
    }
    body, .wrapper, .content-white, header {
        padding: 5px;
        margin: 0px;
        box-shadow: none;
    }
   
}

@media (max-width: 700px) {
    /*footer*/
    footer .box {
        display: none;
    }
    
}