/* ========== СТАЦИОНАРНА ЗАНИМАЛНЯ - ПЪЛНА МОБИЛНА ВЕРСИЯ ========== */

/* Основни мобилни стилове (до 768px) */
@media screen and (max-width: 768px) {
    
    /* Основен контейнер */
    #stationary-content > div {
        padding: 0.5rem !important;
        margin: 0 !important;
        border-radius: 30px !important;
    }
    
    #stationary-content [style*="max-width: 1200px"] {
        padding: 1rem 0.8rem !important;
        margin: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Надпис "ЛЯТО 2026" */
    #stationary-content [style*="display: inline-block"][style*="background: #fea49f"] {
        font-size: 0.9rem !important;
        padding: 0.3rem 1rem !important;
        margin-bottom: 1rem !important;
        white-space: normal !important;
        text-align: center !important;
        width: auto !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        line-height: 1.3 !important;
    }
    
    /* Главно заглавие */
    #stationary-content h1 {
        font-size: 2rem !important;
        line-height: 1.2 !important;
        text-shadow: 3px 3px 0 #ffbd87 !important;
        word-break: break-word !important;
        margin: 0.5rem 0 !important;
    }
    
    #stationary-content h1 span {
        font-size: 1.4rem !important;
        display: inline-block !important;
        margin-top: 0.5rem !important;
        margin-left: 0 !important;
        padding: 0.2rem 1rem !important;
        line-height: 1.3 !important;
        white-space: normal !important;
    }
    
    /* Адрес */
    #stationary-content [style*="font-size: 1.5rem"][style*="color: #364d3c"] {
        font-size: 1.1rem !important;
        padding-left: 0 !important;
        text-align: center !important;
        margin-bottom: 1rem !important;
        word-break: break-word !important;
    }
    
    /* Снимки */
    #stationary-content [style*="display: flex"][style*="gap: 20px"][style*="margin: 30px 0"] {
        flex-direction: column !important;
        align-items: center !important;
        gap: 15px !important;
        margin: 20px 0 !important;
    }
    
    #stationary-content [style*="border: 4px solid #ff8c42"] {
        max-width: 100% !important;
        min-width: auto !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    #stationary-content [style*="border: 4px solid #ff8c42"] img {
        height: 200px !important;
        width: 100% !important;
        object-fit: cover !important;
    }
    
    /* Цени и отстъпка */
    #stationary-content [style*="background: #fceeca"] {
        padding: 1.2rem 1rem !important;
        gap: 1rem !important;
        flex-direction: column !important;
        margin: 1rem 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    #stationary-content [style*="background: white"][style*="box-shadow: 0 10px 0 #b17b45"] {
        font-size: 1.3rem !important;
        padding: 0.7rem 1.5rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
        text-align: center !important;
    }
    
    #stationary-content [style*="background: #f7b955"] {
        font-size: 1.1rem !important;
        padding: 0.5rem 1rem !important;
        text-align: center !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Записване и места */
    #stationary-content [style*="background: #fe5f55"] {
        font-size: 1.3rem !important;
        padding: 1rem !important;
        margin: 1rem 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
        border-width: 4px !important;
    }
    
    #stationary-content [style*="background: #fe5f55"] span {
        font-size: 1.3rem !important;
        padding: 0.2rem 1rem !important;
        display: block !important;
        margin-top: 0.5rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Мото секция */
    #stationary-content [style*="background: #adf7b6"] {
        font-size: 1.3rem !important;
        padding: 1rem !important;
        border-radius: 50px !important;
        margin: 1rem 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
        line-height: 1.4 !important;
    }
    
    /* Запази датите */
    #stationary-content [style*="background: #fabfb7"] {
        padding: 1rem !important;
        margin: 1rem 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
        border-width: 4px !important;
    }
    
    #stationary-content [style*="background: #fabfb7"] [style*="font-size: 2.5rem"] {
        font-size: 1.6rem !important;
        line-height: 1.3 !important;
        word-break: break-word !important;
    }
    
    #stationary-content [style*="background: #fabfb7"] [style*="font-size: 2rem"] {
        font-size: 1.3rem !important;
        padding: 0.3rem 1rem !important;
        margin: 0.5rem 0 !important;
        word-break: break-word !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    #stationary-content [style*="background: #fabfb7"] [style*="font-size: 1.8rem"] {
        font-size: 1.2rem !important;
        line-height: 1.4 !important;
        word-break: break-word !important;
    }
    
    /* Възраст и групи */
    #stationary-content [style*="background: #b4e0b0"] {
        font-size: 1.2rem !important;
        padding: 1rem !important;
        margin: 1rem 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
        line-height: 1.4 !important;
    }
    
    #stationary-content [style*="background: #b4e0b0"] span {
        font-size: 1.1rem !important;
        padding: 0.3rem 1rem !important;
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Фокус за 4-6 клас */
    #stationary-content [style*="background: #bbd4f0"] {
        padding: 1.2rem !important;
        margin: 1rem 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    #stationary-content [style*="background: #bbd4f0"] p {
        font-size: 1.1rem !important;
        line-height: 1.4 !important;
        word-break: break-word !important;
    }
    
    #stationary-content [style*="background: #bbd4f0"] ul {
        padding-left: 1rem !important;
        font-size: 1rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    #stationary-content [style*="background: #bbd4f0"] li {
        word-break: break-word !important;
        margin-bottom: 0.5rem !important;
    }
    
    /* ===== КОРЕКЦИЯ ЗА БЛОКА "ПОЧИВКА И СОЦИАЛИЗАЦИЯ" ===== */
    #stationary-content [style*="background: #ffddb0"] {
        padding: 1.5rem 1rem !important;
        border-radius: 40px !important;
        margin: 1rem 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
        hyphens: auto !important;
    }
    
    #stationary-content [style*="background: #ffddb0"] p {
        font-size: 1.1rem !important;
        line-height: 1.5 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
        hyphens: auto !important;
        white-space: normal !important;
    }
    
    #stationary-content [style*="background: #ffddb0"] strong {
        font-size: 1.1rem !important;
        display: inline !important;
        white-space: normal !important;
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
        color: #1e4b7a !important;
    }
    
    /* Учителски екип */
    #stationary-content [style*="grid-template-columns: repeat(auto-fit, minmax(200px, 1fr))"] {
        grid-template-columns: 1fr !important;
        gap: 0.8rem !important;
        padding: 1.2rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    #stationary-content [style*="background: white"][style*="box-shadow: 0 5px 0 #5a9e5a"] {
        font-size: 1.1rem !important;
        padding: 0.6rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
        word-break: break-word !important;
    }
    
    /* Седмични програми */
    #stationary-content [style*="background: #fef7e9"] {
        padding: 1.2rem 1rem !important;
        margin-bottom: 2rem !important;
        box-shadow: 8px 8px 0 #d58e54 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    #stationary-content [style*="background: #fef7e9"] [style*="font-size: 2.3rem"] {
        font-size: 1.5rem !important;
        padding: 0.2rem 1rem !important;
        margin-bottom: 1rem !important;
        white-space: normal !important;
        text-align: center !important;
        width: 100% !important;
        box-sizing: border-box !important;
        line-height: 1.3 !important;
    }
    
    #stationary-content [style*="background: white"][style*="border-left: 20px solid #fecc7f"] {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 1rem !important;
        border-left-width: 10px !important;
        margin-bottom: 1rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    #stationary-content [style*="background: white"][style*="border-left: 20px solid #fecc7f"] span[style*="font-weight: 800"] {
        font-size: 1.3rem !important;
        min-width: auto !important;
        margin-bottom: 0.5rem !important;
        padding-left: 0 !important;
        width: 100% !important;
    }
    
    #stationary-content [style*="background: white"][style*="border-left: 20px solid #fecc7f"] span[style*="font-size: 1.2rem"] {
        font-size: 1rem !important;
        padding-left: 0 !important;
        width: 100% !important;
        line-height: 1.4 !important;
        white-space: normal !important;
    }
    
    /* Таксата включва */
    #stationary-content [style*="font-size: 2.5rem"][style*="background: #fbbb2d"] {
        font-size: 1.6rem !important;
        padding: 0.2rem 1.5rem !important;
        margin: 1.5rem 0 1rem !important;
        width: auto !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        text-align: center !important;
    }
    
    #stationary-content ul[style*="list-style: none"] {
        padding: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    #stationary-content ul[style*="list-style: none"] li {
        font-size: 1rem !important;
        padding: 0.5rem 1rem !important;
        margin-bottom: 0.5rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
        word-break: break-word !important;
        line-height: 1.4 !important;
    }
    
    #stationary-content ul[style*="list-style: none"] li span {
        font-size: 1.3rem !important;
        min-width: 30px !important;
    }
    
    /* Пренос на такса */
    #stationary-content [style*="background: #fbe192"] {
        font-size: 1rem !important;
        padding: 1rem !important;
        margin: 1rem 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
        line-height: 1.4 !important;
    }
    
    #stationary-content [style*="background: #fbe192"] span {
        font-size: 0.9rem !important;
        padding: 0.3rem 1rem !important;
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Списък за занималня */
    #stationary-content [style*="font-size: 2.5rem"][style*="background: #fbbb2d"]:last-of-type {
        font-size: 1.6rem !important;
        padding: 0.2rem 1.5rem !important;
        margin: 1.5rem 0 1rem !important;
        width: auto !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    #stationary-content ul[style*="grid-template-columns: repeat(auto-fit, minmax(220px, 1fr))"] {
        grid-template-columns: 1fr !important;
        padding: 1.2rem !important;
        gap: 0.5rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    #stationary-content ul[style*="grid-template-columns: repeat(auto-fit, minmax(220px, 1fr))"] li {
        font-size: 1rem !important;
        padding: 0.5rem 1rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
        word-break: break-word !important;
    }
    
    /* Контакти */
    #stationary-content [style*="background: #464d38"] {
        font-size: 1.3rem !important;
        padding: 1.2rem !important;
        margin-top: 2rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
        border-width: 4px !important;
    }
    
    #stationary-content [style*="background: #464d38"] span {
        font-size: 0.9rem !important;
        display: block !important;
        margin-top: 0.5rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
        word-break: break-word !important;
    }
    
    #stationary-content [style*="background: #464d38"] strong {
        word-break: break-word !important;
    }
    
    /* Общи корекции за всички текстови елементи */
    #stationary-content p,
    #stationary-content span,
    #stationary-content div,
    #stationary-content li,
    #stationary-content strong {
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
        hyphens: auto !important;
    }
}

