/* ============================================
   style.css - ОСНОВНИ СТИЛОВЕ (ДЕСКТОП)
   ============================================ */

/* --------------------------------------------
   0. RESET И БАЗОВИ СТИЛОВЕ
-------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    overflow-x: hidden;
}

/* --------------------------------------------
   1. ХЕДЪР И БАНЕР
-------------------------------------------- */
.site-header {
    width: 100%;
}

/* БАНЕР С ЛОГО И СЛАЙДЕР */
.banner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    background: #295236 !important;
    padding: 20px 40px;
    width: 100%;
    min-height: 200px;
    gap: 30px;
    flex-wrap: wrap;
}

.banner .logo {
    width: 150px;
    height: auto;
    display: block;
    flex-shrink: 0;
}

/* Слайдер контейнер */
.slider-container {
    flex: 1;
    min-width: 300px;
    max-width: 800px;
    height: 180px;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* --------------------------------------------
   2. НАВИГАЦИЯ
-------------------------------------------- */
.navbar {
    background: linear-gradient(180deg, #6ab0fe 0%, #1e4b7a 100%);
    padding: 0 20px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    height: 80px;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    justify-content: center;
}

.menu > li {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.menu > li > a {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 25px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 25px;
    transition: background-color 0.3s;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

.menu > li > a:hover {
    background: linear-gradient(180deg, #66cccc 0%, #008080 100%);
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Подменю (второ ниво) - ЕФЕКТ ЗАВЕСА */
.submenu {
    list-style: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: linear-gradient(180deg, #4a90e2 0%, #1e3a5f 100%);
    min-width: 220px;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: max-height 0.5s ease-in-out, opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

.menu > li:hover > .submenu {
    max-height: 300px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.submenu li {
    position: relative;
}

.submenu li a {
    display: block;
    padding: 12px 20px;
    color: white;
    text-decoration: none;
    font-size: 20px;
    transition: background-color 0.3s;
    white-space: nowrap;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.submenu li a:hover {
    background: linear-gradient(180deg, #66cccc 0%, #008080 100%);
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Трето ниво подменю */
.submenu-depth2 {
    list-style: none;
    position: absolute;
    top: 0;
    left: 100%;
    background: linear-gradient(180deg, #3a7bd5 0%, #1a2f4a 100%);
    min-width: 200px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: max-height 0.4s ease-in-out, opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    border-radius: 0 8px 8px 8px;
    z-index: 1001;
}

.submenu li:hover > .submenu-depth2 {
    max-height: 200px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0.1s;
}

.submenu-depth2 li a {
    padding: 12px 18px;
    text-align: left;
    font-size: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Индикатор за стрелка надолу (ДЕСКТОП) */
.has-submenu > a::after {
    content: " ▼";
    font-size: 0.8em;
    margin-left: 5px;
    opacity: 0.8;
    display: inline-block;
    transition: transform 0.3s ease;
}

.has-submenu:hover > a::after {
    transform: rotate(180deg);
}

/* Индикатор за стрелка надясно (ДЕСКТОП) */
.has-submenu-depth2 > a::after {
    content: " ▶";
    font-size: 0.8em;
    margin-left: 8px;
    opacity: 0.8;
    display: inline-block;
    transition: transform 0.3s ease;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.has-submenu-depth2:hover > a::after {
    transform: translateY(-50%) rotate(90deg);
}

/* --------------------------------------------
   3. ОСНОВНО СЪДЪРЖАНИЕ
-------------------------------------------- */
.content {
    padding: 40px 20px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 60vh;
}

.content h1 {
    color: #1e4b7a;
    margin-bottom: 20px;
}

.content p {
    color: #555;
    line-height: 1.6;
}

/* --------------------------------------------
   4. КОНТАКТНА ФОРМА
-------------------------------------------- */
#contacts-form-container {
    width: 100%;
}

.contacts-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.contacts-container h1 {
    color: #1e3c2c;
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
}

.contacts-wrapper {
    display: flex;
    gap: 40px;
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-info {
    flex: 1;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
}

.contact-info h2 {
    color: #1e3c2c;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.info-item {
    margin-bottom: 25px;
}

.info-item strong {
    display: block;
    color: #2e5c3a;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.info-item p {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.5;
}

.contact-form-page {
    flex: 1;
    padding: 20px;
}

.contact-form-page h2 {
    color: #1e3c2c;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2e5c3a;
}

.submit-btn {
    background: linear-gradient(135deg, #1e3c2c, #2e5c3a);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    width: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 60, 44, 0.3);
}

.submit-btn i {
    margin-right: 10px;
}

/* --------------------------------------------
   5. ФУТЪР
-------------------------------------------- */
.site-footer {
    background: linear-gradient(180deg, #1e4b7a 0%, #0a1e30 100%);
    color: white;
    padding: 50px 0 20px;
    margin-top: 60px;
    box-shadow: 0 -8px 15px -5px rgba(0, 0, 0, 0.3);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* Секции във футъра */
.footer-section h3 {
    font-size: 22px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: #66cccc;
}

.footer-section p {
    color: #ccc;
    line-height: 1.8;
    font-size: 15px;
}

/* Връзки във футъра */
.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s, padding-left 0.3s;
    display: inline-block;
}

.footer-section ul li a:hover {
    color: #66cccc;
    padding-left: 8px;
}

/* Контактна информация във футъра */
.footer-section .contact-info-footer p {
    color: #ccc;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.footer-section .contact-info-footer i {
    color: #66cccc;
    margin-right: 10px;
    width: 20px;
    display: inline-block;
}

/* Социални икони */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: background 0.3s, transform 0.3s;
}

.social-links a:hover {
    background: #66cccc;
    transform: translateY(-3px);
}

/* Бюлетин форма */
.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form input:focus {
    outline: none;
    border-color: #66cccc;
    background: rgba(255, 255, 255, 0.15);
}

.newsletter-form button {
    background: #66cccc;
    color: #1e4b7a;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    white-space: nowrap;
}

.newsletter-form button:hover {
    background: #7ed9d9;
    transform: translateY(-2px);
}

/* Долна част на футъра */
.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px 0;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #aaa;
    font-size: 14px;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0px;
}

.copyright {
    white-space: nowrap;
}

.footer-bottom-links a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
    white-space: nowrap;
    margin: 0 3px;
    font-size: 13px;
}

.footer-bottom-links a i {
    margin-right: 2px;
    font-size: 11px;
}

.footer-bottom-links a:hover {
    color: #66cccc;
}

.separator {
    color: #444;
    margin: 0 2px;
    font-size: 12px;
}

/* --------------------------------------------
   6. СТАЦИОНАРНА ЗАНИМАЛНЯ - ДОПЪЛНИТЕЛНИ СТИЛОВЕ
-------------------------------------------- */
#stationary-content {
    width: 100%;
}

#stationary-content ul {
    list-style: none;
}

/* --------------------------------------------
   7. АНИМАЦИИ
-------------------------------------------- */
@keyframes slideFromCenterToLeft {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* --------------------------------------------
   8. УТИЛИТИ
-------------------------------------------- */
.text-center {
    text-align: center;
}

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

/* Хамбургер менюто да се скрива на десктоп */
.hamburger-btn,
.menu-overlay {
    display: none !important;
}

/* --------------------------------------------
   МОБИЛНО МЕНЮ - ХАМБУРГЕР ВЕРСИЯ
-------------------------------------------- */
@media screen and (max-width: 768px) {
    
    /* ХАМБУРГЕР БУТОН */
    .hamburger-btn {
    display: block !important;
    position: fixed !important;           /* Променено от absolute на fixed */
    bottom: 250px !important;               /* Разстояние от долния ръб на екрана */
    left: 20px !important;                 /* Разстояние от левия ръб на екрана */
    width: 44px !important;
    height: 44px !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: 28px !important;
    line-height: 40px !important;
    text-align: center !important;
    font-weight: bold !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3) !important;
    }
    
    .hamburger-btn:hover {
        background: rgba(255,255,255,0.3) !important;
    }
    
    /* Навигация - скрита по подразбиране */
    .navbar {
    position: fixed !important;
    top: 0 !important;
    right: -100% !important;
    width: 280px !important;
    height: auto !important;              /* Променено от 100vh */
    max-height: 90vh !important;          /* Добавено - максимум 90% от екрана */
    background: linear-gradient(180deg, #1e4b7a 0%, #0a2e4a 100%) !important;
    padding: 60px 0 0 !important;         /* Променено от 20px на 0 */
    transition: right 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 0 0 20px !important; /* Добавено - заобляне долу вдясно */
}
    
    /* Навигация - отворена */
    .navbar.active {
        right: 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,
    .menu > li,
    .menu > li > a,
    .submenu,
    .submenu li,
    .submenu li a,
    .submenu-depth2 {
        all: unset !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;
    }
    
    .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;
    }
    
    .menu > li > a:hover {
        background: rgba(255,255,255,0.1) !important;
    }
    
	/* Последният елемент да няма долна граница */
.menu > li:last-child {
    border-bottom: none !important;
}
    
	/* ПОДМЕНЮ - ВТОРО НИВО */
    .submenu {
        display: block !important;
        background: rgba(0,0,0,0.2) !important;
        max-height: 0 !important;
        opacity: 0 !important;
        visibility: hidden !important;
        overflow: hidden !important;
        transition: max-height 0.3s ease !important;
    }
    
    .has-submenu.active > .submenu {
        max-height: 500px !important;
        opacity: 1 !important;
        visibility: visible !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: rgba(255,255,255,0.1) !important;
    }
    
    /* ТРЕТО НИВО */
    .submenu-depth2 {
        display: block !important;
        background: rgba(0,0,0,0.3) !important;
        max-height: 0 !important;
        opacity: 0 !important;
        visibility: hidden !important;
        overflow: hidden !important;
        transition: max-height 0.3s ease !important;
    }
    
    .has-submenu-depth2.active > .submenu-depth2 {
        max-height: 300px !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .submenu-depth2 li a {
        padding: 10px 40px !important;
        font-size: 15px !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;
    }
    
    /* БАНЕР - КОРЕКЦИЯ ЗА ХАМБУРГЕР БУТОНА */
    .banner {
    position: relative !important;
    min-height: 220px !important;  /* Увеличена височина */
    padding-bottom: 60px !important;
}


