/* ==========================================
   АДАПТИВНЫЕ СТИЛИ ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ
   Блоки: поиск, меню, футер, модальные окна
   ========================================== */

/* ===== ПЛАНШЕТЫ (до 1024px) ===== */
@media (max-width: 1024px) {
    
    /* Основные контейнеры */
    .container1,
    .header-container,
    .container2,
    .container24 {
        max-width: 90%;
    }
    
    /* Секция поиска */
/* Секция 10 — Поиск и иконки */
.section10 {
    padding: 0 15px;
    box-sizing: border-box;
}

.container2 {
    flex-wrap: nowrap;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.search-icon-background {
    flex-shrink: 0;
}

.search-input {
    width: 130px;
}

#results {
    z-index: 9999;
    position: absolute;
}

.section10 .right-elements {
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 5px;
}

.section10 .icon-wrapper .text {
    display: none;
}

.section10 .icon-wrapper {
    margin-left: 5px;
}
    
    /* Футер */
    .logo-container {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .flower {
        flex: 1 1 45%;
        min-width: 200px;
    }
    
    /* Модальные окна */
    .modal-content,
    .modal-content1 {
        width: 40%;
    }


    /* Слайд-шоу */
#image-container {
    max-width: 100%;
    margin: auto;
}

#slideshow {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.dots {
    bottom: 15px;
    left: 8px;
    justify-content: center;
}

.dot {
    width: 9px;
    height: 9px;
    margin: 0 3px;
}
}

/* ===== БОЛЬШИЕ ТЕЛЕФОНЫ (до 768px) ===== */
@media (max-width: 768px) {
    
    /* Основные контейнеры */
    .container1,
    .header-container,
    .container2,
    .container24 {
        max-width: 95%;
    }
    
    /* Секция поиска — ГЛАВНЫЙ ФИКС */
/* Секция 10 — Поиск и иконки в одну строку */
.section10 {
    width: 100%;
    padding: 8px 10px;
    box-sizing: border-box;
    overflow-x: hidden;
}

.container2 {
    max-width: 100%;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 5px;
    box-sizing: border-box;
}

.search-icon-background {
    flex-shrink: 1;
    flex-grow: 1;
    max-width: 50%;
    position: relative;
}

.search-input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 8px 10px 8px 40px;
    font-size: 14px;
}

#results {
    width: 100%;
    max-width: none;
    z-index: 9999;
    position: absolute;
    top: 100%;
    left: 0;
}

/* Правые элементы — в строку справа */
.section10 .right-elements {
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.section10 .icon-wrapper {
    margin-left: 3px;
    flex-direction: row;
}

/* Скрываем текст "Войти" и "Избранное" */
.section10 .icon-wrapper .text {
    display: none;
}

.icon,
.icon1 {
    width: 24px;
    height: 24px;
    margin-right: 0;
}

.notification,
.notification1 {
    width: 18px;
    height: 18px;
    font-size: 10px;
    top: -8px;
    margin-left: -10px;
}
    
    /* Меню */
    .section3 {
        padding: 0px 20px;
    }
    
    nav ul li {
        margin: 0 15px;
    }
    
    .dropdown-content {
        min-width: 100px;
    }
    
    /* Футер */
    .header24 {
        padding: 15px 10px;
    }
    
    .container24 {
        width: 95%;
    }
    
    .logo-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .flower {
        flex: 1 1 100%;
        text-align: center;
        padding: 10px 5px;
    }
    
    .social-links {
        justify-content: center;
        display: flex;
    }
    
    /* Модальные окна */
    .modal-content,
    .modal-content1 {
        width: 80%;
        margin: 5% auto;
        padding: 15px;
    }
    
    /* Кнопка наверх */
    .scrollToTop {
        bottom: 30px;
        right: 15px;
        padding: 8px;
        font-size: 18px;
    }
    
    /* Cookie */
    #cookie-consent {
        font-size: 10px;
        padding: 8px;
    }


    /* Слайд-шоу */
#image-container {
    max-width: 100%;
    margin: auto;
}

#slideshow {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.dots {
    bottom: 12px;
    left: 0;
    right: 0;
    justify-content: center;
}

.dot {
    width: 8px;
    height: 8px;
    margin: 0 3px;
}
}

