
.container_dev {
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


.container_dev>img {
    height: 40px;
    width: 40px;
    margin-bottom: 10px;
}


.container_dev>h2 {
    font-size: 20px;
}

.container_dev>a {
    background-color: #E62222;
    color: #fff;
    border-radius: 10px;
    font-size: 16px;
    padding: 10px 15px;
    margin-top: 20px;
}


header {
    width: 100%;
    height: 50px;
    max-height: 50px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: #fff;
}

html {
    font-family: 'Yandex Sans Display', sans-serif;
}

html, body {
    width: 100%; /* Фиксирует ширину */
    max-width: 100%; /* Гарантирует, что контент не выйдет за границы */
    position: relative; /* Для корректной работы некоторых браузеров */
}

.header>ul{
    display: flex;
    align-items: center;
    font-family: 'Yandex Sans Display', sans-serif;

}

.header {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    box-shadow: 0 0 6px #ccccccae;
}

.logo {
    
    height: 50px;
    width: auto;
}


.header_route, .header_route_category {
    color: #E62222;
    margin-left: 5px;
}

.header_route>a, .header_route_category>a {
    color: #000;
    margin-left: 5px;
}




.header>ul:last-of-type>li {
    font-size: 16px;
    position: relative;
    display: inline-block;
    text-decoration: none;
    padding-bottom: 1px;
}

.header>ul:last-of-type>li+li {
    margin-left: 20px;
}

.header>ul:last-of-type>li::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background-color: #E62222;
    transition: width 0.3s ease;
}

.header>ul:last-of-type>li:hover::after{
    width: 100%;
}


#noResultsMessage {
    margin-top: 100px;
    text-align: center;
    font-weight: bold;
    font-size: 20px;
    display: flex;
    flex-direction: column;
    display: none;
}

#noResultsMessage>img {
    width: 50px;
    margin-bottom: 10px;
}

#noResultsMessage>h1 {
    margin-bottom: 20px;
}

#noResultsMessage>a {
    font-weight: 500;
    font-size: 16px;
    background-color: #E62222;
    color: #fff;
    border-radius: 10px;
    padding: 10px 15px;
}

body {
    background-color: #FAFAFA;    
}

.container {
    margin: 50px auto 0;
    width: 100%;
    padding: 5px 10px;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}



.side_menu {
    padding: 5px;
    background-color: #fff;
    max-width: 285px;
    min-width: 285px;
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 0 6px #cccccc;
    margin-right: 10px;
    font-family: "Yandex Sans Display", sans-serif;
    position: sticky !important;
    top: 55px;
    height: 0%;
    margin-bottom: 40px;
    margin-right: -285px;   
    
    opacity: 0;
    visibility: hidden;
    transition: margin 0.2s ease, opacity 0.2s ease, visibility 0.2s ease;
}   

.side_menu.show {
    visibility: visible;
    margin-right: 5px;
    opacity: 1;
}

#resetButton {
    position: absolute;
    width: 100%;
    left: -5px;
    bottom: -50px;
    border-radius: 10px;
    color: #000;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 6px #cccccc;
    background-color: #fff; 
    transition: all 0.2s;
}

.side_menu>ul {
    overflow: auto;
    max-height: calc(100vh - 200px);
}


.side_menu>ul>li {
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-5px);
    color: #000 ;
}

.side_menu>ul>li>button {
    color: #000;
}

.side_menu li.show {
    opacity: 1;
    transform: translateX(0);
}


.side_menu>ul>li>button {
    width: 100%;
    text-align: left;
    padding: 10px;
    border-radius: 10px; 
    line-height: 16px;  
    
}

.side_menu>ul>li>button:not(.active):hover {
    background-color: #f0f0f0;
}

.active{
    background-color: #E62222;
    color: #fff !important;
    transition: background-color 0.3s ease;
}

.hide {
    display: none;
}

.side_menu>h1 {
    
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
}