/* ========== МНОГО МАЛКИ УСТРОЙСТВА (ДО 480px) ========== */
@media screen and (max-width: 480px) {
    
    #stationary-content h1 {
        font-size: 1.6rem !important;
        text-shadow: 2px 2px 0 #ffbd87 !important;
    }
    
    #stationary-content h1 span {
        font-size: 1.1rem !important;
    }
    
    #stationary-content [style*="background: white"][style*="box-shadow: 0 10px 0 #b17b45"] {
        font-size: 1.1rem !important;
    }
    
    #stationary-content [style*="background: #fef7e9"] [style*="font-size: 2.3rem"] {
        font-size: 1.3rem !important;
    }
    
    #stationary-content [style*="background: white"][style*="border-left: 20px solid #fecc7f"] span[style*="font-weight: 800"] {
        font-size: 1.1rem !important;
    }
    
    #stationary-content [style*="background: white"][style*="border-left: 20px solid #fecc7f"] span[style*="font-size: 1.2rem"] {
        font-size: 0.9rem !important;
    }
    
    /* Специфично за блока "ПОЧИВКА И СОЦИАЛИЗАЦИЯ" на малки екрани */
    #stationary-content [style*="background: #ffddb0"] {
        padding: 1.2rem 0.8rem !important;
        border-radius: 30px !important;
    }
    
    #stationary-content [style*="background: #ffddb0"] p {
        font-size: 1rem !important;
        line-height: 1.4 !important;
    }
    
    #stationary-content [style*="background: #ffddb0"] strong {
        font-size: 1rem !important;
        display: block !important;
        margin-top: 0.3rem !important;
    }
}

