/* apps/core/static/css/style.css */
/* ===== ПЕРЕМЕННЫЕ ===== */

/* ===== ПОДКЛЮЧЕНИЕ ШРИФТА BAHNSCHRIFT ===== */
@font-face {
    font-family: 'Bahnschrift';
    src: url('../fonts/Bahnschrift.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Bahnschrift';
    src: url('../fonts/Bahnschrift.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Bahnschrift';
    src: url('../fonts/Bahnschrift.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    /* ТЁМНАЯ ТЕМА (по умолчанию) */
    --bg-primary: #000000;           /* Чёрный фон */
    --bg-card: #0d0d0d;             /* Карточки чуть светлее фона */
    --bg-hover: #1a1a1a;            /* Ховер-эффект */
    --text-primary: #eae9f1;        /* Светлый текст (из логотипа) */
    --text-secondary: #999999;      /* Вторичный текст */
    --border-color: #2a2a2a;        /* Тёмные разделители */
    --accent-color: #eae9f1;        /* Акцентный цвет (из логотипа) */
    --accent-hover: #c8c7d0;        /* Акцент при наведении */
    --input-bg: rgba(255, 255, 255, 0.05);
    --shadow-color: rgba(0, 0, 0, 0.5);
    --overlay-color: rgba(0, 0, 0, 0.6);
    --font-family: 'Bahnschrift', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* СВЕТЛАЯ ТЕМА */
body.light-theme {
    --bg-primary: #ffffff;           /* Белый фон */
    --bg-card: #f5f5f7;             /* Карточки чуть темнее фона */
    --bg-hover: #ebebed;            /* Ховер-эффект */
    --text-primary: #35363a;        /* Тёмный текст (из логотипа) */
    --text-secondary: #999999;      /* Вторичный текст */
    --border-color: #d5d5d8;        /* Светлые разделители */
    --accent-color: #35363a;        /* Акцентный цвет (из логотипа) */
    --accent-hover: #4a4b50;        /* Акцент при наведении */
    --input-bg: rgba(0, 0, 0, 0.04);
    --shadow-color: rgba(0, 0, 0, 0.08);
    --overlay-color: rgba(0, 0, 0, 0.3);
}

/* ===== ГЛОБАЛЬНЫЕ СТИЛИ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.3s, color 0.3s;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== ХЕДЕР ===== */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 3rem;
    border-bottom: 2px solid var(--border-color);
    background-color: var(--bg-card);
    position: sticky;
    top: 0;
    z-index: 100;
    flex-wrap: wrap;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 3rem;
}

/* Логотип */
.logo {
    font-size: 2.8rem;
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    transition: transform 0.2s;
    line-height: 1;
}
.logo:hover {
    transform: scale(1.05);
}
.logo img {
    height: 45px;
    width: auto;
}

/* Навигация */
nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
}

nav ul li {
    position: relative;
    padding: 0.5rem 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
    cursor: pointer;
    padding: 0.3rem 0;
}
.nav-link:hover {
    color: var(--text-secondary);
}
.nav-link .arrow {
    font-size: 0.8rem;
    transition: transform 0.2s;
}

/* ===== ВЫПАДАЮЩЕЕ МЕНЮ ===== */
.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 0.8rem 1.5rem;
    box-shadow: 0 12px 30px var(--shadow-color);
    z-index: 200;
    flex-direction: row;
    gap: 0;
    white-space: nowrap;
}
.dropdown a {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.05rem;
    transition: background 0.15s, color 0.15s;
    border-radius: 6px;
}
.dropdown a:hover {
    background-color: var(--bg-hover);
    color: var(--text-primary);
}
.dropdown a:not(:last-child) {
    border-right: 1px solid var(--border-color);
}

nav ul li:hover .dropdown {
    display: flex !important;
}
nav ul li:hover .arrow {
    transform: rotate(180deg);
}

/* Правая часть хедера */
.header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.theme-toggle {
    background: none;
    border: 2px solid var(--border-color);
    border-radius: 30px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 1.4rem;
    color: var(--text-primary);
    transition: 0.2s;
    line-height: 1;
}
.theme-toggle:hover {
    background: var(--bg-hover);
    border-color: var(--text-primary);
}

.btn-login {
    padding: 0.6rem 1.8rem;
    border: 2px solid var(--border-color);
    border-radius: 30px;
    background: transparent;
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
    text-decoration: none;
}
.btn-login:hover {
    background: var(--bg-hover);
    border-color: var(--text-primary);
}

/* ===== МЕНЮ ПОЛЬЗОВАТЕЛЯ ===== */
.user-menu-container {
    position: relative;
}

.user-menu-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.8rem 0.3rem 0.3rem;
    border: 2px solid var(--border-color);
    border-radius: 30px;
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    transition: 0.2s;
    font-family: var(--font-family);
    font-size: 0.9rem;
}
.user-menu-trigger:hover {
    border-color: var(--text-primary);
    background: var(--bg-hover);
}

