/* =========================================
   ХЕДЕР
   Горна фиксирана лента на сайта.
========================================= */
header {
    background-image: url("../images/index1/header-banner.png"); /* Фоново изображение на хедъра (в твоя случай декоративно). */
    background-size: cover; /* Изображението запълва целия header. Ако липсва, може да не покрие целия фон. */
    background-position: center; /* Центрира изображението. Без него ще започва от горе вляво. */
    display: flex; /* Подрежда вътрешните елементи (лого, меню) на един ред. */
    align-items: center; /* Центрира елементите вертикално. */
    height: 90px; /* Височина на хедъра. */
    padding: 0 6%; /* Отстояние отляво и отдясно. */
    position: fixed; /* Закрепва хедъра към екрана. */
    top: 0; /* Поставя го най-горе. */
    left: 0; /* Подравнява го отляво. */
    width: 100%; /* Разтяга го по цялата ширина. */
    box-sizing: border-box; /* Гарантира, че padding не увеличава ширината над 100%. */
    z-index: 2000; /* Поставя хедъра над другите елементи (например падащи менюта или ленти). */
}

/* =========================================
   ИНФОРМАЦИОННА ЛЕНТА
========================================= */
.info-bar {
    overflow: hidden;
    background-image: url("../images/index1/info-bar.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 50px;
    line-height: 50px;
    position: fixed;
    top: 91px;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 1999;
}

/* =========================================
   НАВИГАЦИЯ
========================================= */
.nav {
    display: flex;
    align-items: center;
    flex: 1;
    margin-left: 22px;
}

.nav a {
    font-size: 21px;
    margin-left: 22px;
    color: rgb(15,55,23);
    text-decoration: none;
    font-weight: bold;
}

.nav a:first-child {
    margin-left: 0;
}

.nav a:hover {
    color: red;
}

.nav-right {
    margin-left: auto;
}

/* =========================================
   ПАДАЩИ МЕНЮТА
========================================= */
.dropdown {
    position: relative;
    display: inline-block;
    margin-left: 20px;
}

.dropdown span {
    font-size: 21px;
    font-weight: bold;
    color: rgb(15,55,23);
    cursor: pointer;
    display: inline-block;
}

.dropdown span::after {
    content: " ▼";
    font-size: 14px;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    list-style: none;
    margin: 0;
    padding: 8px 12px;
    min-width: 90px;
    background-color: rgb(115,233,209);
    z-index: 2500;
}

.nature-dropdown .dropdown-content {
    background-color: rgb(231, 244, 99);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content li {
    margin: 6px 0;
}

.dropdown-content li a {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: 0;
    text-decoration: none;
    color: rgb(15,55,23);
    border: 1px solid rgb(15,55,23);
}

.dropdown-content img {
    width: 20px;
    height: auto;
}

/* =========================================
   ДВИЖЕЩ СЕ ТЕКСТ
========================================= */
.move {
    white-space: nowrap;
    color: rgb(15,55,23);
    font-size: 22px;
    font-weight: bold;
    animation: moveText 25s linear infinite;
}

@keyframes moveText {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* =========================================
   HAMBURGER БУТОН
========================================= */
.menu-toggle {
    display: none;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: bold;
    color: rgb(15,55,23);
    cursor: pointer;
    padding: 8px 14px;
    border: 1px solid rgb(15,55,23);
    border-radius: 6px;
    background-color: rgba(255,255,255,0.25);
}

.hamburger {
    font-size: 24px;
    line-height: 1;
}

.menu-toggle-checkbox {
    display: none;
}

/* =========================================
   MEDIA QUERY ЗА ХЕДЕРА
========================================= */
@media (max-width: 1550px) {
    .menu-toggle {
        display: flex;
        margin-left: auto;
        font-size: 20px;
        padding: 10px 16px;
    }

    .hamburger {
        font-size: 26px;
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        right: 6%;
        flex-direction: column;
        align-items: flex-start;
        width: 340px;
        padding: 18px;
        text-align: left;
        background: linear-gradient(to bottom, rgb(248, 251, 225), rgb(228, 248, 244));
        border: 1px solid rgb(15,55,23);
        box-sizing: border-box;
        z-index: 2600;
        max-height: calc(100vh - 140px);
        overflow-y: auto;
    }

    .menu-toggle-checkbox:checked + .menu-toggle + .nav {
        display: flex;
    }

    .nav > a,
    .nav > .dropdown,
    .nav > .nav-right {
        width: 100%;
        margin-left: 0;
        margin-bottom: 10px;
    }

    .nav > a {
        display: block;
        padding: 10px 12px;
        box-sizing: border-box;
    }

    .nav .dropdown {
        position: static;
        width: 100%;
        margin-left: 0;
    }

    .nav .dropdown span {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 10px 12px;
        box-sizing: border-box;
    }

    .nav .dropdown span::after {
        content: "▼";
        font-size: 14px;
        margin-left: 10px;
        line-height: 1;
        flex-shrink: 0;
    }

    .nav .dropdown-content {
        position: static;
        top: auto;
        left: auto;
        width: 100%;
        min-width: 0;
        margin-top: 8px;
        margin-bottom: 8px;
        padding: 0 0 0 14px;
        border: none;
        background: transparent;
        box-sizing: border-box;
    }

    .nav .dropdown-content li {
        margin: 8px 0;
    }

    .nav .dropdown-content li a {
        display: block;
        width: 100%;
        padding: 10px 12px;
        margin-left: 0;
        box-sizing: border-box;
    }

    .nav-right > a {
        display: block;
        width: 100%;
        padding: 10px 12px;
        margin-bottom: 8px;
        box-sizing: border-box;
    }

    .nav-right .dropdown {
        margin-left: 0;
        margin-top: 8px;
    }
}

/* =========================================
   ХЕДЕР – ДО 770px
   Намаляваме размерите, без да сменяме логиката
========================================= */
@media (max-width: 770px) {

    header {
        height: 80px; /* по-нисък хедър */
    }

    .logo {
        width: 160px; /* намаляваме логото */
        height: auto; /* пазим пропорциите */
    }

    .menu-toggle {
        font-size: 17px; /* текстът "Меню" */       
        padding: 6px 10px; /* по-малко вътрешно разстояние → бутонът става по-тесен */
        gap: 6px; /* по-малко разстояние между текст и икона */
    }

    .hamburger {
        font-size: 20px; /* размер на иконата */
    }

    .nav {
        width: 300px; /* по-тясно падащо меню */
        padding: 16px; /* по-компактно вътрешно разстояние */
    }

    .nav a {
        font-size: 17px; /* основните линкове в мобилното меню */
    }

    .dropdown span {
        font-size: 17px; /* заглавията на падащите менюта */
    }

    .nav .dropdown-content li a {
        font-size: 17px; /* линковете вътре в падащите менюта */
        gap: 5px; /* по-малко разстояние между знаме и текст */
    }

    .dropdown-content img {
        width: 18px; /* знамената */
        height: auto; /* пазим пропорциите */
    }

    .move {
        font-size: 20px; /* движещият се текст */
    }

     .move{
        animation: moveText 18s linear infinite;
    }

    .info-bar {
        top: 81px; /* местим лентата под по-ниския хедър */
    }

    body {
        padding-top: 131px; /* 80px хедър + 50px лента + 1px */
    }
}

@media (max-width: 480px){

    header{
        height: 76px;
        padding: 0 4%;
    }

    .logo{
        width: 150px;
        height: auto;
    }

    .menu-toggle{
        font-size: 15px;
        padding: 6px 8px;
        gap: 5px;
    }

    .hamburger{
        font-size: 19px;
    }

    .nav{
        width: 90vw; /* вместо фиксирани px */
        right: 5%;   /* да остане центрирано */
    }


    .info-bar{
        top: 77px;
    }

    .move{
        animation: moveText 12s linear infinite;
    }

    body{
        padding-top: 127px;
    }
}

/* =========================================
   BODY И CONTAINER
========================================= */
body {
    background-color: rgb(242,249,244);
    font-size: 20px;
    color: rgb(15,55,23);
    margin: 0;
    padding-top: 141px;
}

.container {
    width: 88%;
    margin: 0 auto;
    text-align: left;
}

h1{
    font-size: 36px; /* същият размер като h2 на голям екран */
    margin-top: 35;   
    margin-bottom: 24px;
    line-height: 1.2;
}

h2{
    font-size: 32px; /* изравняваме h1 и h2 */
    margin-top: 25;
    margin-bottom: 22px;
    line-height: 1.2;
}

h3{
    font-size: 28px;
    margin-top: 0;
    margin-bottom: 18px;
    line-height: 1.25;
}

p {
    font-size: 20px;
    line-height: 1.5;
    margin-top: 0;
    margin-bottom: 18px;
}

ul {
    list-style-type: disc;
    margin: 0 0 0 25px;
    padding: 0;
}

ul li {
    font-size: 20px;
    line-height: 1.3;
    margin-bottom: 2px;
}

ol {
    margin: 0 0 0 25px;
    padding: 0;
}

ol > li {
    font-size: 20px; /* беше 18px */
    line-height: 1.4;
    margin-bottom: 12px;
}

ol > li > ul {
    margin: 6px 0 0 25px;
    padding: 0;
}

.waterfall-list {
    list-style-type: square;
}
/* =========================================
   MEDIA QUERIES
========================================= */

@media (max-width: 770px){
      body{
        font-size: 18px;
        padding-top: 131px;
    }

    .container{
        width: 92%;
    }

    h1{        
        margin-top: 25px;
        font-size: 30px;
        margin-bottom: 30px;
    }

    h2{
        font-size: 30px;
        margin-bottom: 20px;
    }

    h3{
        font-size: 24px;
        margin-bottom: 16px;
    }

    p{
        font-size: 18px;
        line-height: 1.45;
        margin-bottom: 16px;
    }
}

@media (max-width: 480px){
        body{
        font-size: 16px;
        padding-top: 127px;
    }

    .container{
        width: 94%;
    }

    h1{
        margin-top: 20px;
        font-size: 24px;
        margin-bottom: 18px;
    }

    h2{
        font-size: 24px;
        margin-bottom: 18px;
    }

    h3{
        font-size: 20px;
        margin-bottom: 14px;
    }

    p{
        font-size: 16px;
        line-height: 1.4;
        margin-bottom: 14px;
    }
}

/* =========================================
   FOOTER – ОСНОВЕН КОНТЕЙНЕР
========================================= */
footer{
    background-image: url("../images/index1/footer.png");
    background-size: cover;
    background-position: center;
    width: 100%;
    margin: 0;
    padding: 24px 15px 18px;
    box-sizing: border-box;
    text-align: center;
    color: rgb(15,55,23);
    clear: both;
    display: block;

}

html,
body{
    margin: 0;
    overflow-x: hidden;
}

/* =========================================
   ЛИНКОВЕ САМО ВЪВ FOOTER
========================================= */
footer a{
    color: rgb(15,55,23);
    text-decoration: none;
    transition: 0.2s;
    border: 1px solid transparent;
    padding: 3px 8px;
}

footer a:hover{
    color: red;
}

footer a.active{
    border: 1px solid rgb(15,55,23);
    border-radius: 4px;
}

footer a.active:hover{
    color: red;
}

/* =========================================
   I ГРУПА – КОНТАКТИ
========================================= */
.footer-top{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin-bottom: 26px;
    font-size: 20px;
    line-height: 1.3;
}

.footer-top span{
    white-space: nowrap;
}

/* =========================================
   II ГРУПА – ЛИНКОВЕ
========================================= */
.footer-menu{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px 16px;
    margin: 0 auto 26px;
}

.footer-menu a{
    font-size: 21px;
    font-weight: bold;
    line-height: 1.3;
    white-space: nowrap;
    text-align: center;
    flex: 0 0 auto;
}

/* =========================================
   III ГРУПА – ДОЛНА ЧАСТ
========================================= */
.footer-bottom{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    line-height: 1.3;
}

.footer-bottom p{
    margin: 0;
}

/* =========================================
   ДО 1070px
   Контакти и Блог слизат на втори ред
   и остават центрирани.
========================================= */
@media (max-width: 1070px){

    .footer-top{
        font-size: 18px;
        gap: 8px 20px;
        margin-bottom: 24px;
    }

    .footer-menu{
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px 14px;
        max-width: 820px;
        margin: 0 auto 24px;
    }

    .footer-menu a{
        font-size: 19px;
    }

    .footer-bottom{
        font-size: 18px;
        gap: 8px;
    }
}

/* =========================================
   ДО 670px
   Всичко става вертикално.
========================================= */
@media (max-width: 670px){

    .footer-top{
        flex-direction: column;
        gap: 8px;
        margin-bottom: 22px;
        font-size: 16px;
    }

    .footer-menu{
        flex-direction: column;
        align-items: center;
        gap: 10px;
        max-width: none;
        margin: 0 auto 22px;
    }

    .footer-menu a{
        font-size: 17px;
        padding: 2px 6px;
    }

    .footer-bottom{
        font-size: 15px;
        gap: 8px;
    }
}