/*============== Desktop First =================*/
/* Large device, Wide Screens */
@media only screen and (max-width: 1497px) {
    .hipe_home_board {
        padding: 0;
    }
    .title_home_board h1 {
        left: 0%;
        bottom: 0px;
    }
    .rec01 {
        flex-wrap: wrap;
        place-content: center;
    }
    .rec01 figure img {
        width: 460px;
        height: 460px;
    }
    .rec02 {
        flex-wrap: wrap;
        place-content: center;
    }
    .rec02 figure img {
        width: 460px;
        height: 460px;
    }
    .name_plant {
        margin-bottom: 1em;
    }
    .name_plant h4 {
        font-size: 45px;
    }
    .cl {
        flex-wrap: wrap;
        place-content: center;
    }
    .ab-out {
        flex-wrap: wrap;
        place-content: center;
    }
    iframe {
        width: 1000px;
    }
    .product {
        width: 240px;
    }
    .container {
        justify-content: space-around;
    }
}

@media only screen and (max-width: 1396px) {
    header h4 {
        display: none;
    }
}

@media only screen and (max-width: 1200px) {

   header img {
        max-width: 80px;
   }
   .rec02 figure img {
        width: 360px;
        height: 360px;
   }
   .rec01 figure img {
        width: 360px;
        height: 360px;
   }
   .hover-text-one p {
        font-size: 50%;
   }
   .effect-text-three a figcaption h3{
        font-size: 120%;
   }
   iframe {
        width: 900px;
   }
   .product {
        width: 200px;
    }

}

/* Medium device, Desktops */
@media only screen and (max-width: 675px) {
    header img {
        max-width: 30px;

    }
    header nav ul {
        padding-inline-start: 0;
    }
   .hover-text-one p {
        font-size: 30%;
   }
   .effect-text-three a figcaption h3 {
        font-size: 100%;
   }
   /* redesign: на маленьких экранах бургер-меню (.lb-header) убран, шапка (.site-header.glass)
      больше не сворачивается по чекбоксу — остаётся видна всегда, как на десктопе. */
   body > .lb-header {
         display: none;
   }
   header {
        flex-wrap: nowrap;
   }
   .information-about-pitomnik img {
    width: 600px;
   }
   iframe {
        width: 700px; /* redesign: была опечатка "700x" (невалидное значение, не применялось) */
        height: 250px;
   }
   .ab-out p {
        font-size: 15px;
   }
   .item_box > div > div {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
   }
   /* Кнопки навигации личного кабинета (Администратор/Заказы/Поездки/Выход и т.п.) — раньше
      это был нестилизованный display:flex без переноса, кнопки разной ширины наезжали друг на
      друга/съезжали за экран на мобильном. */
   .profile_footer_adaptive___ {
        flex-wrap: wrap;
        gap: 8px;
   }
   .profile_footer_adaptive___ .app-card-footer {
        flex: 1 1 auto;
        padding: 6px !important;
        margin-left: 0 !important;
   }
   .profile_footer_adaptive___ .app-card-footer > a,
   .profile_footer_adaptive___ .app-card-footer > form,
   .profile_footer_adaptive___ .app-card-footer > form > button {
        width: 100%;
   }
}

/* Small device, Tablets */
@media only screen and (max-width: 775px) {
         header img {
        max-width: 60px;
    }
    header figure {
        max-width: 100%;
        text-align-last: center;
        padding: 1.5% 0;
    }
    .lb-header > img {
        max-width: 30px;
    }
    .title_home_board h1 {
        font-size: 25px;
    }
    header nav ul {
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        justify-content: space-evenly;
        margin: 10px 0;
        font-size: larger;
        padding: 0;
    }
    header {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    header nav ul li {
        margin: 5px;
    }
    .information-about-pitomnik img {
        width: 100%;
    }
    .profile_footer_adaptive___ {
        flex-direction: row;
        flex-wrap: wrap;
        align-content: stretch;
        justify-content: space-around;
    }
   .hover-text-one p {
        font-size: 40%;
   }
   .hover-text-one figure h3 {
        font-size: 80%;
   }
   iframe {
        display: none;
   }
   .cont_11 {
        display: none;
   }


}

/* Extra Small device, Phones */
@media only screen and (max-width: 480px) {
    .title_home_board h1 {
        font-size: 25px;
        padding-top: 0px;
    }
}

/* Custom, iPhone Retina */
@media only screen and (max-width: 500px) {
     header img {
        max-width: 60px;
    }
    header figure {
        max-width: 100%;
        padding: 5% 0 0 0;
        text-align-last: center;
    }
    .lb-header > img {
        max-width: 30px;
    }
    .title_home_board h1 {
        font-size: 25px;
    }
    header nav ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        flex-wrap: nowrap;
        justify-content: space-evenly;
        margin: 10px 0;
        font-size: larger;
    }
    header {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    header nav ul li {
        margin: 5px;
    }
    .information-about-pitomnik img {
        width: 100%;
    }
    .profile_footer_adaptive___ {
        flex-direction: row;
        flex-wrap: wrap;
        align-content: stretch;
        justify-content: space-around;
    }
     .rec01 figure img {
        width: 100%;
        height: 100%;
    }
    .rec02 figure img {
        width: 100%;
        height: 100%;
    }
}

/* redesign: перенесено из инлайнового <style> base.html (узкие экраны ≤320px).
   Некорректный блок "@media only screen (max-width: 320px)" без "and" не применялся и удалён. */
@media only screen and (max-width: 320px) {
    header nav ul {
        font-size: 4.5vw;
        text-align: start;
        padding-inline-start: 20px;
    }
    header {
        border-radius: var(--r-lg);
        width: 80%;
        padding: 0 0 10px;
    }
    header nav ul li {
        padding: 2.5px 0;
    }
}