.user-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.user-avatar-placeholder-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    background-color: var(--border-color);
    color: var(--bg-primary);
}

.user-menu-arrow {
    font-size: 0.6rem;
    transition: transform 0.3s;
}
.user-menu-trigger.active .user-menu-arrow {
    transform: rotate(180deg);
}

.user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background-color: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 0.5rem 0;
    box-shadow: 0 8px 30px var(--shadow-color);
    z-index: 200;
}
.user-dropdown.active {
    display: block;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem 1.2rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: 0.2s;
    font-size: 0.95rem;
}
.user-dropdown-item:hover {
    background-color: var(--bg-hover);
    color: var(--text-primary);
}

.user-dropdown-logout {
    border-top: 1px solid var(--border-color);
    margin-top: 0.3rem;
    color: #e74c3c;
}
.user-dropdown-logout:hover {
    background-color: #e74c3c;
    color: white;
}

.dropdown-icon {
    font-size: 1.1rem;
}

/* ===== ОВЕРЛЕЙ ===== */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-color);
    z-index: 50;
    pointer-events: none;
}
body.menu-open .overlay {
    display: block;
}

/* ===== ОСНОВНОЙ КОНТЕНТ ===== */
main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
}

/* ===== HERO БЛОК (главная) ===== */
.hero {
    max-width: 850px;
    text-align: left;
    margin-right: auto;
}
.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.15;
}
.hero p {
    font-size: 1.4rem;
    opacity: 0.85;
    margin-bottom: 2.5rem;
}
.hero .sub-text {
    font-size: 1.1rem;
    opacity: 0.6;
    border-top: 2px solid var(--border-color);
    padding-top: 2rem;
    margin-top: 1rem;
}

/* ===== АВТОРИЗАЦИЯ ===== */
.auth-container {
    width: 100%;
    max-width: 440px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-card {
    background-color: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    width: 100%;
    box-shadow: 0 8px 30px var(--shadow-color);
}

.auth-card h1 {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-form .form-group {
    margin-bottom: 1.2rem;
}

.auth-form .form-group label {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
}

/* ===== ОБЩИЕ СТИЛИ ДЛЯ ПОЛЕЙ ВВОДА, ВЫПАДАЮЩИХ СПИСКОВ И ТЕКСТОВЫХ ОБЛАСТЕЙ ===== */
.auth-form .form-group input,
.auth-form .form-group select,
.auth-form .form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background-color: var(--input-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-family);
    transition: border-color 0.3s, background-color 0.3s;
}

.auth-form .form-group input:focus,
.auth-form .form-group select:focus,
.auth-form .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* Специальные стили для select (выпадающий список) */
.auth-form .form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23999999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2rem;
    padding-right: 2.5rem;
    cursor: pointer;
}

/* Для светлой темы стрелка должна быть тёмной */
body.light-theme .auth-form .form-group select {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2335363a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

/* Опции внутри select */
.auth-form .form-group select option {
    background-color: var(--bg-card);
    color: var(--text-primary);
}

/* ===== ПОДСКАЗКИ ===== */
.auth-form .form-group .form-hint {
    display: block;
    font-size: 0.8rem;
    opacity: 0.6;
    margin-top: 0.3rem;
}

.btn-block {
    width: 100%;
    padding: 0.8rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--bg-primary);
    border: none;
    border-radius: 30px;
    padding: 0.8rem 2rem;
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}
.btn-primary:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

/* Сообщения */
.messages {
    margin-bottom: 1.2rem;
}
.alert {
    padding: 0.8rem 1rem;
    border-radius: 10px;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}
.alert-success {
    background: rgba(46, 204, 113, 0.15);
    border: 1px solid #2ecc71;
    color: #2ecc71;
}
.alert-error {
    background: rgba(231, 76, 60, 0.15);
    border: 1px solid #e74c3c;
    color: #e74c3c;
}
.alert-info {
    background: rgba(52, 152, 219, 0.15);
    border: 1px solid #3498db;
    color: #3498db;
}
.alert-warning {
    background: rgba(241, 196, 15, 0.15);
    border: 1px solid #f1c40f;
    color: #f1c40f;
}

