/* ============================================
   responsive.css - САМО ЗА МОБИЛНИ УСТРОЙСТВА
   ============================================ */
/* ============================================
   СПЕЦИАЛНО ЗА МНОГО ГОЛЕМИ ТЕЛЕФОНИ В ЛАНДШАФТ
   ============================================ */
@media screen and (orientation: landscape) and (min-width: 1025px) and (max-height: 800px) {
    /* Това засича всички телефони в ландшафт, независимо от ширината */
    
    .navbar {
        position: fixed !important;
        top: 0 !important;
        left: -100% !important;
        width: 320px !important;
        height: auto !important;
        max-height: 90vh !important;
        background: linear-gradient(180deg, #1e4b7a 0%, #0a2e4a 100%) !important;
        transition: left 0.3s ease !important;
        z-index: 1000 !important;
        overflow-y: auto !important;
        border-radius: 0 20px 20px 0 !important;
        display: block !important;
    }
    
    .navbar.active {
        left: 0 !important;
    }
    
    .menu {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
    }
    
    .menu > li {
        width: 100% !important;
        border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    }
    
    .hamburger-btn {
        display: block !important;
    }
    
    .menu-overlay {
        display: none !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background: rgba(0,0,0,0.5) !important;
        z-index: 999 !important;
    }
    
    .menu-overlay.active {
        display: block !important;
    }
    
    .has-submenu > a::after {
        content: " +" !important;
    }
    
    .has-submenu.active > a::after {
        content: " -" !important;
    }
}


/* --------------------------------------------
   1. МОБИЛНА БАЗА (до 1024px) - ВСИЧКИ ТЕЛЕФОНИ
-------------------------------------------- */
@media screen and (max-width: 1024px), screen and (orientation: landscape) and (max-height: 800px) {

    /* ===== ХЕДЪР И БАНЕР ===== */
    .banner {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        padding: 40px 10px 20px 10px !important;
        gap: 5px !important;
        min-height: auto !important;
        background: #295236 !important;
        width: 100% !important;
        margin: 0 !important;
        position: relative !important;
    }

    .banner .logo {
        width: 130px !important;
        height: auto !important;
        min-width: 130px !important;
        max-width: 130px !important;
        min-height: 130px !important;
        max-height: 130px !important;
        margin: 0 auto 0px auto !important;
        display: block !important;
        object-fit: contain !important;
        position: relative !important;
        left: auto !important;
        transform: none !important;
        top: 0 !important;
    }

    /* Лента под банера */
    .banner-extension {
        display: block !important;
        width: 100% !important;
        height: 60px !important;
        background: #295236 !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 0 !important;
        font-size: 0 !important;
        position: relative !important;
        top: -1px !important;
        z-index: 10 !important;
    }

    /* ХАМБУРГЕР БУТОН – в лентата */
    .hamburger-btn {
        display: block !important;
        position: absolute !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 200px !important;
        height: 40px !important;
        background: #5A9BE6 !important;
        border: 2px solid white !important;
        border-radius: 8px !important;
        cursor: pointer !important;
        z-index: 1001 !important;
        color: white !important;
        font-size: 24px !important;
        line-height: 36px !important;
        text-align: center !important;
        font-weight: bold !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.3) !important;
        bottom: auto !important;
        right: auto !important;
    }

    /* Слайдер контейнер */
    .slider-container {
        width: 95% !important;
        height: 200px !important;
        min-width: 0 !important;
        max-width: 100% !important;
        margin: 0 auto 0 auto !important;
        border-radius: 10px !important;
        float: none !important;
        position: relative !important;
        order: 2 !important;
        flex: 0 0 auto !important;
        align-self: center !important;
    }

    .slide-content {
        padding: 8px;
    }

    .slide-content h3 {
        font-size: 14px;
        margin-bottom: 3px;
    }

    .slide-content p {
        font-size: 11px;
    }

    .slider-arrow {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .slider-dots {
        bottom: 3px;
    }

    .slider-dots .dot {
        width: 8px;
        height: 8px;
        margin: 0 3px;
    }

    /* ===== НАВИГАЦИЯ ===== */
    .navbar {
        position: fixed !important;
        top: 0 !important;
        left: -100% !important;
        width: 280px !important;
        height: auto !important;
        max-height: 90vh !important;
        background: linear-gradient(180deg, #1e4b7a 0%, #0a2e4a 100%) !important;
        padding: 0 !important;
        transition: left 0.3s ease !important;
        z-index: 1000 !important;
        overflow-y: auto !important;
        box-shadow: -5px 0 20px rgba(0,0,0,0.3) !important;
        border-radius: 0 20px 20px 0 !important;
        margin: 10px 0 !important;
    }

    .navbar.active {
        left: 0 !important;
    }

    .menu-overlay {
        display: none !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background: rgba(0,0,0,0.5) !important;
        z-index: 999 !important;
    }

    .menu-overlay.active {
        display: block !important;
    }

    /* МЕНЮ */
    .menu {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
    }

    .menu > li {
        width: 100% !important;
        border-bottom: 1px solid rgba(255,255,255,0.1) !important;
        margin: 0 !important;
        background: transparent !important;
    }

    /* Първи елемент - начало */
    .menu > li:first-child {
        border-top: none !important;
    }

    .menu > li:first-child > a {
        border-radius: 20px 0 0 0 !important;
    }

    /* Последен елемент */
    .menu > li:last-child {
        border-bottom: none !important;
    }

    .menu > li:last-child > a {
        border-radius: 0 0 0 20px !important;
    }

    .menu > li > a {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        height: 50px !important;
        padding: 0 20px !important;
        font-size: 18px !important;
        color: white !important;
        text-decoration: none !important;
        background: transparent !important;
        cursor: pointer !important;
    }

    /* ===== ЦВЕТОВЕ ЗА МОБИЛНАТА НАВИГАЦИЯ (като десктоп) ===== */
    
    /* Цвят при hover върху менюто */
    .menu > li > a:hover,
    .submenu li a:hover {
        background: linear-gradient(180deg, #66cccc 0%, #008080 100%) !important;
        color: #ffffff !important;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5) !important;
    }
    
    /* Цвят за активен елемент */
    .menu > li > a:active,
    .submenu li a:active,
    .has-submenu.active > a {
        background: linear-gradient(180deg, #66cccc 0%, #008080 100%) !important;
    }
    
    /* Цвят за подменютата - като десктоп */
    .submenu {
        background: linear-gradient(180deg, #4a90e2 0%, #1e3a5f 100%) !important;
    }
    
    .submenu-depth2 {
        background: linear-gradient(180deg, #3a7bd5 0%, #1a2f4a 100%) !important;
    }
    
    /* Цвят за хамбургер бутона при hover/active */
    .hamburger-btn:hover,
    .hamburger-btn:active {
        background: linear-gradient(180deg, #66cccc 0%, #008080 100%) !important;
        border-color: #66cccc !important;
    }

    /* ПОДМЕНЮ - ВТОРО НИВО */
    .submenu {
        display: none !important;
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .has-submenu.active > .submenu {
        display: block !important;
    }

    .submenu li {
        width: 100% !important;
    }

    .submenu li a {
        display: block !important;
        padding: 12px 30px !important;
        font-size: 16px !important;
        color: white !important;
        text-decoration: none !important;
        border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    }

    .submenu li a:hover {
        background: linear-gradient(180deg, #66cccc 0%, #008080 100%) !important;
    }

    .submenu li:last-child a {
        border-bottom: none !important;
    }

    /* ТРЕТО НИВО */
    .submenu-depth2 {
        display: none !important;
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .has-submenu-depth2.active > .submenu-depth2 {
        display: block !important;
    }

    .submenu-depth2 li a {
        padding: 10px 40px !important;
        font-size: 15px !important;
        border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    }

    .submenu-depth2 li a:hover {
        background: linear-gradient(180deg, #66cccc 0%, #008080 100%) !important;
    }

    .submenu-depth2 li:last-child a {
        border-bottom: none !important;
    }

    /* + и - индикатори */
    .has-submenu > a::after {
        content: " +" !important;
        display: inline-block !important;
        font-size: 24px !important;
        font-weight: bold !important;
        color: white !important;
    }

    .has-submenu.active > a::after {
        content: " -" !important;
    }

    .has-submenu-depth2 > a::after {
        content: " +" !important;
        display: inline-block !important;
        font-size: 22px !important;
        font-weight: bold !important;
        color: white !important;
    }

    .has-submenu-depth2.active > a::after {
        content: " -" !important;
    }

    /* ===== ОСНОВНО СЪДЪРЖАНИЕ ===== */
    .content {
        padding: 20px 10px;
    }

    #page-content > div {
        padding: 1rem !important;
    }

    #page-content h2 {
        font-size: 1.8rem !important;
    }

    /* ===== СТАЦИОНАРНА ЗАНИМАЛНЯ ===== */
    #stationary-content > div {
        padding: 0.5rem !important;
    }

    #stationary-content h1 {
        font-size: 2rem !important;
        text-shadow: 3px 3px 0 #ffbd87 !important;
    }

    #stationary-content h1 span {
        font-size: 1.2rem !important;
        display: block !important;
        margin: 10px 0 !important;
    }

    /* ===== КОНТАКТНА ФОРМА ===== */
    #contacts-form-container .contacts-container h1 {
        font-size: 2rem !important;
    }

    .contacts-wrapper {
        flex-direction: column !important;
        gap: 20px !important;
        padding: 20px !important;
    }

    .contact-info, 
    .contact-form-page {
        width: 100% !important;
        padding: 15px !important;
    }

    .contact-info h2,
    .contact-form-page h2 {
        font-size: 1.5rem !important;
    }

    .form-group input,
    .form-group textarea {
        font-size: 16px !important;
        padding: 10px !important;
    }

    .submit-btn {
        width: 100%;
        padding: 12px !important;
    }

    /* ===== ФУТЪР ===== */
    .footer-container {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        text-align: center;
        padding: 0 15px;
    }

    .footer-section h3::after {
        left: 50% !important;
        transform: translateX(-50%);
    }

    .footer-section .contact-info-footer p {
        justify-content: center;
    }

    .footer-section .contact-info-footer i {
        width: auto;
        margin-right: 8px;
    }

    .social-links {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column !important;
        text-align: center !important;
        padding: 15px !important;
        gap: 10px;
    }

    .footer-bottom-links {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 5px !important;
    }

    .copyright {
        white-space: normal !important;
    }

    /* ===== ДОПЪЛНИТЕЛНИ КОРЕКЦИИ ===== */
    .newsletter-form {
        flex-direction: column;
        gap: 10px;
    }

    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
        padding: 12px;
        font-size: 16px;
    }

    body, html {
        overflow-x: hidden;
    }

    button, 
    a, 
    .menu > li > a,
    .submenu li a {
        touch-action: manipulation;
    }

    /* ===== ЛАНДШАФТ РЕЖИМ - КОРЕКЦИИ ЗА ВСИЧКИ ТЕЛЕФОНИ ===== */
    @media screen and (orientation: landscape) {
        
        /* По-голяма височина на лентата */
        .banner-extension {
            height: 80px !important;
            min-height: 80px !important;
            max-height: 80px !important;
        }
        
        /* По-голям хамбургер бутон за по-лесен клик */
        .hamburger-btn {
            width: 240px !important;
            height: 45px !important;
            font-size: 26px !important;
            line-height: 41px !important;
        }
        
        /* По-малък слайдер */
        .slider-container {
            height: 150px !important;
        }
        
        /* По-малко лого */
        .banner .logo {
            width: 100px !important;
            min-width: 100px !important;
            max-width: 100px !important;
            min-height: 100px !important;
            max-height: 100px !important;
        }
        
        /* Навигационният панел да заема по-малко от височината */
        .navbar {
            max-height: 80vh !important;
        }
    }

} /* КРАЙ НА @media (max-width: 1024px) */

/* --------------------------------------------
   2. МНОГО МАЛКИ ТЕЛЕФОНИ (до 480px)
-------------------------------------------- */
@media screen and (max-width: 480px) {
    
    .content h2 {
        font-size: 1.5rem !important;
    }
    
    #stationary-content h1 {
        font-size: 1.6rem !important;
    }
    
    #stationary-content h1 span {
        font-size: 1rem !important;
    }
    
    .banner .logo {
        width: 100px !important;
        min-width: 100px !important;
        max-width: 100px !important;
        min-height: 100px !important;
        max-height: 100px !important;
    }
    
    .slider-container {
        height: 150px !important;
    }
    
    .hamburger-btn {
        width: 160px !important;
        height: 35px !important;
        font-size: 20px !important;
        line-height: 31px !important;
    }
}

/* --------------------------------------------
   4. КОРЕКЦИИ ЗА СТАЦИОНАРНА ЗАНИМАЛНЯ - МОБИЛНА ВЕРСИЯ
-------------------------------------------- */

/* Основни корекции за мобилни устройства */
@media screen and (max-width: 768px) {
    
    #stationary-content > div {
        padding: 0.8rem !important;
    }
    
    #stationary-content h1 {
        font-size: 2rem !important;
        text-shadow: 3px 3px 0 #ffbd87 !important;
        line-height: 1.2 !important;
        word-break: break-word !important;
    }
    
    #stationary-content h1 span {
        font-size: 1.2rem !important;
        display: inline-block !important;
        margin: 10px 0 !important;
        white-space: normal !important;
    }
    
    /* Корекции за седмичните програми */
    #stationary-content [class*="седмиц"],
    #stationary-content div[style*="background: #fef7e9"] {
        padding: 1rem 0.8rem !important;
        border-radius: 40px 40px 20px 20px !important;
        margin-bottom: 1.5rem !important;
    }
    
    #stationary-content [style*="font-size: 2.3rem"] {
        font-size: 1.8rem !important;
        padding: 0.2rem 1rem !important;
        white-space: normal !important;
        word-break: break-word !important;
        line-height: 1.3 !important;
        margin-bottom: 1rem !important;
    }
    
    /* Корекции за дните от седмицата */
    #stationary-content [style*="background: white"][style*="border-radius: 60px"] {
        padding: 0.8rem !important;
        border-left-width: 10px !important;
        flex-wrap: wrap !important;
    }
    
    #stationary-content [style*="font-weight: 800"][style*="font-size: 2rem"] {
        font-size: 1.5rem !important;
        min-width: 100% !important;
        margin-bottom: 0.5rem !important;
    }
    
    #stationary-content [style*="flex:1"][style*="font-size:1.2rem"] {
        font-size: 1rem !important;
        padding-left: 0 !important;
        line-height: 1.4 !important;
        word-break: break-word !important;
    }
    
    /* Корекции за списъците */
    #stationary-content ul[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        padding: 1rem !important;
    }
    
    #stationary-content ul[style*="background: #b1dfb1"] li {
        font-size: 0.95rem !important;
        padding: 0.5rem 1rem !important;
        white-space: normal !important;
        word-break: break-word !important;
    }
    
    /* Корекции за включените такси */
    #stationary-content ul[style*="list-style: none"] li {
        font-size: 1rem !important;
        padding: 0.4rem 0.8rem !important;
        flex-wrap: wrap !important;
    }
    
    #stationary-content ul[style*="list-style: none"] li span {
        font-size: 1.2rem !important;
        min-width: 30px !important;
    }
    
    /* Корекции за контактите */
    #stationary-content [style*="background: #464d38"] {
        padding: 1rem !important;
        font-size: 1.2rem !important;
        word-break: break-word !important;
    }
    
    #stationary-content [style*="background: #464d38"] span {
        font-size: 1rem !important;
        white-space: normal !important;
    }
    
    /* Корекции за ценовия блок */
    #stationary-content [style*="display: flex"][style*="gap: 1.5rem"][style*="background: #fceeca"] {
        flex-direction: column !important;
        gap: 1rem !important;
        padding: 1rem !important;
    }
    
    #stationary-content [style*="background: white"][style*="border-radius: 30px"] {
        width: 100% !important;
        font-size: 1.3rem !important;
        padding: 0.5rem 1rem !important;
    }
    
    /* Корекции за снимките */
    #stationary-content [style*="display: flex"][style*="gap: 20px"][style*="margin: 30px 0"] {
        flex-direction: column !important;
        align-items: center !important;
    }
    
    #stationary-content [style*="border: 4px solid #ff8c42"] {
        max-width: 100% !important;
        width: 100% !important;
    }
    
    #stationary-content [style*="border: 4px solid #ff8c42"] img {
        height: 200px !important;
    }
    
    /* Корекции за големите надписи */
    #stationary-content [style*="font-size: 2.5rem"] {
        font-size: 1.8rem !important;
        padding: 0.2rem 1rem !important;
        white-space: normal !important;
        word-break: break-word !important;
        line-height: 1.3 !important;
    }
    
    #stationary-content [style*="font-size: 2rem"]:not([style*="font-size: 2rem"]) {
        font-size: 1.5rem !important;
    }
    
    /* Корекции за записване и места */
    #stationary-content [style*="background: #fe5f55"] {
        font-size: 1.3rem !important;
        padding: 1rem !important;
    }
    
    #stationary-content [style*="background: #fe5f55"] span {
        font-size: 1.2rem !important;
        padding: 0.2rem 1rem !important;
        white-space: normal !important;
    }
    
    /* Корекции за всички текстове */
    #stationary-content p, 
    #stationary-content li, 
    #stationary-content div {
        max-width: 100% !important;
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
        hyphens: auto !important;
    }
}

