* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    color: #2E2E2E;
    background-color: #f2eeee;
    font-family: 'Montserrat', sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}

ul li {
    margin-bottom: -10px;
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
    transition: .4s;
}

input {
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    transition: all 0.3s ease; /* Плавный переход между состояниями */
  }
  
  /* Стиль для поля ввода при фокусе */
  input:focus {
    border-color: #E15340; /* Изменение цвета границы */
    box-shadow: 0 0 5px #E15340; /* Добавление тени */
    outline: none; /* Убираем стандартное выделение */
  }




/* header */


#header {
    background-color: #fff;
    padding: 15px 0 15px;
    box-shadow: 0 1px 2px #0000001a;
}

.logo {
    font-family: "Kablammo", system-ui;
    font-size: 50px;
    font-weight: 400;
    padding-right: 25px;

}

.nav-main:hover {
    color: #E15340;
}



.header-nav {
    justify-content: space-between;
    align-items: center;
    display: flex;
    font-weight: 600;
    font-size: 20px;
    line-height: 29px;
}

.nav-main-list {
    display: flex;
    gap: 30px;    
    transition: .4s;
}

.nav-people {
    display: flex;
    justify-content: center;
}

.profile-ikon {
    margin-bottom: -8px;
    width: 22px;
}

.trash-ikon {
    margin-bottom: -10px;
    width: 25px;
}

.nav-people-list {
    display: flex;
    justify-content: center;
    gap: 30px;
    align-items: center;
}

.icon-admin {
    margin-bottom: -4px;
    margin-top: -4px;
}

.icon-seller {
    margin-bottom: -4px;
    margin-top: -4px;
}

.nav-people-list-profile {
    align-items: center;
    display: flex;
    flex-direction: column;
}

.nav-people-list-seller {
    align-items: center;
    display: flex;
    flex-direction: column;
}

.nav-people-list-trash {
    align-items: center;
    display: flex;
    flex-direction: column;
}   


.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.25); 
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.hidden {
    display: none;
}

.close {
    position: absolute;
    top: 2px;
    right: 15px;
    font-size: 40px;
    cursor: pointer;
    transition: all 0.2s ease-out;
}

.close:hover {
    color: red;
}

