.main-header {
    position: sticky;
    width: 100%;
    height: 95px;
    top: 0;
    left: 0;
    background: transparent;
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 1000;
}

.main-header.scrolled {
    background-color: rgba(24, 25, 27, 0.95);
}

.main-header-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1205px;
    padding-left: 20px;
    padding-right: 20px;
}

.main-header-title h1{
    color: #9D6CFF;
    font-size: 30px;
}

.main-header-title a {
    text-decoration: none;
    color: #9D6CFF;
    font-size: 30px;
}

.main-nav-list {
    list-style: none;
    display: flex;
    max-height: 51px;
    gap: 20px;
}

.main-nav-link {
    color: #ffffff;
    padding: 14px 20px 16px 17px;
    border-radius: 8px;
    transition: background-color 0.3s, color 0.3s;
    text-decoration: none;
}

.main-nav-link[href="#contact"] {
    width: 253px;
    border-radius: 8px 8px 8px 8px;
    background-color: #6239b5;
    color: #ffffff;
    font-size: 17px;
    font-weight: normal;
    font-style: normal;
    text-align: center;
}

.main-nav-link:hover {
    background-color: white;
    color: #18191b;
}

.main-header-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 253px;
    height: 51px;
    padding: 0 39px;
    border-radius: 8px;
    background-color: #6239B5;
    font-size: 17px;
    line-height: 50px;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s;
}

.main-header-button:hover {
    background-color: #9d6cff;
}

.main-header li {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Добавьте этот блок в ваш CSS файл */
.disclosure-button {
    display: inline-flex;
    align-items: center;
    justify-center: center;
    border-radius: 0.375rem; /* rounded-md */
    padding: 0.5rem; /* p-2 */
    background-color: rgba(255, 255, 255, 0);
}

.disclosure-button:hover {
    background-color: #374151; /* bg-gray-700 */
    color: #ffffff; /* text-white */
}

.disclosure-button:focus {
    outline: none; /* outline-none */
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.sm\:hidden {
    display: none;
}

.disclosure-panel {
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    background-color: rgba(24, 25, 27, 0.95);
    z-index: 10;
}

.disclosure-panel-open {
    transform: translateX(0);
}

.disclosure-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px 20px;
}

.disclosure-nav-link {
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
}

.disclosure-nav-link:hover {
    background-color: #374151; /* bg-gray-700 */
    color: #ffffff; /* text-white */
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9;
}

@media (min-width: 770px) {
    .menu-overlay {
        display: none;
    }
}


@media (max-width: 769px) {
    .main-header-container {
        flex-direction: row;
    }

    .main-header-title h1 {
        font-size: 21px;
    }

    .main-header-scrolled {
        height: 60px;
    }

    .hidden {
        display: none;
    }

    .sm\:hidden {
        display: block;
    }

    .main-nav-list {
        flex-direction: column;
        gap: 10px;
    }

    .nav-desktop {
        display: none !important;
    }

    .mobile-menu {
        display: block !important;
    }
}

@media (max-width: 430px) {
    .main-header {
        height: 60px;
    }

    .main-header-title h1 {
        font-size: 21px;
    }

    .main-header-scrolled {
        height: 60px;
    }
}