/* ===== МАЛЕНЬКИЕ ТЕЛЕФОНЫ (до 480px) ===== */
@media (max-width: 480px) {
    
    /* Глобальный фикс переполнения */
    body {
        overflow-x: hidden;
    }
    
    /* Основные контейнеры */
    .container1,
    .header-container,
    .container2,
    .container24 {
        max-width: 100%;
        padding: 0 10px;
        box-sizing: border-box;
    }
    
    /* Секция 9 (верхняя часть) */
    .section9 {
        margin-top: 5px;
    }
    
    /* Секция поиска — КЛЮЧЕВОЙ ФИКС */
    /* Секция 10 — Поиск и иконки в одну строку */
.section10 {
    width: 100%;
    padding: 5px 8px;
    box-sizing: border-box;
    overflow: hidden;
}

.container2 {
    max-width: 100%;
    width: 100%;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
    gap: 8px;
}

.search-icon-background {
    flex-shrink: 1;
    flex-grow: 1;
    max-width: 55%;
    position: relative;
}

.search-input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 7px 8px 7px 35px;
    font-size: 13px;
    background-size: 14px;
    background-position: 8px center;
}

#results {
    width: 100%;
    max-height: 50vh;
    z-index: 9999;
    position: absolute;
    top: 100%;
    left: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.result-image {
    width: 70%;
}

/* Правые элементы — строго в строку справа */
.section10 .right-elements {
    flex-shrink: 0;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 3px;
}

.section10 .icon-wrapper {
    margin-left: 2px;
    flex-direction: row;
    align-items: center;
}

/* Скрываем текст "Войти" и "Избранное" */
.section10 .icon-wrapper .text {
    display: none;
}

.icon,
.icon1 {
    width: 22px;
    height: 22px;
    margin-right: 0;
}

.notification,
.notification1 {
    width: 16px;
    height: 16px;
    font-size: 9px;
    top: -8px;
    margin-left: -8px;
}
    
    /* Меню */
    .section3 {
        padding: 0px 10px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px 10px;
    }
    
    nav ul li a {
        font-size: 14px;
    }
    
    .dropdown-content {
        min-width: 90px;
        font-size: 12px;
    }
    
    .dropdown-content a {
        padding: 6px 4px;
    }
    
    /* Футер */
    .header24 {
        font-size: 12px;
        padding: 10px 5px;
    }
    
    .container24 {
        width: 100%;
        padding: 0 5px;
    }
    
    .logo-container {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .flower {
        flex: 1 1 100%;
        text-align: center;
        padding: 8px 5px;
        font-size: 13px;
    }
    
    .flower a {
        font-size: 13px;
    }
    
    .social-icon {
        width: 28px;
        height: 28px;
        margin-right: 8px;
    }
    
    .footer {
        font-size: 11px;
        padding: 8px 5px;
    }
    
    /* Модальные окна */
    .modal-content,
    .modal-content1 {
        width: 92%;
        margin: 3% auto;
        padding: 12px;
        border-radius: 8px;
    }
    
    .modal-content h3,
    .modal-content1 h3 {
        font-size: 18px;
        margin-top: 10px;
    }
    
    input[type="email"],
    input[type="tel"],
    input[type="text"],
    input[type="password"],
    .phone-input {
        font-size: 14px;
        padding: 8px;
    }
    
    .entrance-button,
    .entrance1-button {
        width: 80%;
        font-size: 14px;
        padding: 8px;
    }
    
    label {
        font-size: 13px;
    }
    
    .error-message {
        font-size: 11px;
    }
    
    /* Кнопка наверх */
    .scrollToTop {
        bottom: 20px;
        right: 10px;
        padding: 6px 8px;
        font-size: 16px;
    }
    
    /* Cookie */
    #cookie-consent {
        font-size: 9px;
        padding: 6px;
        line-height: 1.5;
    }
    
    #accept-cookies {
        font-size: 11px;
        padding: 4px 8px;
    }

    /* Слайд-шоу */
#image-container {
    max-width: 100%;
    margin: auto;
    padding: 0 1px; 
    box-sizing: border-box;
}

#slideshow {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.dots {
    bottom: 10px;
    left: 0;
    right: 0;
    justify-content: center;
}

.dot {
    width: 7px;
    height: 7px;
    margin: 0 2px;
}
}