/* Социальные кнопки */
.auth-social {
    margin-top: 1.5rem;
}
.auth-divider {
    text-align: center;
    opacity: 0.5;
    font-size: 0.9rem;
    margin: 0.5rem 0;
}
.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}
.btn-social {
    width: 100%;
    padding: 0.7rem;
    border: 2px solid var(--border-color);
    border-radius: 30px;
    background: transparent;
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 0.95rem;
    cursor: not-allowed;
    opacity: 0.5;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.btn-social .social-icon {
    font-size: 1.2rem;
}
.btn-social:hover {
    opacity: 0.7;
}

/* Футер авторизации */
.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 2px solid var(--border-color);
    opacity: 0.8;
}
.auth-footer a {
    color: var(--text-primary);
    font-weight: 600;
    text-decoration: underline;
    transition: opacity 0.3s;
}
.auth-footer a:hover {
    opacity: 0.7;
}

/* ===== ПРОФИЛЬ ===== */
.profile-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.profile-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    background-color: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 30px var(--shadow-color);
}

/* Левая колонка */
.profile-sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    border-right: 2px solid var(--border-color);
    padding-right: 2rem;
}

/* Обёртка для аватара и кнопки */
.profile-avatar-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    width: 100%;
}

.profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--border-color);
    flex-shrink: 0;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: 700;
    background-color: var(--border-color);
    color: var(--bg-primary);
}

/* Кнопка изменения фото (под аватаром) */
.avatar-upload-form {
    width: 100%;
}

.avatar-upload-btn {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: 30px;
    color: var(--text-primary);
    font-size: 0.85rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    font-family: var(--font-family);
}
.avatar-upload-btn:hover {
    background: var(--bg-hover);
    border-color: var(--accent-color);
}

.profile-user-info {
    text-align: center;
}

.profile-display-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.profile-username {
    font-size: 1rem;
    opacity: 0.6;
    margin-bottom: 0.2rem;
}

.profile-email {
    font-size: 0.9rem;
    opacity: 0.5;
    margin-bottom: 0.2rem;
}

.profile-joined {
    font-size: 0.8rem;
    opacity: 0.4;
}

/* Правая колонка */
.profile-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.profile-form .form-group {
    margin-bottom: 1.2rem;
}

.profile-form .form-group label {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
}

.profile-form .form-group input,
.profile-form .form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background-color: var(--input-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-family);
    transition: border-color 0.3s;
}

.profile-form .form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.profile-form .form-group input:focus,
.profile-form .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.profile-form .form-group .form-hint {
    display: block;
    font-size: 0.8rem;
    opacity: 0.6;
    margin-top: 0.3rem;
}

/* Заглушки для будущих разделов */
.profile-sections-placeholder {
    margin-top: 1rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.profile-sections-placeholder h3 {
    font-size: 1.1rem;
    opacity: 0.7;
    margin-bottom: 1rem;
}

.placeholder-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem !important;
}

.placeholder-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    opacity: 0.6;
    transition: 0.3s;
    text-decoration: none;
    color: var(--text-primary);
    cursor: default;
}

a.placeholder-item {
    cursor: pointer;
}

.placeholder-item:hover {
    opacity: 0.9;
    border-color: var(--accent-color);
}

.placeholder-icon {
    font-size: 2rem;
    margin-bottom: 0.3rem;
}

.placeholder-label {
    font-size: 0.9rem;
    font-weight: 500;
}

.placeholder-status {
    font-size: 0.7rem;
    opacity: 0.5;
    margin-top: 0.2rem;
}

/* ===== РОЛИ В ПРОФИЛЕ ===== */
.role-notifications {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-color);
}

.role-notifications h3 {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 1rem;
}

.role-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
}

.role-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    transition: 0.3s;
}

.role-card:hover {
    border-color: var(--accent-color);
    background: var(--bg-hover);
}

.role-card.priority-high {
    border-left: 4px solid #e74c3c;
}

.role-card.priority-normal {
    border-left: 4px solid #f39c12;
}

.role-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.role-content {
    flex: 1;
}