/* --------------------------------------------
   5. КОРЕКЦИИ ЗА МНОГО МАЛКИ ТЕЛЕФОНИ (до 480px)
-------------------------------------------- */
@media screen and (max-width: 480px) {
    
    #stationary-content h1 {
        font-size: 1.6rem !important;
    }
    
    #stationary-content h1 span {
        font-size: 1rem !important;
    }
    
    #stationary-content [style*="font-size: 2.3rem"] {
        font-size: 1.5rem !important;
    }
    
    #stationary-content [style*="font-size: 2.5rem"] {
        font-size: 1.5rem !important;
    }
    
    #stationary-content [style*="font-weight: 800"][style*="font-size: 2rem"] {
        font-size: 1.3rem !important;
    }
    
    #stationary-content [style*="flex:1"][style*="font-size:1.2rem"] {
        font-size: 0.9rem !important;
    }
    
    #stationary-content [style*="background: #fe5f55"] {
        font-size: 1.1rem !important;
    }
    
    #stationary-content [style*="background: #fe5f55"] span {
        font-size: 1rem !important;
    }
}

/* ФИНАЛНО РЕШЕНИЕ ЗА SAMSUNG A05s */
@media screen and (orientation: landscape) and (max-height: 1200px) {
    
    .navbar.active {
        max-height: none !important;
        height: auto !important;
        overflow-y: visible !important;
    }
    
    .navbar.active .menu {
        max-height: none !important;
        height: auto !important;
    }
    
    /* Добави скрол ако е необходимо */
    .navbar.active {
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
}