@import url("https://fonts.googleapis.com/css2?family=Russo+One&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap');

/*.roboto-mono-<uniquifier> {
  font-family: "Roboto Mono", monospace;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
}*/

header, footer {
    background: linear-gradient(to bottom, rgb(197, 26, 26), rgb(229, 109, 45));
    padding: 10px;
  }
  
  main {
    padding: 10px;
    background-color: silver;
  }
  .pos {
    width: 100%;
    display: flex;
    justify-content: space-between;

  }

  .po {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin: 0 auto;
  }
  .post {
    background-color: white;
    flex: 1;
    border-radius: 10px;
    margin: 10px;
    padding: 20px;
    border: 1px solid #ccc;
     box-sizing: border-box;
     float: left;
  }

  .post2 {
    background-color: white;
    flex: 1;
    border-radius: 10px;
    margin: 10px;
    padding: 20px;
    border: 1px solid #ccc;
     box-sizing: border-box;

  }
  .post1 {
    float: left;
    margin-right: 20px;
    margin-bottom: 20px;

  }
  .post img {
    margin: 20px;
  }
  img.imgpost {
    width: 420px;
    border-radius: 15px;
  }
  
  .footer-columns {
    display: flex;
  }
  
  .footer-column {
    flex: 50%;
    margin: 20px;

  }
  .post-info {
    color: grey;
    }
    .comment {
background-color: white;
padding: 20px;
border-radius: 10px;
margin-top: 10px;
}
.author {
margin-top: 0px;
margin-bottom: 10px;
}
.date {
color: silver;
margin-top: 0px;
margin-bottom: 10px;
}
#sub-comment {
margin-left: 40px;
}

.comment {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  margin-top: 10px;
  }
  .author {
  margin-top: 0px;
  margin-bottom: 10px;
  }
  .date {
  color: silver;
  margin-top: 0px;
  margin-bottom: 10px;
  }
  #sub-comment {
  margin-left: 40px;
  }


  #navigation {
    background: #ad3030;
    height: 35px;
    }



/*
  ul.menu, li.menu {
        margin: 0;
        padding: 0;
        }
        
        ul.menu {
        list-style: none;
        width: 100%;
        }
        
        li.menu {
        float: left;
        width: auto;
        }
        
        a.menu {
        background: #0a7516;
        color: #FFFFFF;
        display: block;
        font: bold 13px sans-serif;
        padding: 10px 25px;
        text-align: center;
        text-decoration: none;
        }
        
        li:hover a {
        background: #561313;
        }

        .pfuter {
          color: #FFFFFF;
        }
        .h3pfuter {
          color: #FFFFFF;

          }

*/

#menu1{
position: relative;
display: block;
width: 100%;
height: auto;
z-index: 10;
background: #ad3030;
height: 36px;
font-family: "Roboto Mono", monospace;
font-optical-sizing: auto;
font-weight: 700;
font-style: normal;
}



