a, u {
  text-decoration: none;
}

/* Telegram */
.telegram-icon circle {
    fill: url(#tg-gradient);
}
.telegram-icon path {
    fill: #FFFFFF;
}

/* МАИ */
.mai-st0 {
    fill: #FFFFFF;
}
.mai-st1 {
    fill: #0095DA;
}

.logo-svg .cls-1 {
    fill: #d5ffd4;
}

/*************/
/*H-E-A-D-E-R*/
/*************/

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: auto;
    min-height: 50px;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    background: #0a0a0a;
    border-bottom: 1px solid rgba(0, 209, 102, 0.3);
    transition: all 0.3s ease;
}

.header-left {
    display: flex;
    flex-direction: row;
    align-items: center; 
    min-width: 0;
    flex-wrap: nowrap;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 2px;
}

.header-titles-wrapper {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

.header-title, .header-title-name {
    font-family: 'Russo One';
    color: #00e472;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    font-size: 22px;
    overflow-x: hidden;
    line-height: 1,2;
}

.header-title-name {
    font-weight: 100;
    color: #ffffff;
}

.telegram-title {
    font-family: 'Russo One';
    color: #00e472;
    margin: 0;
    margin-right: -10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: hidden;
    min-width: 0;
    font-size: 18px;
    color: #2AABEE;
}


.menu-toggle {
    margin-right: 12px;
    flex-shrink: 0;
    background: none;
    border: none;
    color: #e0e0e0;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center; 
    justify-content: center;
    height: 100%; 
    padding: 0;
    line-height: 1;
}

.social-icon {
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-icon:hover {
    background-color: #1a1a1a;
    box-shadow: 0 0 20px rgba(0, 228, 114, 0.4);
}

/*********/
/*M-E-N-U*/
/*********/

.side-menu {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 256px;
    background: #121212;
    box-shadow: 0 0 15px rgba(0, 209, 102, 0.3);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 900;
}

.menu-nav {
    margin-top: 64px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.menu-item {
    display: block;
    padding: 8px 16px;
    border-radius: 4px;
    color:  #e0e0e0;
    text-decoration: none;
    transition: all 0.1s ease;
    font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
    font-weight: 600;
}

.menu-item:hover {
    border-left: 3px solid #00e472;
}

.menu-item.matrix-text {
    color: #00e472;
}

@media (max-width: 768px) {
    .header-titles-wrapper {
        flex-direction: column;
        align-items: flex-start;
        white-space: normal;
        line-height: 1.2;
    }
    .header-left {
        align-items: center;
    }

    .telegram-title {
        display: none;
    }
        
    .menu-toggle {
	margin-top: 0;
        margin-right: 8px;
        align-self: center; 
    }

    .header-title, .header-title-name {
        white-space: nowrap;
        font-size: 16px;
        line-height: 1.4;
        margin-top: 0;
        margin-bottom: 0;
        align-self: center;
	margin-right: auto;
	margin-left: 8px;
    }
    
    header {
        padding: 8px 10px;
    }
    
    .social-icon svg {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 6px 6px;
        min-height: 40px;
	max-height: 60px;
    }
    .header-left {
        align-items: center;
	display: flex;
	flex-direction: row;
	margin: 0;
	margin-left: 0;
	margin-top: 0;
	flex-wrap: nowrap;
    }
    .menu-toggle {
        margin: 0;
        padding: 0;
        font-size: 20px;
        height: 32px;
        width: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    .header-titles-wrapper {
	display: flex;
        flex-direction: column;
        align-items: flex-start;
        white-space: nowrap;
        line-height: 1.2;
	margin-left: 8px;
	justify-content: flex-start;
	
    }    
    .header-title, .header-title-name {
        margin: 0;
        padding: 0;
        line-height: 1.1;
        white-space: normal;
        overflow: hidden;
        text-overflow: clip;
	margin-right: auto;
    }
    
    .header-title {
        font-size: 12px;
    }
    
    .header-title-name {
        font-size: 9px;
    }
    .side-menu {
        width: 220px;
    }
    
    .menu-item {
        padding: 6px 6px;
        font-size: 14px;
    }
    
}

@media (min-width: 769px) {
    .header-titles-wrapper {
        display: flex;
        align-items: baseline;
        white-space: nowrap;
    }
    .header-title, .header-title-name {
        font-size: 18px;
	white-space: nowrap;
    }
    
    .telegram-title {
        font-size: 16px;
    }
}