.main-header {
    background-image: url('/img/top_banner_rectangle_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    z-index: 3;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px!important;
    width: calc(100% - 64px);
}

.header-logos{
    display: flex;
    gap: 48px;
}

.header-logos img {
    height: 40px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 40px;
}

.btn-login {
    background: #E68B31;
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 16px 40px;
    font-size: 18px;
    cursor: pointer;
    font-family: Manrope;
    font-weight: 600;
    line-height: 127%;
    text-align: center;
}

.btn-login:focus {
    outline: none;
}

.btn-login:hover{
    box-shadow: 0 12px 32px rgba(255, 107, 53, 0.4);
}

.btn-menu {
    background: none;
    border: none;
    cursor: pointer;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    flex: 1 1 auto;
    margin-top: 48px;
    min-height: 0;
    width: calc(100% - 64px);
}

/* Адаптивность для картинки с детьми */

@media (max-width: 1260px) {
    .header-logos {
        gap: 20px;
    }
}

@media (max-width: 991px) {
    .header-logos img {
        height: 30px;
    }
}

@media (max-width: 767px) {

    .main-header{
        background-position: left;
    }

    .header-logos a:nth-child(2), .header-logos a:nth-child(3), .header-logos a:nth-child(4) {
        display: none;
    }
}

@media (max-width: 490px) {

    .header-top{
        gap: 45px;
        margin-top: 15px;
    }

    .header-logos{
        justify-content: space-between;
        width: 100%;
    }

    .header-actions{
        width: auto!important;
        justify-content: space-between;
        gap: 75px;
    }

    .main-header {
        background-image: url(/img/top_banner_rectangle_bg.png);
    }

    .header-actions .header-auth-user{
        display: none;
    }
}

@media (max-width: 450px) {

    .header-logos{
        flex-wrap: wrap;
    }

    .header-actions{
        flex-wrap: wrap;
        gap: unset;
    }
}

/* Мобильное меню */
.menu-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    /*background: linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(22, 33, 62, 0.95) 50%, rgba(15, 52, 96, 0.95) 100%);*/
    backdrop-filter: blur(0px);
    z-index: 100;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.menu-overlay.active {
    transform: translateX(0);
}

.menu-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 60px 60px, 40px 40px;
    opacity: 0.3;
}

.menu-content {
    width: 40.333%;
    height: 100%;
    background: #0A0019E5;
    backdrop-filter: blur(20px);
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Заголовок меню */
.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
    width: 332px;
    padding-left: 86px;
    padding-top: 40px;
    gap: 40px;
}

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

.share-icon {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.share-icon:hover {
    opacity: 1;
}

.btn-login-menu {
    background: #E68B31;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.btn-login-menu:hover {
    background: #FF6B35;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(230, 139, 49, 0.4);
}

.btn-close-menu {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.btn-close-menu:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.btn-close-menu svg {
    width: 39px;
    height: 39px;
}

/* Навигация меню */
.menu-nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    z-index: 2;
    padding-left: 86px;
}

.menu-link {
    color: #FFFFFF;
    text-decoration: none;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 22px;
    line-height: 127%;
    padding: 16px 68px;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 20px;
    padding-left: 20px;
    width: fit-content;
    text-align: center;
}

.menu-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
    padding-left: 25px;
    text-decoration: none;
}

.menu-link:hover::before {
    width: 15px;
}

.menu-link.active {
    color: white;
    background: #C86D13;
    padding-left: 25px;
}

.menu-link.active::before {
    width: 15px;
    background: white;
}

/* Кнопка открытия меню */
.btn-menu {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
}

.btn-menu:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.btn-menu img {
    width: 39px;
    height: 39px;
    filter: brightness(0) invert(1);
}

.header-logos-menu{
    display: none;
}

/* Адаптивность для меню */
@media (max-width: 768px) {
    .menu-content {
        width: 100%;
        padding: 30px 20px;
    }

    .menu-nav {
        gap: 15px;
        padding-left: 0;
    }

    .menu-link {
        font-size: 22px;
        width: 100%;
        padding-left: 68px;
    }

    .menu-link.active {
        padding-left: 68px;
    }

    .btn-login-menu {
        padding: 10px 20px;
        font-size: 12px;
    }

    .header-logos-menu{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 32px;
        margin-top: 60px;
    }

    .menu-header{
        width: 100%;
        justify-content: center;
    }

    .header-actions .header-social{
        display: none;
    }

    .header-actions .btn-login{
        display: none;
    }
}

@media (max-width: 490px) {
    .menu-header {
        margin-bottom: 40px;
        padding-left: 0;
        width: 100%;
    }

    .btn-close-menu svg {
        width: 20px;
        height: 20px;
    }
}

.btn-logout{
    background: transparent;
    border: none;
    cursor: pointer;
}

.btn-logout:focus{
    outline: none;
}

.user-btn{
    background: transparent;
    border: none;
    cursor: pointer;
}

.user-btn:focus{
    outline: none;
}

.main-sdo-header{
    background: #0A0019;
    padding-bottom: 50px;
}

.header-auth-user{
    display: flex;
}
