
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: #333;
    line-height: 1.6;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /*padding: 15px 30px;*/
    /*background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);*/
    background: white;
    /*box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);*/
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;

}

.logo img {
    /*margin-left: 60px;*/
    height: 55px;
    margin-right: 12px;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.nav-container {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    margin-right: 30px;
}

.nav-item {
    position: relative;
    margin: 0 12px;
}

.nav-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: black;
    font-weight: 500;
    font-size: 16px;
    padding: 12px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.nav-link i {
    margin-left: 6px;
    font-size: 14px;
    transition: transform 0.3s ease;
}

.nav-item:hover .nav-link i {
    transform: rotate(180deg);
}

/* Выпадающее подменю */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 220px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    border-bottom: 1px solid #f1f1f1;
    transition: all 0.2s ease;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #3498db;
    padding-left: 25px;
}

.dropdown-item i {
    margin-right: 10px;
    color: #3498db;
}

/* Поисковая строка */
.search-container {
    display: flex;
    align-items: center;
    /*background: rgba(255, 255, 255, 0.22);*/
    border-radius: 25px;
    padding: 5px 15px;
    transition: all 0.3s ease;
}

.search-container:focus-within {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}

.search-input {
    /*background: transparent;
    border: black;
    color: black;
    padding: 10px 0;
    width: 200px;
    outline: none;
    font-size: 16px;*/
    border: 1px solid #000;
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 12px 45px 12px 15px;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
    color: black;
}

.search-button {
    background: none;
    border: none;
    color: black;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.2s ease;
}

.search-button:hover {
    transform: scale(1.1);
}

/* Мобильное меню */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.menu-toggle span {
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}



/* Адаптивность */
@media (max-width: 1024px) {
    .nav-links {
        margin-right: 15px;
    }

    .nav-item {
        margin: 0 8px;
    }

    .search-input {
        margin-top: 15px;
        margin-left: -150px;
        width: 150px;
    }
}

@media (max-width: 900px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        flex-direction: column;
        background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
        width: 100%;
        height: calc(100vh - 80px);
        padding: 20px;
        transition: left 0.3s ease;
        overflow-y: auto;

    }

    .nav-links.active {
        left: 0;
    }



    .dropdown {
        position: static;
        width: 100%;
        opacity: 1;
        visibility: visible;
        transform: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.1);
        margin-top: 10px;
        border-radius: 6px;
    }

    .nav-item.active .dropdown {
        max-height: 500px;
    }

    .nav-link i {
        transform: rotate(0deg);
    }

    .nav-item.active .nav-link i {
        transform: rotate(180deg);
    }

    .search-container {
        margin-left: auto;
        margin-right: 20px;
    }


    ul#nav {
        min-height: 48px;
        width: auto;

        /* left align the menu */
        text-align: left;
    }
    ul#nav li {
        position: relative;
        list-style: none;
        height: 48px;
        display: inline-block;
    }

    /* Links */
    ul#nav li a {

        /* 8px padding top + 8px padding bottom + 32px line-height = 48px */

        display: inline-block;
        padding: 8px 11px;
        line-height: 32px;
        text-decoration: none;
        text-align: left;
        color: #8a8383;

        -webkit-transition: color .2s ease-in-out;
        -moz-transition: color .2s ease-in-out;
        -o-transition: color .2s ease-in-out;
        -ms-transition: color .2s ease-in-out;
        transition: color .2s ease-in-out;
    }

    ul#nav li a:active { background-color: transparent !important; }
    ul#nav li:hover > a,
    ul#nav li.current a { color: #fff; }

    /* adds down arrow */
    ul#nav span:after {
        width: 0;
        height: 0px;
        border: 4px solid transparent;
        border-bottom: none;
        border-top-color: #8a8383;
        content: '';
        vertical-align: middle;
        display: inline-block;
        position: relative;
        right: 5px;
    }

    /* Sub Menu
    ----------------------------------------------------- */
    ul#nav ul {
        position: absolute;
        top: 100%;
        left: 0;
        background: #1f2024;
        min-width: 100%;

        border-radius: 0 0 3px 3px;

        /* for transition effects */
        opacity: 0;
        filter: alpha(opacity=0);

        -webkit-transition: opacity .25s ease .1s;
        -moz-transition: opacity .25s ease .1s;
        -o-transition: opacity .25s ease .1s;
        -ms-transition: opacity .25s ease .1s;
        transition: opacity .25s ease .1s;
    }

    /* Third level sub menu
    ul#nav ul ul {
        position: absolute;
        top: 0;
        left: 100%;

        border-radius: 0 3px 3px 3px;
    }
    */

    ul#nav ul li {
        padding: 0;
        display: block;
        text-align: left;

        /* for transition effects */
        height: 0;
        overflow: hidden;

        -webkit-transition: height .25s ease .1s;
        -moz-transition: height .25s ease .1s;
        -o-transition: height .25s ease .1s;
        -ms-transition: height .25s ease .1s;
        transition: height .25s ease .1s;
    }

    /*On Hover */
    ul#nav li:hover > ul { opacity: 1; filter: alpha(opacity=100); }
    ul#nav li:hover > ul li {
        height: 42px;
        overflow: visible;
        border-bottom: 1px solid #26272C;
    }
    ul#nav li:hover > ul li:last-child  { border: none; }

    /* Sub Menu Anchor links */
    ul#nav ul li a {
        padding: 6px 15px;
        margin: 0;
        white-space: nowrap;
        font-size: 13px;
    }
}



@media (max-width: 576px) {
    .navbar {
        padding: 15px;
    }

    .logo-text {
        font-size: 20px;
    }

    .search-input {
        width: 120px;
    }
}


