.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    padding: 0.5vh 8vh;
    border-bottom: 1px solid #ddd;
    position: fixed;
    width: 100%;
    z-index: 2500;
    box-sizing: border-box;
}

    .logo img {
        width: 12vh;
    }

    .nav-menu {
        display: flex;
        gap: 20px;
        flex-grow: 1;
        margin-left: 6vh;
        align-items: center;
    }

.custom-dropdown-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  background: #fff;
  border: 1px solid #ccc;
  min-width: 250px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.custom-dropdown-item {
  padding: 12px 16px;
  cursor: pointer;
  position: relative;
  background: #fff;
  color: black;
  transition: background 0.3s;
}

.custom-dropdown-item:hover {
  background: #f0f0f0;
}

.custom-submenu {
  display: none;
  list-style: none;
  position: absolute;
  left: 100%;
  top: 0;
  min-width: 250px;
  background: white;
  border: 1px solid #ddd;
  z-index: 10;
  gap: 1vh;
  flex-direction: column;
  padding: 1vh;
}

.custom-submenu a {
  text-decoration: none;
  outline: none;
  background: none;
  user-select: none;
  color: black !important;
}

.custom-submenu a:hover {
  text-decoration: none;
  color: black;
}

.custom-has-submenu a {
  text-decoration: none;
  color: black !important;
  padding: 0 !important;
  margin: 0 !important;
}

.custom-has-submenu a:hover {
  text-decoration: none;
  color: black;
}

/* Десктопная версия */
@media (min-width: 769px) {
  .custom-dropdown-item:hover .custom-submenu {
    display: flex;
  }
}

/* Мобильная версия */
@media (max-width: 768px) {
  .custom-dropdown-menu {
    flex-direction: column;
    width: 100%;
  }

  .custom-dropdown-item {
    padding: 12px;
    border-top: 1px solid #eee;
  }

  .custom-submenu {
    position: static;
    display: none;
    border: none;
    background: white;
  }
  .custom-dropdown-item.active .custom-submenu {
    display: block;
  }

  .custom-dropdown-item details summary {
    list-style: none;
    cursor: pointer;
    font-weight: bold;
  }

  .custom-dropdown-item details[open] summary {
    background: #f0f0f0;
  }
}
    .nav-item {
        position: relative;
        padding: 10px;
        font-weight: 400;
        font-size: 18px;
        text-transform: uppercase;
        cursor: pointer;
        color: #333;
        transition: color 0.3s ease;
        text-decoration: none;
        outline: none;
        background: none;
        user-select: none;
    }

    .nav-item:hover {
        color: #ffcc00;
    }

    .dropdown {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        background: white;
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
        border-radius: 4px;
        display: none;
        flex-direction: column;
        min-width: 35vh;
        text-align: center;
        z-index: 9000;
    }

    .dropdown a {
        padding: 10px;
        text-decoration: none;
        color: #333;
        display: block;
        transition: background 0.3s ease;
        overflow-y: auto;
    }

    .dropdown a:hover {
        background: #f0f0f0;
    }

    .nav-item:hover .dropdown {
        display: flex;
    }

    .contact-buttons {
        display: flex;
        gap: 10px;
    }

    .contact-btn {
        padding: 10px 15px;
        border-radius: 20px;
        border: 2px solid #ffcc00;
        background: none;
        cursor: pointer;
        font-size: 16px;
        text-transform: uppercase;
        transition: all 0.3s ease;
        white-space: nowrap;
        font-weight: 500;
    }

    .contact-btn.yellow {
        background: #ffcc00;
        color: #000;
        border: none;
        font-weight: 400;
    }

    .contact-btn:hover {
        opacity: 0.8;
    }

    .burger-menu {
    display: none;
    }
    @media (max-width: 1400px) {
    .contact-buttons {
        align-items: center;
        margin-left: auto;
    }
.custom-has-submenu a{
    font-size: 15px;
}

        .contact-btn {
            width: 90%;
            font-size: 12px;
            padding: 8px 10px;
            text-align: center;
        }

        .burger-menu {
            display: flex;
            flex-direction: column;
            gap: 5px;
            cursor: pointer;
            margin-left: 4%;
        }

        .burger-menu div {
            width: 30px;
            height: 3px;
            background: #333;
            transition: all 0.3s ease;
        }

.nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        margin-left: 0;
        width: 100%;
        background: white;
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
        text-align: center;
        padding: 10px 0;
    }

        .nav-menu.active {
            display: flex;
        }

        .nav-item {
            padding: 15px;
            font-size: 14px;
        }

        .nav-item:hover {
            color: #ffcc00;
        }
    }
    @media (max-width: 768px) {
    .contact-buttons {
        width: 60%;
        align-items: center;
        margin-left: auto;
    }
.custom-has-submenu a{
    font-size: 14px;
}
    .contact-btn {
        width: 90%;
        font-size: 12px;
        padding: 8px 10px;
        text-align: center;
    }
        .burger-menu {
            display: flex;
            flex-direction: column;
            gap: 5px;
            cursor: pointer;
            margin-left: 10%;
        }

        .burger-menu div {
            width: 30px;
            height: 3px;
            background: #333;
            transition: all 0.3s ease;
        }
.nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        margin-left: 0;
        width: 100%;
        background: white;
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
        text-align: center;
        padding: 10px 0;
    }

        .nav-menu.active {
            display: flex;
        }

        .nav-item {
            padding: 15px;
            font-size: 14px;
        }

        .nav-item:hover {
            color: #ffcc00;
        }
    }


    /* Адаптивность кнопок */
    @media (max-width: 650px) {
    .contact-buttons {
        width: 40%;
        align-items: center;
        margin-left: auto; /* Здесь тоже добавляем */
    }
    .contact-btn {
        width: 90%;
        font-size: 12px;
        padding: 8px 10px;
        text-align: center;
    }

        .dropdown {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        background: white;
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
        border-radius: 4px;
        display: none;
        flex-direction: column;
        min-width: 35vh;
        text-align: center;
        z-index: 9000;
        max-height: 30vh;
        overflow-y: auto;
    }

        .burger-menu {
            display: flex;
            flex-direction: column;
            gap: 5px;
            cursor: pointer;
            margin-left: 10%;
        }

        .burger-menu div {
            width: 30px;
            height: 3px;
            background: #333;
            transition: all 0.3s ease;
        }

.nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        margin-left: 0;
        width: 100%;
        background: white;
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
        text-align: center;
        padding: 10px 0;
    }

        .nav-menu.active {
            display: flex;
        }

        .nav-item {
            padding: 15px;
            font-size: 14px;
        }

        .nav-item:hover {
            color: #ffcc00;
        }
    }