#menu1 ul{
  position: relative;
  display: block;
  margin: 0px;
  padding: 0px;
  width: 100%;
  height: auto;
  list-style: none;
  }


  #menu1 > ul::after{
    display: block;
    width: 100%;
    height: 0px;
    clear: both;
    content: " ";
    }


    #menu1 ul li{
      position: relative;
      display: block;
       float: left;
      width: auto;
      height: auto;
      background: #a94e15;
      box-shadow: inset 0px 0px 5px 5px #638253;
      }


      #menu1 ul li a{
        display: block;
        padding: 9px 25px 0px 25px;
        font-size: 14px;
        line-height: 1.3em;
        text-decoration: none;
        font-weight: bold;
        text-transform: uppercase;
        height: 36px;
        box-sizing: border-box;
        color: white;
        }


        #menu1 ul li ul{
          position: absolute;
          top: 36px;
          left: 0px;
          display: none;
          width: 200px;
          background: #38b6ff;
          }



          #menu1 ul li:hover ul{
            display: block;
            }


            #menu1 ul li ul li{
              float: none;
              width: 100%;
              }
              
              #menu1 ul li ul li a{
              display: block;
              text-transform: none;
              height: auto;
              padding: 7px 25px;
              width: 100%;
              box-sizing: border-box;
              border-top: 1px solid #ffffff;
              color: white;
              }
              
              #menu1 ul li ul li:first-child a{
              border-top: 0px;
              }

      /*        .shadow1 {
                box-shadow: 0 1px 4px rgba(0, 0, 0, .3),
                -23px 0 20px -23px rgba(0, 0, 0, .8),
                23px 0 20px -23px rgba(0, 0, 0, .8),
                inset 0 0 40px rgba(0, 0, 0, .1);
              }*/

              .logo {
                flex: 0 0 auto;
              }
              

              .carousel {
                position: relative;
                width: 100%;
                height: 400px;
                overflow: hidden;
            }
            
            .carousel-container {
                display: flex;
                width: 100%;
                height: 100%;
                transition: transform 0.5s ease-in-out;
            }
            
            .carousel-slide {
                min-width: 100%;
                height: 400px;
            }
            
            .carousel-slide img {
                width: 100%;
                height: 100%;
                object-fit: cover;
            }
            
            .carousel-button {
                position: absolute;
                top: 50%;
                transform: translateY(-50%);
                background: rgba(0, 0, 0, 0.5);
                color: white;
                padding: 1rem;
                border: none;
                cursor: pointer;
                font-size: 1.5rem;
                transition: background-color 0.3s;
            }
            
            .carousel-button:hover {
                background: rgba(0, 0, 0, 0.8);
            }
            
            .prev {
                left: 1rem;
            }
            
            .next {
                right: 1rem;
            }
            
            .carousel-dots {
                position: absolute;
                bottom: 1rem;
                left: 50%;
                transform: translateX(-50%);
                display: flex;
                gap: 0.5rem;
            }
            
            .dot {
                width: 10px;
                height: 10px;
                border-radius: 50%;
                background: rgba(255, 255, 255, 0.5);
                cursor: pointer;
                transition: background-color 0.3s;
            }
            
            .dot.active {
                background: white;
            }



            .cards {
              display: grid;
              /* Автоматически заполняем на всю ширину grid-контейнера */
              grid-template-columns: repeat(auto-fill, 225px);
              width: 100%;
              max-width: 1000px; /* Ширина grid-контейнера */
              justify-content: center;
              justify-items: center; /* Размещаем карточку по центру */
              column-gap: 30px; /* Отступ между колонками */
              row-gap: 40px; /* Отступ между рядами */
              margin: 30px auto;
            }

            .card {
              width: 225px;
              min-height: 350px;
              box-shadow: 1px 2px 4px rgba(20, 141, 189, 0.242);
              display: flex;
              flex-direction: column; /* Размещаем элементы в колонку */
              border-radius: 4px;
              transition: 0.2s;
              position: relative;
              background: #ffffff;
            }
            
            /* При наведении на карточку - меняем цвет тени */
            .card:hover {
              box-shadow: 8px 8px 16px rgba(69, 137, 255, 0.365);
            }
            
            .card__top {
              flex: 0 0 220px; /* Задаем высоту 220px, запрещаем расширение и сужение по высоте */
              position: relative;
              overflow: hidden; /* Скрываем, что выходит за пределы */
            }
            
            /* Контейнер для картинки */
            .card__image {
              display: block;
              position: absolute;
              top: 0;
              left: 0;
              width: 100%;
              height: 100%;
            }
            
            .card__image > img {
              width: 100%;
              height: 100%;
              object-fit: contain; /* Встраиваем картинку в контейнер card__image */
              transition: 0.2s;
            }
            
            /* При наведении - увеличиваем картинку */
            .card__image:hover > img {
              transform: scale(1.1);
            }
            
            /* Размещаем скидку на товар относительно изображения */
            .card__label {
              padding: 4px 8px;
              position: absolute;
              bottom: 10px;
              left: 10px;
              background: #ff6633;
              border-radius: 4px;
              font-weight: 400;
              font-size: 16px;
              color: #fff;
            }
            
            .card__bottom {
              display: flex;
              flex-direction: column;
              flex: 1 0 auto; /* Занимаем всю оставшуюся высоту карточки */
              padding: 10px;
            }
            
            .card__prices {
              display: flex;
              margin-bottom: 10px;
              flex: 0 0 50%; /* Размещаем цены равномерно в две колонки */
            }
            
            .card__price::after {
              content: "₽";
              margin-left: 4px;
              position: relative;
            }
            
            .card__price--discount {
              font-weight: 700;
              font-size: 19px;
              color: #414141;
              display: flex;
              flex-wrap: wrap-reverse;
            }
            
            .card__price--discount::before {
              content: "Со скидкой";
              font-weight: 400;
              font-size: 13px;
              color: #bfbfbf;
            }
            
            .card__price--common {
              font-weight: 400;
              font-size: 17px;
              color: #606060;
              display: flex;
              flex-wrap: wrap-reverse;
              justify-content: flex-end;
            }
            
            .card__price--common::before {
              content: "Обычная";
              font-weight: 400;
              font-size: 13px;
              color: #bfbfbf;
            }
            
            .card__title {
              display: block;
              margin-bottom: 10px;
              font-weight: 400;
              font-size: 17px;
              line-height: 150%;
              color: #414141;
            }
            
            .card__title:hover {
              color: #ff6633;
            }
            
            .card__add {
              display: block;
              width: 100%;
              font-weight: 400;
              font-size: 17px;
              color: #70c05b;
              padding: 10px;
              text-align: center;
              border: 1px solid #70c05b;
              border-radius: 4px;
              cursor: pointer; /* Меняем курсор при наведении */
              transition: 0.2s;
              margin-top: auto; /* Прижимаем кнопку к низу карточки */
            }
            
            .card__add:hover {
              border: 1px solid #ff6633;
              background-color: #ff6633;
              color: #fff;
            }