.role-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.role-description {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ===== КНОПКИ НА ГЛАВНОЙ ===== */
.hero-actions {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.btn-hero {
    padding: 0.8rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 30px;
    text-decoration: none;
    transition: 0.3s;
    display: inline-block;
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-outline:hover {
    background: var(--border-color);
    color: var(--bg-primary);
    transform: translateY(-2px);
}

.project-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    opacity: 0.5;
    margin-top: 0.3rem;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.comment-item {
    padding: 0.8rem 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
    opacity: 0.7;
}

.comment-text {
    font-size: 0.95rem;
    line-height: 1.5;
}


/* ===== БУРГЕР-МЕНЮ (ТОЛЬКО ДЛЯ ТЕЛЕФОНОВ) ===== */
.burger-menu {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.3rem;
}

.burger-menu span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: 0.3s;
    border-radius: 2px;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* ===== АДАПТИВНОСТЬ ===== */

/* Планшеты и маленькие ноутбуки */
@media (max-width: 1024px) {
    header {
        padding: 1rem 2rem;
    }
    .header-left {
        gap: 2rem;
    }
    nav ul {
        gap: 1.8rem;
    }
    .hero h1 {
        font-size: 3rem;
    }
    main {
        padding: 2rem 3rem;
    }
    .dropdown {
        padding: 0.6rem 1rem;
    }
    .dropdown a {
        padding: 0.5rem 1rem;
        font-size: 0.95rem;
    }
}

/* ===== МОБИЛЬНАЯ ВЕРСИЯ (768px и меньше) ===== */
@media (max-width: 768px) {
    /* ХЕДЕР */
    header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0.8rem 1.2rem !important;
        flex-wrap: nowrap !important;
    }

    .header-left {
        display: flex !important;
        align-items: center !important;
        gap: 1rem !important;
        flex: 0 0 auto !important;
        width: auto !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
    }

    /* Логотип */
    .header-left .logo {
        order: 0 !important;
    }

    .header-left .logo img {
        height: 42px !important;
        width: auto !important;
    }

    /* Бургер */
    .burger-menu {
        display: flex !important;
        order: 1 !important;
        padding: 0.5rem !important;
        gap: 6px !important;
    }

    .burger-menu span {
        width: 30px !important;
        height: 4px !important;
        border-radius: 4px !important;
    }

    /* ПРАВАЯ ЧАСТЬ */
    .header-right {
        display: flex !important;
        align-items: center !important;
        gap: 0.8rem !important;
        flex: 0 0 auto !important;
        margin-left: auto !important;
    }

    /* Кнопка темы */
    .theme-toggle {
        padding: 0.6rem !important;
        min-width: 50px !important;
        min-height: 50px !important;
        border-width: 2px !important;
        border-radius: 30px !important;
    }

    .theme-toggle img {
        width: 26px !important;
        height: 26px !important;
    }

    /* Колокольчик */
    .notifications-bell {
        padding: 0.6rem !important;
        min-width: 50px !important;
        min-height: 50px !important;
        border-width: 2px !important;
        border-radius: 30px !important;
    }

    .notifications-bell img {
        width: 26px !important;
        height: 26px !important;
    }

    #notificationsCount {
        font-size: 0.65rem !important;
        min-width: 22px !important;
        padding: 2px 6px !important;
        top: -4px !important;
        right: -4px !important;
        border-radius: 50% !important;
    }

    /* Меню пользователя */
    .user-menu-trigger {
        padding: 0.3rem 0.8rem 0.3rem 0.3rem !important;
        font-size: 1rem !important;
        gap: 0.5rem !important;
        min-height: 50px !important;
        border-width: 2px !important;
        border-radius: 30px !important;
    }

    .user-avatar-small {
        width: 38px !important;
        height: 38px !important;
    }

    .user-avatar-placeholder-small {
        width: 38px !important;
        height: 38px !important;
        font-size: 1rem !important;
    }

    .user-menu-trigger span.user-menu-arrow {
        display: none !important;
    }

    /* Кнопка "Войти" */
    .btn-login {
        padding: 0.5rem 1.4rem !important;
        font-size: 1.1rem !important;
        border-width: 2px !important;
        border-radius: 30px !important;
    }
    /* ===== ТЕГИ КОМПЕТЕНЦИЙ ===== */
    .competency-tag {
        display: inline-block;
        padding: 0.25rem 0.8rem;
        background: var(--bg-primary);
        border: 1px solid var(--border-color);
        border-radius: 20px;
        font-size: 0.85rem;
        font-weight: 500;
        color: var(--text-primary);
        opacity: 0.8;
        transition: 0.2s;
        margin-right: 0.4rem;
        margin-bottom: 0.4rem;
    }

    .competency-tag:hover {
        opacity: 1;
        border-color: var(--accent-color);
        background: var(--bg-hover);
    }
    /* ===== НАВИГАЦИЯ ===== */
    nav {
        display: none !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        background: var(--bg-card) !important;
        border-top: 1px solid var(--border-color) !important;
        padding: 1.5rem !important;
        flex-direction: column !important;
        gap: 0.5rem !important;
        box-shadow: 0 10px 30px var(--shadow-color) !important;
        z-index: 1000 !important;
    }

    nav.open {
        display: flex !important;
    }

    nav ul {
        flex-direction: column !important;
        width: 100% !important;
        gap: 0.5rem !important;
        flex-wrap: nowrap !important;
    }

    nav ul li {
        width: 100% !important;
        padding: 0.5rem 0 !important;
    }

    /* Пункты меню */
    .nav-link {
        font-size: 1.5rem !important;
        padding: 0.6rem 0 !important;
    }

    /* Все dropdown всегда открыты на мобильных */
    nav ul li .dropdown {
        display: flex !important;
        position: static !important;
        box-shadow: none !important;
        border: none !important;
        padding-left: 1.2rem !important;
        margin-top: 0.4rem !important;
        background: transparent !important;
        flex-direction: column !important;
        white-space: normal !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    nav ul li .dropdown a {
        padding: 0.6rem 0.8rem !important;
        border-right: none !important;
        border-bottom: 1px solid var(--border-color) !important;
        font-size: 1.2rem !important;
    }

    nav ul li .dropdown a:last-child {
        border-bottom: none !important;
    }

    /* Убираем hover-эффекты */
    nav ul li:hover .dropdown {
        display: flex !important;
    }

    /* Стрелки скрываем */
    .nav-link .arrow {
        display: none !important;
    }

    /* ===== КОНТЕНТ ===== */
    main {
        padding: 1.5rem !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .hero {
        text-align: center !important;
        margin-right: 0 !important;
    }

    .hero h1 {
        font-size: 2.2rem !important;
    }

    .hero p {
        font-size: 1.1rem !important;
    }

    .hero-actions {
        flex-direction: column !important;
        gap: 0.8rem !important;
    }

    .hero-actions .btn {
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
    }

    .auth-card {
        padding: 1.5rem !important;
    }

    .profile-card {
        grid-template-columns: 1fr !important;
        padding: 1.5rem !important;
    }

    .profile-sidebar {
        border-right: none !important;
        border-bottom: 2px solid var(--border-color) !important;
        padding-right: 0 !important;
        padding-bottom: 1.5rem !important;
    }

    .profile-avatar {
        width: 120px !important;
        height: 120px !important;
    }

    .placeholder-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important;
    }

    .role-cards {
        grid-template-columns: 1fr !important;
    }
}

/* ===== ОЧЕНЬ МАЛЕНЬКИЕ ЭКРАНЫ (480px и меньше) ===== */
@media (max-width: 480px) {
    header {
        padding: 0.6rem 0.8rem !important;
    }

    .header-left .logo img {
        height: 34px !important;
    }

    .burger-menu {
        padding: 0.4rem !important;
        gap: 5px !important;
    }

    .burger-menu span {
        width: 26px !important;
        height: 3.5px !important;
    }

    .theme-toggle,
    .notifications-bell {
        padding: 0.5rem !important;
        min-width: 44px !important;
        min-height: 44px !important;
    }

    .theme-toggle img,
    .notifications-bell img {
        width: 22px !important;
        height: 22px !important;
    }

    #notificationsCount {
        font-size: 0.55rem !important;
        min-width: 18px !important;
        padding: 1px 5px !important;
        top: -3px !important;
        right: -3px !important;
    }

    .user-menu-trigger {
        padding: 0.2rem 0.6rem 0.2rem 0.2rem !important;
        font-size: 0.85rem !important;
        min-height: 44px !important;
    }

    .user-avatar-small {
        width: 32px !important;
        height: 32px !important;
    }

    .user-avatar-placeholder-small {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.8rem !important;
    }

    .btn-login {
        padding: 0.4rem 1rem !important;
        font-size: 0.95rem !important;
    }

    .nav-link {
        font-size: 1.3rem !important;
    }

    nav ul li .dropdown a {
        font-size: 1.05rem !important;
    }

    .hero h1 {
        font-size: 1.8rem !important;
    }

    .hero p {
        font-size: 1rem !important;
    }

    main {
        padding: 1rem !important;
    }

    .auth-card {
        padding: 1rem !important;
    }

    .profile-card {
        padding: 1rem !important;
    }

    .profile-avatar {
        width: 100px !important;
        height: 100px !important;
    }
}

/* ===== ОЧЕНЬ МАЛЕНЬКИЕ ЭКРАНЫ (480px и меньше) ===== */
@media (max-width: 480px) {
    header {
        padding: 0.5rem 0.7rem !important;
    }

    .header-left .logo img {
        height: 30px !important;
    }

    .burger-menu {
        padding: 0.3rem !important;
        gap: 4px !important;
    }

    .burger-menu span {
        width: 22px !important;
        height: 2.5px !important;
    }

    .theme-toggle,
    .notifications-bell {
        padding: 0.4rem !important;
        min-width: 38px !important;
        min-height: 38px !important;
    }

    .theme-toggle img,
    .notifications-bell img {
        width: 18px !important;
        height: 18px !important;
    }

    #notificationsCount {
        font-size: 0.45rem !important;
        min-width: 15px !important;
        padding: 0 4px !important;
        top: -2px !important;
        right: -2px !important;
    }

    .user-menu-trigger {
        padding: 0.15rem 0.4rem 0.15rem 0.15rem !important;
        font-size: 0.75rem !important;
        min-height: 38px !important;
    }

    .user-avatar-small {
        width: 26px !important;
        height: 26px !important;
    }

    .user-avatar-placeholder-small {
        width: 26px !important;
        height: 26px !important;
        font-size: 0.6rem !important;
    }

    .btn-login {
        padding: 0.3rem 0.8rem !important;
        font-size: 0.85rem !important;
    }

    .nav-link {
        font-size: 1.1rem !important;
    }

    nav ul li .dropdown a {
        font-size: 0.95rem !important;
    }

    .hero h1 {
        font-size: 1.8rem !important;
    }

    .hero p {
        font-size: 1rem !important;
    }

    main {
        padding: 1rem !important;
    }

    .auth-card {
        padding: 1rem !important;
    }

    .profile-card {
        padding: 1rem !important;
    }

    .profile-avatar {
        width: 100px !important;
        height: 100px !important;
    }
}