.side_menu>button {
    color: #E62222;
    display: flex;
    align-items: end;
    margin: 5px;
    transition: opacity 0.1s;
}

.side_menu>button>img {
    height: 18px;
    margin-left: 2px;
}

.side_menu>button:hover {
    opacity: 0.8;
}

.cards_container {
    margin-top: 30px;
    padding-top: 5px;
    max-width: 1000px;
    width: 100%;
    box-sizing: border-box;
}

.header_cards_container {
    display: flex;
    position: fixed;
    top: 55px;
    width: 100%;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInCard 0.5s ease forwards;
    animation-delay: 0.2s;
    z-index: 1000;
}

.sideMenuBtn {
    margin-right: 5px;
    height: 40px;
    width: 100px;
    background-color: #fff;
    color: #000;
    border-radius: 10px;
    box-shadow: 0 0 6px #ccccccae;
}

.sideMenuBtn> .filtered {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 10px;
    top: 0;
    margin: 4px;
    display: none;
    background-color: #E62222;
}


.sideMenuBtn.active {
    background-color: #E62222;
    color: #fff;
}



.search_side {
    font-family: "Yandex Sans Display", sans-serif;
    border-radius: 10px;
    background-color: #ffffff;
    height: 40px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    max-width: 300px;
    width: 100%;
    box-shadow: 0 0 6px #ccccccae;
}

.search_side>img {
    height: 20px;
    width: 20px;
    opacity: 0.7;

}

.resetBtn {
    height: 40px;
    width: 20px;
    display: none;
}

.resetBtn>img {
    height: 20px;
    width: 20px;
    opacity: 0.7;
}

.search_side>input {
    width: 100%;
    background-color: inherit;
    outline: none;
    padding-right: 5px;
}

.search_side>input:not(:placeholder-shown) ~ .resetBtn {
    display: block;
}

.search_side>input:not(:placeholder-shown) + img {
    display: none;
}


.search_side>input::placeholder{
    font-family: "Yandex Sans Display", sans-serif;
    color: #979797;
}


@keyframes fadeInCard {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#toggleArrow {
    transition: transform 0.3s ease;
}

#resetButton {
    animation: resetBtnAnim 0.3s ease;
}

@keyframes resetBtnAnim {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0px);
    }
}

/* -------------------- CARD -------------------- */


.card {
    display: flex;
    width: 100%;
    z-index: 90;
    margin-top: 10px;
    height: 250px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 6px #ccccccae;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInCard 0.5s ease forwards;
    animation-delay: 0.2s;
    padding: 10px;
    transition: filter 0.1s ease;
}


.card>img {
    height: 100%;
    border-radius: 10px;
    margin-right: 10px;
    aspect-ratio: 1/1;
    object-fit: cover;
}



.card>.info>h1 {
    font-weight: bold;
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.card>.info>h2 {
    font-size: clamp(14px, 1.5vw, 16px);
    color: #636363 !important;
    line-height: 1;
    margin-bottom: 10px;
    color: #000;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.card>.info>p {
    font-size: clamp(13px, 1.2vw, 15px);
    color: #000;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4; /* Ограничиваем количество строк */
    -webkit-box-orient: vertical;
}


.card>.info>ul {
    display: flex;
    position: absolute;
    right: 10px;
    bottom: 20px;
}

.card>.info>ul>li:first-of-type>a{
    font-size: clamp(14px, 1.5vw, 16px);
    border-radius: 10px;
    color: #000;
    padding: 10px 15px;
    transition: background-color 0.2s ease;
    background-color: #f5f5f5;
}

.card>.info>ul>li:first-of-type>a:hover {
    background-color: #eeeeee;
}

.card>.info>ul>li:last-of-type>a{
    font-size: clamp(14px, 1.5vw, 16px);
    background-color: #E62222;
    border-radius: 10px;
    color: #fff;
    padding: 10px 15px;
    transition: background-color 0.2s ease;
}

.card>.info>ul>li:last-of-type>a:hover {
    background-color: #ff3b3b;
}

.card>.info>ul>li + li {
    margin-left: 5px;
}

/* -------------------- FOOTER -------------------- */

.footer {
    background-image: url(./images/footer.png);
    background-size: cover;
    height: 150px;
    text-align: center;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    padding: 60px 0 10px;
}

.footer>h5 {
    color: #737A80;
    font-size: 18px;
    
}

.footer>h6 {
    color: #545D63;
    font-size: 16px;
}



.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2); 
  align-items: center;
  justify-content: center;

}