/* ===== ОЧЕНЬ МАЛЕНЬКИЕ ЭКРАНЫ (до 360px) ===== */
@media (max-width: 360px) {
    
    .container1,
.header-container,
.container2,
.container24 {
    max-width: 100%;
    padding: 0 5px;
}

/* Секция 10 — Поиск и иконки */
.section10 {
    padding: 3px 5px;
}

.container2 {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 5px;
}

.search-icon-background {
    flex-shrink: 1;
    flex-grow: 1;
    max-width: 50%;
    position: relative;
}

.search-input {
    padding: 6px 6px 6px 30px;
    font-size: 12px;
    background-size: 12px;
    background-position: 6px center;
}

#results {
    z-index: 9999;
    position: absolute;
    top: 100%;
    left: 0;
    max-height: 50vh;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.section10 .right-elements {
    flex-shrink: 0;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 2px;
}

.section10 .icon-wrapper {
    margin-left: 1px;
}

/* Скрываем текст */
.section10 .icon-wrapper .text {
    display: none;
}

.icon,
.icon1 {
    width: 20px;
    height: 20px;
    margin-right: 0;
}

.notification,
.notification1 {
    width: 14px;
    height: 14px;
    font-size: 8px;
    top: -6px;
    margin-left: -6px;
}
    
    nav ul li {
        margin: 3px 8px;
    }
    
    nav ul li a {
        font-size: 12px;
    }
    
    .flower {
        font-size: 11px;
    }
    
    .social-icon {
        width: 24px;
        height: 24px;
        margin-right: 5px;
    }
    
    .modal-content,
    .modal-content1 {
        width: 95%;
        padding: 10px;
    }
    
    .entrance-button,
    .entrance1-button {
        width: 90%;
        font-size: 13px;
    }
    
    #cookie-consent {
        font-size: 8px;
    }


    /* Слайд-шоу */
#image-container {
    max-width: 100%;
    margin: auto;
    padding: 0 1px; 
    box-sizing: border-box;
}

#slideshow {
    width: 100%;
    height: auto;
    border-radius: 3px;
}

.dots {
    bottom: 8px;
    left: 0;
    right: 0;
    justify-content: center;
}

.dot {
    width: 6px;
    height: 6px;
    margin: 0 2px;
}



}

