/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* BODY */
body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #828181;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* HEADER – фиксиран */
header {
    position: fixed;
    width: 100%;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding-bottom: 40px;
}

/* NAV – центрираме менюто */
nav {
    max-width: 1100px;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    padding: 0;
}

/* LOGO */
.logo {
    position: absolute;
    left: 20px;
    top: 15px;
    font-size: 22px;
    font-weight: bold;
    color: #222;
}

/* СИВИЯТ КОНТЕЙНЕР */
.menu-wrapper {
    background: rgba(0, 0, 0, 0.4); /* същият цвят + 80% прозрачен */
    padding: 25px 218px;
    border-bottom-left-radius: 118px;
    border-bottom-right-radius: 118px;
    display: flex;
    align-items: center;
    height: auto;
    padding-bottom: 0px;
    margin-top: -25px;
}

/* MENU */
.menu {
    list-style: none;
    display: flex;
    gap: 30px;
    position: relative;
}

/* LINKS */
.menu li a {
    text-decoration: none;
    color: #fff;
    position: relative;
    transition: 0.3s;
    white-space: nowrap;
}

/* underline animation */
.menu li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0%;
    height: 2px;
    background: #ffffff;
    transition: 0.3s;
}

.menu li a:hover::after {
    width: 100%;
}

/* ACTIVE */
.menu li.active a {
    color: #ffffff;
}

/* SUBMENU */
.has-submenu {
    position: relative;
    padding-bottom: 45px;
}

.submenu {
    position: absolute;
    top: 55px;
    left: 0;
    background: #888B90;
    list-style: none;
    padding: 10px 0;
    border-radius: 8px;
    display: none;
    flex-direction: column;
    min-width: 240px;
    z-index: 999;
}

.submenu li a {
    color: #fff;
    padding: 10px 20px;
    display: block;
}

.submenu li a:hover {
    background: rgba(255,255,255,0.15);
}

.has-submenu:hover .submenu {
    display: flex;
}

/* HERO – за началната страница */
.hero {
    flex: 1;
    min-height: 50vh;
    display: flex;
    justify-content: center;
    padding-top: 160px;
}

/* OVERLAY */
.overlay {
    background: none;
    backdrop-filter: none;
    padding: 0;
    border-radius: 0;
    min-height: auto;
    transform: none;
    text-align: center;
}

.overlay h1 {
    font-size: 52px;
    margin-bottom: 20px;
    color: #fff;
}

.overlay p {
    font-size: 22px;
    color: #fff;
}

/* ВЪТРЕШНИ СТРАНИЦИ */
.page-content {
    flex: 1;
    padding-top: 160px; /* заради фиксирания header */
}

.content-wrapper {
    max-width: 1100px;
    margin: auto;
    padding: 20px;
    color: #fff;
}

/* FOOTER (ако не е в отделен CSS) */
footer,
.site-footer {
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(6px);
    color: #fff;
    text-align: center;
    padding: 20px 10px;
    margin-top: 40px;
    font-size: 14px;
}

/* HAMBURGER */
.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    padding: 15px 20px;
}

/* RESPONSIVE */
@media (max-width: 768px) {

    .menu-wrapper {
        background: none;
        padding: 0;
        margin: 0;
    }

    .menu-toggle {
        display: block;
    }

    .menu {
        position: absolute;
        top: 60px;
        right: 0;
        background: #888B90;
        width: 100%;
        flex-direction: column;
        align-items: center;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .menu.active {
        max-height: 85vh;
        overflow-y: auto;
    }

    .menu li {
        margin: 6px 0;
    }

    .menu li a {
        font-size: 18px;
        color: #fff;
    }

    .has-submenu {
        padding-bottom: 0 !important;
    }

    .submenu {
        position: static;
        background: #777A80;
        width: 100%;
        display: none;
        padding: 0;
        border-radius: 0;
    }

    .has-submenu.active .submenu {
        display: block;
    }

    .submenu li a {
        padding: 6px 0;
    }

    .overlay h1 {
        font-size: 36px;
    }

    .overlay p {
        font-size: 18px;
    }
}

.responsive-img {
    width: 400px;        /* оригинална ширина по подразбиране */
    max-width: 100%;    /* не излиза извън родителския контейнер / екрана */
    height: auto;       /* запазва пропорциите */
    border-radius: 12px;
    display: inline-block;
}

.responsive-img1 {
    width: 70px;        /* оригинална ширина по подразбиране */
    max-width: 70px;    /* не излиза извън родителския контейнер / екрана */
    height: auto;       /* запазва пропорциите */
 
}