.modal-content {
  background-color: #fff;
  margin: 10px;
  padding: 20px;
  border-radius: 20px;
    max-width: 500px;
    width: 100%;
  position: relative;
    display: inline-flex;
    box-shadow: 0 0 6px #ccccccae;
}

.close {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 40px;
    height: 40px;
  font-weight: bold;
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;

}

.close:hover {
    background-color: #ebebeb;
}

.modal-body {
  display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.modal-body img {
  max-width: 300px;
  max-height: 300px;
  object-fit: contain;

}

.modal-info {
    width: 100%;
}


.modal-info>h1 {
    font-weight: bold;
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

.modal-info>h2 {
    font-size: clamp(14px, 1.5vw, 16px);
    color: #636363 !important;
    line-height: 1;
    margin-bottom: 10px;
    color: #000;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

.modal-info>p {
    font-size: clamp(13px, 1.2vw, 15px);
    color: #000;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    margin-bottom: 50px;
}

.modal-info>a {
    font-size: clamp(14px, 1.5vw, 16px);
    background-color: #E62222;
    border-radius: 10px;
    color: #fff;
    padding: 10px 15px;
    transition: background-color 0.2s ease;
    position: absolute;
    right: 10px;
    bottom: 10px;
}

.modal-content {
  animation: modalopen 0.3s;
}

@keyframes modalopen {
  from {opacity: 0; transform: translateY(-20px);}
  to {opacity: 1; transform: translateY(0);}
}

@media (max-width: 768px) {
  .modal-body {
    flex-direction: column;
  }
  
  .modal-body img {
    max-width: 100%;
  }
}


@media (max-width: 820px) {
    
    .cards_container {
        margin-top: 35px;
    }

    .card {
        height: 200px;
        margin-top: 5px;
    }

    .card>img {
         height: 80%;
    }

    .card>.info>h1 {
        -webkit-line-clamp: 2;
    }

    .card.blur {
        filter: blur(4px);
    }

    .side_menu  {
        margin: 0;
        position: fixed !important;
        left: 10px;
        height: auto;
        z-index: 10000;
        top: 100px;
        transform: translateX(-100%);
        transition: transform 0.2s ease, opacity 0.2s ease, visibility 0.2s ease;
    }

    .side_menu.show  {
        transform: translateX(0);

    }

    
    .side_menu>ul {
        max-height: calc(100vh - 300px);
    }

    .header_route {
        display: none;
    }


}

@media (max-width: 500px) {
    .footer>h5, .footer>h6{
        font-size: 14px !important;
    }

    .search_side {
        max-width: calc(100% - 125px);
    }
    .side_menu {
        max-width: calc(100% - 20px);
        transform: translateY(-5px);
    }

    

}


@media (max-width: 450px) {
    .card>img {
         height: 70%;
    }
}


.orientation {
    z-index: 1000;
    background-color: #FAFAFA;
    height: 100vh;
    width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
}

.orientation>h1 {
    margin-top: 10px;
    font-size: 20px;
    font-weight: 800;
    text-align: center;
    max-width: 400px;
    line-height: 1;
}

@media screen and (min-width: 320px) and (max-width: 767px) and (orientation: landscape){
    .orientation {
        opacity: 1;
        visibility: visible;
    }
}