/* ========== ТАБЛЕТИ (769px - 1024px) ========== */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    
    #stationary-content h1 {
        font-size: 2.5rem !important;
    }
    
    #stationary-content [style*="display: flex"][style*="gap: 20px"][style*="margin: 30px 0"] {
        flex-wrap: wrap !important;
        justify-content: center !important;
    }
    
    #stationary-content [style*="border: 4px solid #ff8c42"] {
        min-width: 300px !important;
    }
    
    #stationary-content [style*="grid-template-columns: repeat(auto-fit, minmax(200px, 1fr))"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ========== ЛАНДШАФТ РЕЖИМ ========== */
@media screen and (max-width: 950px) and (orientation: landscape) {
    
    #stationary-content [style*="display: flex"][style*="gap: 20px"][style*="margin: 30px 0"] {
        flex-direction: row !important;
        flex-wrap: wrap !important;
    }
    
    #stationary-content [style*="border: 4px solid #ff8c42"] {
        max-width: 300px !important;
    }
    
    #stationary-content [style*="background: #fceeca"] {
        flex-direction: row !important;
        flex-wrap: wrap !important;
    }
    
    #stationary-content [style*="background: white"][style*="box-shadow: 0 10px 0 #b17b45"] {
        width: auto !important;
        flex: 1 1 auto !important;
    }
    
    #stationary-content [style*="grid-template-columns: repeat(auto-fit, minmax(200px, 1fr))"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    /* Блокът "ПОЧИВКА И СОЦИАЛИЗАЦИЯ" в ландшафт */
    #stationary-content [style*="background: #ffddb0"] {
        padding: 1rem !important;
    }
    
    #stationary-content [style*="background: #ffddb0"] p {
        font-size: 0.95rem !important;
    }
}