/* Очень маленькие экраны (480px и меньше) */
@media (max-width: 480px) {
    header {
        padding: 0.3rem 0.5rem !important;
    }

    .header-left .logo img {
        height: 22px !important;
    }

    .burger-menu span {
        width: 18px !important;
        height: 1.5px !important;
    }

    .theme-toggle,
    .notifications-bell {
        padding: 0.2rem !important;
        min-width: 26px !important;
        min-height: 26px !important;
    }

    .theme-toggle img,
    .notifications-bell img {
        width: 13px !important;
        height: 13px !important;
    }

    #notificationsCount {
        font-size: 0.3rem !important;
        min-width: 10px !important;
        padding: 0 2px !important;
        top: -1px !important;
        right: -1px !important;
    }

    .user-menu-trigger {
        padding: 0.05rem 0.2rem 0.05rem 0.05rem !important;
        font-size: 0.6rem !important;
        min-height: 26px !important;
    }

    .user-avatar-small {
        width: 18px !important;
        height: 18px !important;
    }

    .user-avatar-placeholder-small {
        width: 18px !important;
        height: 18px !important;
        font-size: 0.4rem !important;
    }

    .btn-login {
        padding: 0.15rem 0.4rem !important;
        font-size: 0.65rem !important;
    }

    .hero h1 {
        font-size: 1.8rem !important;
    }

    .hero p {
        font-size: 1rem !important;
    }

    main {
        padding: 1rem !important;
    }

    .auth-card {
        padding: 1rem !important;
    }

    .profile-card {
        padding: 1rem !important;
    }

    .profile-avatar {
        width: 100px !important;
        height: 100px !important;
    }
}
/* ===== СЕКЦИИ В ПРОФИЛЕ ===== */
.profile-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-color);
}

.profile-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.competency-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.competency-tag {
    display: inline-block;
    padding: 0.25rem 0.8rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    opacity: 0.8;
    transition: all 0.2s;
}

.competency-tag:hover {
    opacity: 1;
    border-color: var(--accent-color);
    background: var(--bg-hover);
}

.profile-section .btn {
    display: inline-block;
    margin-top: 0.3rem;
}