body {
    font-family: "Nunito", sans-serif !important;
    background-color: rgb(248,250,252) !important;
    display: flex !important;
    flex-direction: column !important; /* Элементы идут сверху вниз */
    min-height: 100vh !important;
    color: rgb(15,23,42) !important;
}

header {
    background-color: white;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    padding: 1rem;
    z-index: 9998;
}

.in-header-container-big {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    align-items: center;
    justify-content: space-between;
}

.logo-and-menu {
    display: flex;
    align-items: center;
}

.logo {
    text-decoration: none;
    background: linear-gradient(135deg, rgb(78,69,228), rgb(243,61,93));
    -webkit-background-clip: text;
    color: transparent;
    transition: 0.2s;
    font-size: 20px;
    font-weight: 700;
    font-style: italic;
    transition: 0.6s;
    margin-right: 4rem;
}

.logo:hover {
    color: rgb(79,70,229);
    transition: 1s;
    cursor: pointer;
}

.studio-btn {
    color: white;
    background-color: rgb(15, 23, 42);
    border-radius: 12px;
    text-decoration: none;
    padding: 0.4rem 1.2rem;
    font-weight: 700;
    transition: 0.3s;
    font-size: 16px;
    text-align: center;
    border: 2px solid rgb(15, 23, 42);
    cursor: pointer;
}

.studio-btn:hover {
    background-color: rgb(30, 41, 59); 
    border-color: rgb(30, 41, 59);
    box-shadow: 0 10px 20px -5px rgba(15, 23, 42, 0.4); 
}
.burger-btn {
    display: none;
}

.in-header-container-big .menu-btn, .mobile-menu .menu-btn {
    color: rgb(71,85,105);
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

.in-header-container-big .menu-btn:hover, .mobile-menu .menu-btn:hover {
    color: rgb(79,70,229);
    transition: 0.3s;
    font-size: 17px;
}

.in-header-container-big .menu-btn.active, .mobile-menu .menu-btn.active {
    color: rgb(106,98,233) !important;
    font-weight: 700 !important;
}

.in-header-container-big .log-btn, .mobile-menu .log-btn {
    background-color: transparent;
    border: 2px solid rgb(106,98,233);
    border-radius: 12px;
    text-decoration: none;
    padding: 0.4rem 1.2rem;
    color: rgb(106,98,233);
    font-weight: 700;
    transition: 0.3s;
    font-size: 16px;
}

.in-header-container-big .log-btn.active, .mobile-menu .log-btn.active {
    background-color: rgb(106,98,233);
    color: white;
    transition: 0.3s;
}


.in-header-container-big .log-btn:hover, .mobile-menu .log-btn:hover {
    background-color: rgb(106,98,233);
    color: white;
    transition: 0.3s;
    box-shadow: 0 0 40px -5px rgba(106,98,233, 0.5);
}

.menu-help-btns {
    display: flex;
    align-items: center;
}

.menu-help-btns img {
    border: 1px solid rgba(71,85,105,1);
    border-radius: 50%;
    transition: 0.3s;
}

.menu-help-btns img:hover {
    border: 1px solid rgb(79,70,229);
    transition: 0.3s;
}

.in-header-container-small {
    display: none;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    align-items: center;
    justify-content: space-between;
}

.burger-btn {
    display: flex;
    position: relative;
    width: 34px;
    height: 34px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: 0.6s;
    border-radius: 6px;
}

.burger-btn span {
    display: block;
    position: absolute;
    right: 5px; 
    top: 50%; 
    margin-top: -1.5px; 
    height: 3px;
    width: 24px;
    background-color: rgb(78, 69, 228) !important;
    border-radius: 3px;
    transition: 0.3s;
}

.burger-btn:hover {
    background-color: rgb(78, 69, 228);
    transition: 0.6s;
    box-shadow: 0 0 40px -5px rgba(106,98,233, 0.5);
}

.burger-btn:hover span {
    background-color: white !important;
    transition: 0.4s;
}

.burger-btn span:nth-child(1) {
    transform: translateY(-8px); 
}

.burger-btn span:nth-child(2) {
    transform: translateY(0);
}

.burger-btn span:nth-child(3) {
    transform: translateY(8px); 
}

.burger-btn.open span:nth-child(1) {
    transform: translateY(0) rotate(45deg);
}

.burger-btn.open span:nth-child(2) {
    opacity: 0;
}

.burger-btn.open span:nth-child(3) {
    transform: translateY(0) rotate(-45deg);
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
    padding: 0 1rem 0 1rem;
}

.mobile-menu a {
    display: block;
    text-align: center;
    margin-bottom: 16px;
}

main {
    background-color: rgb(248,250,252);
    flex: 1;
}

footer {
    color: rgb(71,85,105);
    border-top: 1px solid rgb(226,232,240);
    padding: 1rem;
    background-color: white;
    padding-block: 2rem;
}

.footer-list a {
    text-decoration: none;
    color: rgb(71,85,105);
    transition: 0.3s;
}

.footer-list a:hover {
    color: rgb(79,70,229);
    transition: 0.3s;
}

footer p {
    margin-bottom: 0;
}

.messages-container {
    position: fixed;
    top: 87px;
    right: 16px;
    z-index: 9999;
    max-width: 300px;
    margin-left: 16px;
}

.alert {
    position: relative;
    margin-bottom: 10px;
    text-align: center;
    border-radius: 12px;
    opacity: 0.9;
}

.alert:hover {
    cursor: pointer;
}

@media(max-width: 800px) {
    .in-header-container-big {
        display: none;
    }

    .in-header-container-small {
        display: flex;
    }
}

@media(max-width: 575px) {
    .messages-container {
        top: 74px;
    }
}