/* ===== СКРЫТИЕ ПОЛОСЫ ПРОКРУТКИ — ВСЕ МОБИЛЬНЫЕ ===== */
@media (max-width: 1024px) {
    
    body,
    html {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    
    body::-webkit-scrollbar,
    html::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }
    
    .scrollable-results,
    .scroll-with-hover,
    #results,
    .modal-content,
    .modal-content1,
    .dropdown-content {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    
    .scrollable-results::-webkit-scrollbar,
    .scroll-with-hover::-webkit-scrollbar,
    #results::-webkit-scrollbar,
    .modal-content::-webkit-scrollbar,
    .modal-content1::-webkit-scrollbar,
    .dropdown-content::-webkit-scrollbar {
        display: none;
        width: 0;
    }
}

/* ===== ФУТЕР ===== */
/* ПЛАНШЕТЫ (до 1024px) */
@media (max-width: 1024px) {
    
    /* Футер — фикс выхода за границы */
    .header24,
    footer,
    .footer {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .container24 {
        max-width: 95%;
        width: 95%;
        box-sizing: border-box;
        margin: 0 auto;
    }
    
    .logo-container {
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* БОЛЬШИЕ ТЕЛЕФОНЫ (до 768px) */
@media (max-width: 768px) {
    
    /* Футер — усиленный фикс */
    .header24,
    footer,
    .footer {
        max-width: 100vw;
        width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .container24 {
        max-width: 100%;
        width: 100%;
        padding: 0 10px;
        box-sizing: border-box;
        margin: 0 auto;
    }
    
    .logo-container {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    
    .flower {
        max-width: 100%;
        box-sizing: border-box;
        word-wrap: break-word;
    }
}

/* МАЛЕНЬКИЕ ТЕЛЕФОНЫ (до 480px) */
@media (max-width: 480px) {
    
    /* Футер — максимальный фикс */
    .header24,
    footer,
    .footer {
        max-width: 100vw;
        width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
        padding-left: 5px;
        padding-right: 5px;
    }
    
    .container24 {
        max-width: 100%;
        width: 100%;
        padding: 0 5px;
        box-sizing: border-box;
    }
    
    .logo-container {
        max-width: 100%;
        width: 100%;
        padding: 0;
        margin: 0;
        box-sizing: border-box;
    }
    
    .flower {
        max-width: 100%;
        padding: 8px 5px;
        box-sizing: border-box;
    }
}

/* ОЧЕНЬ МАЛЕНЬКИЕ ЭКРАНЫ (до 360px) */
@media (max-width: 360px) {
    
    .header24,
    footer,
    .footer {
        max-width: 100vw;
        width: 100%;
        padding-left: 3px;
        padding-right: 3px;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .container24 {
        max-width: 100%;
        width: 100%;
        padding: 0 3px;
    }
    
    .flower {
        padding: 5px 3px;
    }
    
    
    /* ===== АДАПТИВНЫЕ СТИЛИ ДЛЯ ГЛАВНОЙ СТРАНИЦЫ (home.html) ===== */

/* ===== ПЛАНШЕТЫ (до 1024px) ===== */
@media (max-width: 1024px) {

    /* Коллекции (section4) */
    .container55 {
        width: 90%;
    }

    .gallery-item55 {
        min-width: 22%;
    }

    /* Новинки (section5) */
    .container69 {
        width: 90%;
    }

    .gallery-item3 {
        width: 30%;
        margin: 1.5%;
    }

    /* Баннер (section6) */
    .image1-container {
        width: 90%;
    }

    /* Техники покрытия (section7) */
    .container22 {
        max-width: 90%;
    }

    .gallery-item1 {
        width: 18%;
    }

    .gallery-item1 .description,
    .gallery-item1 .description1 {
        font-size: 12px;
    }
}

/* ===== БОЛЬШИЕ ТЕЛЕФОНЫ (до 768px) ===== */
@media (max-width: 768px) {

    /* Коллекции (section4) */
    .container55 {
        width: 95%;
    }

    .gallery-item55 {
        min-width: 28%;
    }

    .arrow {
        padding: 10px;
    }

    .arrow-left {
        left: 5px;
    }

    .arrow-right {
        right: 5px;
    }

    /* Новинки (section5) */
    .section5 h1.highlight {
        font-size: 18px;
    }

    .container69 {
        width: 95%;
    }

    .gallery-item3 {
        width: 45%;
        margin: 2%;
    }

    .gallery-item3 .title {
        font-size: 14px;
    }

    .gallery-item3 .description {
        font-size: 12px;
    }

    /* Баннер (section6) */
    .image1-container {
        width: 95%;
    }

    /* Техники покрытия (section7) */
    .section7 h4.highlight {
        font-size: 16px;
    }

    .container22 {
        max-width: 95%;
        justify-content: center;
        gap: 10px;
    }

    .gallery-item1 {
        width: 28%;
        margin: 5px;
    }

    .gallery-item1 .description,
    .gallery-item1 .description1 {
        font-size: 11px;
    }
}

/* ===== МАЛЕНЬКИЕ ТЕЛЕФОНЫ (до 480px) ===== */
@media (max-width: 480px) {

    /* Коллекции (section4) */
    .container55 {
        width: 100%;
        padding: 0 5px;
        box-sizing: border-box;
    }

    .gallery-item55 {
        min-width: 40%;
    }

    .arrow {
        padding: 8px;
        font-size: 14px;
    }

    .arrow-left {
        left: 2px;
    }

    .arrow-right {
        right: 2px;
    }

    /* Новинки (section5) */
    .section5 h1.highlight {
        font-size: 16px;
    }

    .container69 {
        width: 100%;
        padding: 0 5px;
        box-sizing: border-box;
    }

    .gallery-item3 {
        width: 46%;
        margin: 2%;
    }

    .gallery-item3 .title {
        font-size: 12px;
    }

    .gallery-item3 .description {
        font-size: 10px;
    }

    .gallery-item3 .description1 {
        font-size: 10px;
    }

    /* Баннер (section6) */
    .image1-container {
        width: 100%;
        padding: 0 5px;
        box-sizing: border-box;
    }

    /* Техники покрытия (section7) */
    .section7 h4.highlight {
        font-size: 14px;
        text-align: center;
        padding: 0 10px;
    }

    .container22 {
        max-width: 100%;
        padding: 0 5px;
        box-sizing: border-box;
        justify-content: center;
        gap: 8px;
    }

    .gallery-item1 {
        width: 30%;
        margin: 3px;
    }

    .gallery-item1 .description {
        font-size: 9px;
    }

    .gallery-item1 .description1 {
        font-size: 9px;
    }

    .gallery-image {
        border-radius: 50%;
    }
}

/* ===== ОЧЕНЬ МАЛЕНЬКИЕ ЭКРАНЫ (до 360px) ===== */
@media (max-width: 360px) {

    /* Коллекции (section4) */
    .container55 {
        width: 100%;
        padding: 0 3px;
    }

    .gallery-item55 {
        min-width: 45%;
    }

    .arrow {
        padding: 6px;
        font-size: 12px;
    }

    /* Новинки (section5) */
    .section5 h1.highlight {
        font-size: 14px;
    }

    .container69 {
        width: 100%;
        padding: 0 3px;
    }

    .gallery-item3 {
        width: 47%;
        margin: 1.5%;
    }

    .gallery-item3 .title {
        font-size: 11px;
    }

    .gallery-item3 .description,
    .gallery-item3 .description1 {
        font-size: 9px;
    }

    /* Баннер (section6) */
    .image1-container {
        width: 100%;
        padding: 0 3px;
    }

    /* Техники покрытия (section7) */
    .section7 h4.highlight {
        font-size: 12px;
        line-height: 1.4;
    }

    .container22 {
        max-width: 100%;
        padding: 0 3px;
        gap: 5px;
    }

    .gallery-item1 {
        width: 31%;
        margin: 2px;
    }

    .gallery-item1 .description,
    .gallery-item1 .description1 {
        font-size: 8px;
        line-height: 1.3;
    }
}