.loginform {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.loginform-button {
    border-radius: 4px;
    color: #f2eeee;
    padding: 12px;
    margin: 10px 0 0;
    background-color: #2E2E2E;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 21px;
    font-weight: 500;
    transition: .4s;
}

.loginform-button:hover {
    box-shadow: 0 0 5px #E15340;
    background-color: #E15340;
}

.modal-content {
    border-radius: 5px;
    background-color: white;
    padding: 20px;
    width: 400px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.h2-auth-form {
    padding: 10px;
    margin-bottom: 8px;
}

.form-switch-button {
    padding: 19px 0 0;
    font-size: 15px;
    background-color: none;
    border: none;
    
}

.switch-button {
    text-decoration: underline;
    background: none;
    border: none; 
    padding: 0; 
    font: inherit; 
    cursor: pointer; 
    outline: none; 
    transition: .4s;
}

.switch-button:hover {
    color: #E15340;
}


/* Выпадающее меню */

.dropdown-menu {
    border-radius: 5px;
    padding: 7px 7px 17px;
    box-shadow: 0 1px 2px #0000001a;
    position: absolute;
    left: 0;
    background-color: #fff;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 10;
    width: 210px;
}
  
  .dropdown-menu ul {
    gap: 10px;
    flex-direction: column;
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  .dropdown-menu li a {
    font-weight: 600;
    display: block;
    padding: 10px;
    text-decoration: none;
    color: #000;
  }
  
  .dropdown-menu li a:hover {
    color: #E15340;
  }
  
  /* Активный стиль — меню видимо */
  .dropdown-menu.show {
    visibility: visible;
    opacity: 1;
  }

  .dropdown {
    position: absolute;
    margin-top: 5px;
    margin-left: 200px;
    width: 10%;
  }

/* Баннер */

.slider {
    position: relative;
    overflow: hidden; 
}

.slides {
    position: relative;
}

.slide {
    position: absolute;
    top: 190px;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-in-out; 
    opacity: 0; 
}

.slide img {
    margin-top: 25px;
    border-radius: 10px;
    width: 100%;
    display: block;
    cursor: pointer;
    user-select: none;
    -webkit-user-drag: none;
}

.slider-dots {
    padding: 0 0 0 59px;
    margin-top: 395px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dots {
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: #aaaaaa;
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background-color: #E15340;
}


/* Профиль */

.avatar {
    gap: 10px;
    align-items: center;
    flex-direction: column;
    padding-top: 10px;
    display: flex;
    justify-content: center;
}

.avatar span {
    font-weight: 600;
}

.avatar img {
    width:  100px;
    height: 100px;
    border-radius: 50%;
}

.new-man button {
    text-decoration: none;
    background: #fff;
    border-radius: 50px;
    border: none;
    padding: 0px 45px 0px;
    font: inherit;
    cursor: pointer;
    outline: none;
    transition: .4s;
}

.new-man button:hover{
    box-shadow: 0 0px 15px #ffffff;
}

.new-man {
    font-size: 20px;
    color: #fff;
    border-radius: 5px;
    background: linear-gradient(to right,#a6d2ff , #9deffa);
    padding: 10px;
    display: flex;
    justify-content: space-between;
    box-shadow: 0 0px 15px #a6d2ff;
}


/* ТОВАРЫ */

.title_h1 {
    margin-bottom: -20px;
    color: #fff;
    font-size: 40px;
    font-weight: 600;
    text-align: center;
}

.aside-menu-trash {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 50px;
    gap: 15px;
}

.aside-menu {
    min-height: calc(100vh - 511px);
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 15px;
}

.left-menu1 {
    min-height: calc(100vh - 511px);
}

.left-menu {
    align-self: start;
    border-radius: 5px;
    padding: 7px 20px 25px;
    background-color: #fff;
    box-shadow: 0 1px 2px #0000001a;
}

.products-menu-list h2 {
    
    padding: 10px 0 25px;
    text-align: center;
}

.products-menu-ul {
    font-weight: 600px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.products-menu-ul-li-a {
    font-size: 20px;
    font-weight: 600;
}

.products-menu-ul-li-a:hover {
    color: #E15340;
}

.products-menu-ul-li button {
    background: none;
    border: none; 
    padding: 0; 
    font: inherit; 
    cursor: pointer;
}

.right-menu-prod {
    justify-content: space-around;
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: repeat(3, 0fr);
}

.right-menu {
    align-self: start;
    border-radius: 5px;
    padding: 20px 20px 25px;
    background-color: #fff;
    box-shadow: 0 1px 2px #0000001a;
}

.menu-title{
    padding-top: 5px;
    text-align: center;
}

.right-menu-title {
    padding: 20px;
    text-align: center;
}

.inf-block p {
    font-weight: 700;
    padding: 25px 10px 25px;
}

.inf-block {
    cursor: pointer;
    margin: 0 10px 0;
    padding-top: 10px;
    box-shadow: 0 0px 10px #00000033;
    border-radius: 5px;
    text-align: center;
    border: 4px solid #ffffff;

    transition: all 0.2s ease-out;
}

.inf-block:hover {
    /* color: #fff; */
    transform: scale(105%);
    /* background-color: #ffffff;
    border: 4px solid #ffffff; */
    box-shadow: 0 1px 30px #8ec5fc;
}

.inf {
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 столбца */
    gap: 10px; /* Поля между элементами */
}

.go-to-story {
    font-weight: 600;
    margin: 0 10px 0;
}

.go-to-story:hover {
    color: #8ec5fc;
}

.profile-nav {
    margin-top: 10px;
}

.profile-nav-a{
    color: #6fb5fc;
}

.profile-nav-li:hover {
    color: #6fb5fc;
}

.profile-nav-ul {
    gap: 35px;
    display: flex;
    flex-direction: column;
    margin-top: 10px;
    padding: 10px;
}

.logout-button {
    border-radius: 4px;
    color: #f2eeee;
    padding: 12px 102px 12px;
    background-color: #2E2E2E;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 21px;
    font-weight: 500;
    transition: .4s;
}

.logout-button:hover {
    background-color: #E15340;
    box-shadow: 0 1px 8px #E15340;
}

.logout {
    margin-top: 7px;
    display: flex;
    justify-content: center;
    align-self: start;
    border-radius: 5px;
    padding: 5px;
    background-color: #fff;
    box-shadow: 0 1px 2px #0000001a;
}

.seller-hover:hover {
    color: #E15340;
}

.about_us {
    font-size: 40px;
    margin-bottom: -10px;
    text-align: center;
    color: #fff;
}

.block_about_us {
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 1px 2px #0000001a;
    background-color: #fff;
}

.footer-line {
    height: 2px;
    background: linear-gradient(to right, transparent, #000000, transparent);
    margin: 20px 0;
  }

.container_footer {
    margin-top: 100px;
    padding: 25px;
    box-shadow: 0 1px 2px #0000001a;
    background-color: #fff;
}

.footer-nav-main-list {
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 15px;
}

.copyright_footer{
    font-size: 16px;
    margin-top: 15px;
    color: #757575;
    text-align: center;
    font-size: 20px;
    font-weight: 300;
}

.text_bottom_f {
    font-size: 16px;
}

.nav-products-footer ul{
    margin-top: 20px;
    gap: 10px;
    flex-direction: column;
    display: flex;
}

.line_footer {
    margin-top: 35px;
}

.first {
    display: flex;
}

.container_footer {
    flex-direction: column;
}

.footer {
    margin-top: auto; /* Этот элемент "оттолкнётся" вниз */
}

.back-ground {
    margin-top: 10px;
    background-size: cover;
    background-repeat: no-repeat;
    background-color: #fff;
}

.left_block_about_us {
    float: left;
}

.aside_block {
    padding-bottom: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    gap: 15px;
}

.right_block_img_png {
        height: auto;
    width: 50%;
}

.right_block_img{
    display: flex;
    justify-content: center;
    float: right;
    margin: 10px;
}

.about_us {
    padding-top: 20px;
}

.left_p {
    text-align: justify;
    margin-top: 20px;
    font-size: 18px;
}
@media screen and (max-width: 1100px) {
    .container {
                padding: 0px;
    }
    .aside-menu {
    min-height: calc(100vh - 511px);
    display: grid
;
    grid-template-columns: 1fr 3fr;
    gap: 0px;
}
    
    .left-menu {
        display: none;
    }
    
    .aside-menu{
        grid-template-columns: 1fr 0fr;
    }
}

@media screen and (max-width: 900px) {
    .right-menu-prod {
    justify-content: space-around;
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: repeat(2, 0fr);
}
    .aside-menu {
        min-height: calc(100vh - 511px);
        display: grid
;
        grid-template-columns: 1fr 0fr;
    }
}

}


 @media screen and (max-width: 800px) {
.aside_block {
            display: flex;
        flex-wrap: wrap;
        gap: 20px;
}
     
     .aside-menu {
    min-height: calc(100vh - 511px);
    display: grid;
    grid-template-columns: 1fr 0fr;
}
    .header-nav {
      justify-content: normal;
      display: grid;
    }
    .nav-people,
    .nav {
      justify-content: normal;
      display: block;
      width: 100%;
  }
    
    .slide {
        top: 150px;
      }
  .slider-dots {
        margin-top: 330px;
      }
  
  .back-ground {
    margin-top: 42px;
  }
  
  .right_block_img_png {
          height: auto;
    height: max-content;
    }
    .container {
        display: grid;
    }
    .container_footer {
        float: left;
        width: 100%;
    }
}

/* ----------- Мобильные телефоны (до 768px) ----------- */
/* ----------- Адаптация под мобильные устройства (до 768px) ----------- */
@media screen and (max-width: 768px) {
    .aside_block {
        display: flex
;
        flex-wrap: wrap;
        gap: 20px;
        /* gap: 20px; */
    }
    .aside-menu {
    min-height: calc(100vh - 511px);
    display: grid;
    grid-template-columns: 1fr 0fr;
}
    .banner {
        display: none;
    }

    .container {
        max-width: 100%;
        padding: 0 15px;
    }

    /* Шапка */
    .header-nav {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-main-list {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        margin-bottom: 10px;
    }

    .nav-people-list {
        display: flex;
        justify-content: space-around;
        flex-wrap: wrap;
        gap: 20px;
        align-items: center;
    }

    .nav-people-list-profile,
    .nav-people-list-trash,
    .nav-people-list-seller {
        min-width: 90px;
        text-align: center;
    }

    .dropdown {

        margin-left: 0;
        width: 100%;
    }

    .dropdown-menu {
        width: 100%;
        margin-top: 10px;
        border-radius: 4px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    /* Слайдер */
    .slide {
        top: 120px;
        height: auto;
    }

    .slider-dots {
        margin-top: 280px;
        padding: 0;
    }

    .slide img {
        width: 100%;
        height: auto;
    }

    /* Блок "О нас" */
    .aside_block {
        gap: 20px;
    }

    .left_block_about_us {
        float: none;
        text-align: left;
        margin-top: 0;
    }

    .right_block_img_png {
        height: auto;
        margin: 0 auto;
    }

    /* Футер */
    .footer-nav-main-list {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .nav-products-footer ul {
        flex-direction: column;
    }

    .nav-products-footer li {
        text-align: center;
    }

    /* Товары */
    .inf {
        grid-template-columns: 1fr;
    }

    .right-menu-prod {
    }

    /* Карточки товаров */
    .product-block {
        width: 90%;
        margin: 0 auto;
        padding: 15px;
        flex-direction: column;
        align-items: center;
    }

    .product-block img {
        max-width: 100%;
        height: auto;
    }

    /* Кнопки */
    .loginform-button,
    .logout-button {
        width: 100%;
        font-size: 16px;
        padding: 12px;
    }

    /* Модальное окно */
    .modal-content {
        width: 90%;
        padding: 15px;
    }
}
@media screen and (max-width: 600px) {
            .right-menu-prod {
        justify-content: space-around;
        margin-bottom: 20px;
        display: grid
;
        grid-template-columns: repeat(1, 0fr);
    }
}
/* ----------- Очень маленькие экраны (до 480px) ----------- */
@media screen and (max-width: 480px) {
        .right-menu-prod {
        justify-content: space-around;
        margin-bottom: 20px;
        display: grid
;
        grid-template-columns: repeat(1, 0fr);
    }
    
    .aside-menu {
    min-height: calc(100vh - 511px);
    display: grid;
            grid-template-columns: 1fr 0fr;
}
    .left-menu {
        display: none;
    }
    .logo {
        font-size: 32px;
    }

    .nav-main-list {
        gap: 5px;
    }

    .nav-main {
        font-size: 14px;
    }

    .slider-dots {
        margin-top: 200px;
    }

    .loginform input {
        width: 100%;
        box-sizing: border-box;
    }

    .modal-content {
        width: 95%;
    }

    .h2-auth-form {
        font-size: 18px;
    }

    .loginform-button {
        font-size: 16px;
        padding: 10px;
    }

    .switch-button {
        font-size: 12px;
    }

    .profile-ikon,
    .trash-ikon {
        width: 18px;
    }

    .left_p {
        font-size: 16px;
    }

    .about_us {
        font-size: 28px;
    }


}