/* Адаптивность кнопок */
@media (max-width: 960px) {
    .contact-buttons {
        align-items: center;
        margin-left: auto;
    }

    .contact-btn {
        width: 90%;
        font-size: 12px;
        padding: 8px 10px;
        text-align: center;
    }

    .burger-menu {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        margin-left: 1%;
    }

    .burger-menu div {
        width: 30px;
        height: 3px;
        background: #333;
        transition: all 0.3s ease;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
        text-align: center;
        padding: 10px 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-item {
        padding: 15px;
        font-size: 14px;
    }

    .nav-item:hover {
        color: #ffcc00;
    }
}

/* Адаптивность кнопок */
@media (max-width: 768px) {
    .contact-buttons {
        align-items: center;
        margin-left: auto;
    }

    .custom-submenu a{
        font-size: 1.4vh;
    }

    .contact-btn {
        width: 90%;
        font-size: 12px;
        padding: 8px 10px;
        text-align: center;
    }

    .burger-menu {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        margin-left: 1%;
    }

    .burger-menu div {
        width: 30px;
        height: 3px;
        background: #333;
        transition: all 0.3s ease;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
        text-align: center;
        padding: 10px 0;
    }

    .nav-menu.active {
        display: flex;
        margin-top: 2vh;
    }

    .nav-item {
        padding: 15px;
        font-size: 14px;
    }

    .nav-item:hover {
        color: #ffcc00;
    }
}

/* Адаптивность кнопок */
@media (max-width: 650px) {
    .contact-buttons {
        align-items: center;
        margin-left: auto;
        width: 60%;
    }

    .contact-btn {
        width: 90%;
        font-size: 12px;
        padding: 8px 10px;
        text-align: center;
    }

    .burger-menu {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        margin-left: 1%;
    }

    .burger-menu div {
        width: 30px;
        height: 3px;
        background: #333;
        transition: all 0.3s ease;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
        text-align: center;
        padding: 10px 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-item {
        padding: 15px;
        font-size: 14px;
    }

    .nav-item:hover {
        color: #ffcc00;
    }
}

    @media (max-width: 450px) {
    .navbar {
        padding: 10px 20px;
    }

    .nav-item {
        font-size: 14px;
    }

    .nav-item:hover {
        color: #ffcc00;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
        text-align: center;
        padding: 10px 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-item {
        padding: 12px;
        font-size: 13px;
    }

    .contact-buttons {
        width: 60%;
        margin-left: auto;
    }

    .contact-btn {
        width: 45%;
        font-size: 12px;
        padding: 8px 12px;
        text-align: center;
    }

    .burger-menu {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        margin-left: 1%;
    }

    .burger-menu div {
        width: 30px;
        height: 3px;
        background: #333;
        transition: all 0.3s ease;
    }

    .contact-btn.yellow {
        background: #ffcc00;
        color: #000;
        border: none;
    }

    .contact-btn:hover {
        opacity: 0.8;
    }

    .nav-menu {
        transition: all 0.3s ease;
    }
}