/* Header */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
    background-color: #f0f0f0;
    position: relative; /* Необходимо для центрирования логотипа */
}

.logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.left-menu, .right-menu {
    display: flex;
    align-items: center;
}

.left-menu {
    flex-grow: 1; /* Левое меню занимает доступное пространство */
}

.left-menu a {
    text-decoration: none;
    color: #000;
    font-weight: bold;
    font-size: 1.1em;
    margin-right: 20px;
}

.right-menu {
    display: flex;
    align-items: center;
    text-align: right;
}

.contact-info {
    margin-right: 40px;
}

.order-button a {
    text-decoration: none;
    color: var(--font-color-white);
    background-color: #000;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    font-weight: bold;
    font-size: 1.1em; /* Увеличиваем шрифт на кнопке */
}

a[href^="tel"],
.contact-info a[target^="_blank"] {
    text-underline-position: from-font;
    text-underline-offset: 4px;
    color: inherit;
    font-weight: bold;
    font-size: 1.1em;
}

.dropdown {
    position: relative;
}

.dropdown-toggle {
    position: relative;
    font-weight: bold;
    cursor: pointer;
}

.dropdown .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    display: flex;
    flex-direction: column;
    min-width: 220px;
    background-color: rgba(255, 255, 255, 0.95); /* Полупрозрачность */
    border: none; /* Убираем границы */
    border-radius: 10px;
    padding: 10px 0;
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif; /* Современный шрифт */
    font-size: 1em;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); /* Глубокая тень */
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000;
}

.submenu {
    display: none;
}

.dropdown.open .submenu,
.dropdown:hover .submenu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.submenu a {
    padding: 10px 20px;
    color: #000;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s ease;
    font-weight: 500;
}

.submenu a:hover {
    background-color: rgba(0, 0, 0, 0.05); /* Лёгкое затемнение при наведении */
}


/* Медиа запросы для экранов 1380px и меньше */
@media screen and (max-width: 1380px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 25px 0;
        position: static;
    }

    .logo {
        position: static;
        transform: none;
        order: 1;
        width: 100%;
        text-align: center;
        margin-bottom: 20px;
    }

    .left-menu {
        order: 2;
        width: 100%;
        justify-content: center;
        flex-direction: column;
        align-items: center;
        margin-bottom: 10px;
    }

    .left-menu a {
        margin: 15px 0;
        font-size: 1.3em;
    }


    .left-menu a::before,
    .dropdown-toggle::before {
        content: "👉";
        font-size: 24px;
    }

    /* Кнопки меню */
    .left-menu a,
    .dropdown-toggle {
        display: inline-flex;
        align-items: flex-end;
        gap: 9px;
        padding: 6px 10px;
        color: #333333;
        transition: all 0.3s ease;
        flex-direction: row;
    }

    .right-menu {
        order: 3;
        width: 100%;
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 10px;
    }

    .contact-info {
        margin: 0 0 20px;
    }

    .order-button {
        padding: 20px;
        order: 4;
    }

    .dropdown {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .dropdown .submenu {
        position: static;
        background-color: rgba(255, 255, 255, 0.95);
        border: none;
        border-radius: 10px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        display: none;
        width: 100%;
        padding: 20px 0;
        font-family: 'Segoe UI', 'Roboto', sans-serif;
        font-size: 1em;
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }

    .dropdown-toggle {
        padding: 10px 20px;
        font-size: 1.1em;
        background: none;
        border: none;
        color: #000;
        font-weight: bold;
    }

    .dropdown .dropdown-toggle::after {
        content: " ▼";
        font-size: 0.8em;
    }

    .dropdown-toggle::after {
        transition: transform 0.3s ease;
    }

    .dropdown.open .dropdown-toggle::after {
        transform: rotate(180deg);
    }

    .dropdown.open .submenu {
        display: flex;
        flex-direction: column;
    }

    .dropdown.open .dropdown-toggle {
        background-color: #e0e0e0;
    }

    .submenu a {
        background: #ffffff00;
        padding: 0 20px;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        font-weight: 500;
    }


    .submenu a:first-child {
        border-top: none;
    }

    a[href^="tel"],
    .contact-info a[target^="_blank"] {
        font-size: 1.5em;
    }
}