/* style.css - добавлены стили для карточек соцсетей */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    display: flex;
    min-height: 100vh;
    transition: background-image 0.5s ease-in-out;
}

/* Панель навигации */
.sidebar {
    position: fixed;
    width: 200px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    padding: 2rem 1rem;
    z-index: 1000;
}

.sidebar ul {
    list-style: none;
}

.sidebar a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 0.8rem 1rem;
    margin: 0.5rem 0;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

.sidebar a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

/* Стили для активной страницы */
.sidebar a.active {
    background: rgba(110, 84, 148, 0.3);
    border-left: 3px solid #8b6cb3;
    font-weight: bold;
}

/* Стили для ограниченного доступа - сделаем тусклее */
.sidebar a.restricted {
    opacity: 0.5;
    background: rgba(0, 0, 0, 0.2);
}

.sidebar a.restricted-authorized {
    border-left: 3px solid rgba(74, 107, 255, 0.5);
}

.sidebar a.restricted-specific {
    border-left: 3px solid rgba(148, 84, 110, 0.5);
}

.sidebar a.restricted::after {
    content: '🔒';
    position: absolute;
    right: 10px;
    font-size: 0.8rem;
    opacity: 0.7;
}

.sidebar a.restricted:hover {
    opacity: 0.7;
    background: rgba(255, 255, 255, 0.05);
}

/* Основной контент */
.content {
    flex: 1;
    margin-left: 200px;
    position: relative;
    min-height: 100vh;
    overflow-y: auto; /* Добавляем прокрутку если контент длинный */
}


.page-content {
    position: relative; /* Меняем absolute на relative */
    top: auto; /* Убираем абсолютное позиционирование */
    left: auto; /* Убираем абсолютное позиционирование */
    transform: none; /* Убираем трансформацию */
    text-align: center;
    color: white;
    max-width: 1400px; /* Увеличиваем максимальную ширину */
    width: 90%;
    padding: 2rem;
    margin: 0 auto; /* Центрируем контент */
    min-height: auto; /* Убираем фиксированную высоту */
}

#page-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.4s ease;
}

#page-content-wrapper {
    animation: fadeIn 0.8s ease 0.2s both;
}

#page-text {
    font-size: 1.4rem;
    line-height: 1.6;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Плавная анимация перехода между страницами */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.page-transition.active {
    opacity: 1;
}

/* Карточка проекта */
.project-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: block;
    color: white;
}

.project-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.project-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.project-icon {
    font-size: 2rem;
    margin-right: 1rem;
    color: #6e5494; /* GitHub цвет */
}

.project-title {
    font-size: 1.5rem;
    font-weight: bold;
}

.project-description {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    color: #6e5494;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

.project-link i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.project-card:hover .project-link {
    color: #8b6cb3;
}

.project-card:hover .project-link i {
    transform: translateX(5px);
}

/* Сетка социальных карточек */
.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
    width: 100%;
}

.social-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 180px;
    justify-content: center;
}

.social-card:hover {
    transform: translateY(-5px) scale(1.02);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.social-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.social-card:hover .social-icon {
    transform: scale(1.1);
}

.social-name {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.social-handle {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Цвета для разных соцсетей */
.social-card.steam:hover { background: rgba(25, 35, 45, 0.3); }
.social-card.youtube:hover { background: rgba(255, 0, 0, 0.2); }
.social-card.github:hover { background: rgba(110, 84, 148, 0.3); }
.social-card.telegram:hover { background: rgba(0, 136, 204, 0.3); }
.social-card.discord:hover { background: rgba(114, 137, 218, 0.3); }
.social-card.twitter:hover { background: rgba(29, 161, 242, 0.3); }
.social-card.linkedin:hover { background: rgba(10, 102, 194, 0.3); }
.social-card.instagram:hover { 
    background: linear-gradient(45deg, 
        rgba(225, 48, 108, 0.2), 
        rgba(253, 228, 0, 0.2)
    ); 
}

/* Контактная информация */
.contact-info {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: left;
}

.contact-item {
    display: flex;
    align-items: center;
    margin: 1rem 0;
    font-size: 1.1rem;
}

.contact-item i {
    width: 30px;
    margin-right: 1rem;
    opacity: 0.8;
}

/* Адаптивность */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    
    .content {
        margin-left: 0;
    }
    
    .project-card {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .social-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .social-card {
        min-height: 150px;
        padding: 1rem;
    }
}
/* Аккордеон */
.accordion {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.accordion-header {
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background: rgba(255, 255, 255, 0.05);
}

.accordion-title {
    display: flex;
    align-items: center;
    font-size: 1.3rem;
    font-weight: bold;
}

.accordion-title i {
    margin-right: 1rem;
    font-size: 1.5rem;
    width: 30px;
    text-align: center;
}

.accordion-arrow {
    transition: transform 0.3s ease;
    font-size: 1.2rem;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    background: rgba(0, 0, 0, 0.2);
}

.accordion-text {
    padding: 0 2rem 2rem;
    font-size: 1.1rem;
    line-height: 1.7;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.accordion-text strong {
    color: #fff;
    font-weight: bold;
}

.accordion-text br {
    margin-bottom: 0.5rem;
}

/* Адаптивность для аккордеона */
@media (max-width: 768px) {
    .accordion-header {
        padding: 1.2rem 1.5rem;
    }
    
    .accordion-title {
        font-size: 1.1rem;
    }
    
    .accordion-text {
        padding: 0 1.5rem 1.5rem;
        font-size: 1rem;
    }
    
    .accordion-title i {
        font-size: 1.3rem;
        margin-right: 0.8rem;
    }
}
/* Стили для виджета аккаунта */
.account-widget {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
}

.account-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.account-icon:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.1);
}

.account-icon i {
    font-size: 1.2rem;
    color: white;
}

/* Модальное окно авторизации */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1002;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.auth-modal.active {
    display: flex;
    opacity: 1;
}

.auth-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 2rem;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.auth-modal.active .auth-container {
    transform: translateY(0);
}

.auth-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.auth-header h2 {
    color: #333;
    font-size: 1.8rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #333;
}

.auth-form {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.2rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Улучшенные стили для полей ввода */
.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
}

.form-group input:focus {
    outline: none;
    border-color: #6e5494;
    border-width: 2px;
    box-shadow: 0 0 0 3px rgba(110, 84, 148, 0.2);
    transform: translateY(-1px);
}

.form-group input:hover {
    border-color: #b0b0b0;
}

/* Специальные стили для группы с email */
.email-input-wrapper {
    display: flex;
    gap: 0.5rem;
}

.email-input-wrapper input {
    flex: 1;
}

.send-code-btn {
    background: #6e5494;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.8rem 1rem;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.3s ease;
    white-space: nowrap;
}

.send-code-btn:hover {
    background: #8b6cb3;
}

/* Чекбокс */
.checkbox-group {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
}

.checkbox-group input {
    width: auto;
    margin-right: 0.5rem;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: normal;
    font-size: 0.9rem;
}

/* Кнопка авторизации */
.auth-btn {
    width: 100%;
    background: #6e5494;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 1rem;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.auth-btn:hover {
    background: #8b6cb3;
}

/* Переключение между формами */
.auth-switch {
    text-align: center;
    border-top: 1px solid #eee;
    padding-top: 1.5rem;
}

.auth-switch span {
    color: #666;
    margin-right: 0.5rem;
}

.switch-btn {
    background: none;
    border: none;
    color: #6e5494;
    cursor: pointer;
    font-weight: bold;
    transition: color 0.3s ease;
}

.switch-btn:hover {
    color: #8b6cb3;
    text-decoration: underline;
}

/* Утилиты */
.hidden {
    display: none;
}

/* Адаптивность */
@media (max-width: 768px) {
    .account-widget {
        top: 15px;
        right: 15px;
    }
    
    .account-icon {
        width: 45px;
        height: 45px;
    }
    
    .auth-container {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .email-input-wrapper {
        flex-direction: column;
    }
}
/* Добавьте в конец файла style.css */

/* Стили для отображения логина пользователя */
.user-login {
    font-size: 0.9rem;
    font-weight: bold;
    color: white;
}

/* Улучшенные стили для модального окна */
.email-input-wrapper {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.email-input-wrapper input {
    flex: 1;
}

.send-code-btn {
    background: #6e5494;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.8rem 1rem;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.3s ease;
    white-space: nowrap;
    min-width: 120px;
}

.send-code-btn:hover:not(:disabled) {
    background: #8b6cb3;
}

.send-code-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 480px) {
    .email-input-wrapper {
        flex-direction: column;
    }
    
    .send-code-btn {
        width: 100%;
        min-width: auto;
    }
}

/* Анимации для уведомлений */
@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.auth-modal.active .auth-container {
    animation: slideIn 0.3s ease;
}
.notification-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1003;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.notification-modal.active {
    display: flex;
    opacity: 1;
}

.notification-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 0;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.notification-modal.active .notification-container {
    transform: translateY(0);
}

.notification-header {
    background: linear-gradient(135deg, #6e5494, #8b6cb3);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    color: white;
}

.notification-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
}

.notification-title {
    flex: 1;
    margin: 0;
    font-size: 1.3rem;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.notification-close:hover {
    opacity: 0.8;
}

.notification-body {
    padding: 2rem;
    text-align: center;
}

.notification-body p {
    margin: 0;
    color: #333;
    font-size: 1.1rem;
    line-height: 1.5;
}

.notification-footer {
    padding: 0 2rem 2rem;
    text-align: center;
}

.notification-btn {
    background: #6e5494;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
    min-width: 120px;
}

.notification-btn:hover {
    background: #8b6cb3;
}

/* Анимации для уведомлений */
@keyframes slideInNotification {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.notification-modal.active .notification-container {
    animation: slideInNotification 0.3s ease;
}

/* Типы уведомлений */
.notification-success .notification-header {
    background: linear-gradient(135deg, #4CAF50, #45a049);
}

.notification-error .notification-header {
    background: linear-gradient(135deg, #f44336, #da190b);
}

.notification-warning .notification-header {
    background: linear-gradient(135deg, #ff9800, #e68900);
}

.notification-info .notification-header {
    background: linear-gradient(135deg, #2196F3, #0b7dda);
}
.notification-btn {
    background: #6e5494;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
    min-width: 120px;
}

.notification-btn:hover {
    background: #8b6cb3;
}

/* Стили для кнопки отмены в подтверждающем окне */
.notification-btn.cancel {
    background: #6c757d;
}

.notification-btn.cancel:hover {
    background: #5a6268;
}
.account-icon.authenticated {
    position: relative;
    background: rgba(76, 175, 80, 0.2);
    border-color: rgba(76, 175, 80, 0.5);
}

.account-icon.authenticated::after {
    content: '';
    position: absolute;
    top: 5px;
    right: 5px;
    width: 10px;
    height: 10px;
    background: #4CAF50;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.9);
}

.account-icon.authenticated:hover::before {
    content: attr(title);
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 1002;
}

.account-icon.authenticated:hover::after {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.8);
}

/* Улучшенные стили для уведомлений с HTML-контентом */
.notification-body strong {
    color: #6e5494;
    font-weight: bold;
}

.notification-body br {
    margin-bottom: 0.5rem;
}

/* Анимация для иконки */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.account-icon.authenticated {
    animation: pulse 2s infinite;
}

.account-icon.authenticated:hover {
    animation: none;
}
.notification-body strong {
    color: #6e5494;
    font-size: 1.2rem;
    display: block;
    margin: 0.5rem 0;
    padding: 0.5rem;
    background: rgba(110, 84, 148, 0.1);
    border-radius: 8px;
    border-left: 4px solid #6e5494;
}

.notification-body br {
    margin-bottom: 0.5rem;
    display: block;
    content: "";
}

/* Улучшенные стили для confirm уведомлений */
.notification-confirm .notification-body {
    text-align: left;
}

.notification-confirm .notification-body p {
    line-height: 1.6;
}

/* Стили для ограниченного доступа в навигации */
.sidebar a.restricted {
    position: relative;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar a.restricted-authorized {
    background: rgba(74, 107, 255, 0.2);
    border-color: rgba(74, 107, 255, 0.3);
}

.sidebar a.restricted-specific {
    background: rgba(148, 84, 110, 0.2);
    border-color: rgba(148, 84, 110, 0.3);
}

.sidebar a.restricted::after {
    content: '🔒';
    position: absolute;
    right: 10px;
    font-size: 0.8rem;
    opacity: 0.7;
}

.sidebar a.restricted:hover::before {
    content: attr(data-tooltip);
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 1002;
}

/* УПРОЩЕННЫЕ СТИЛИ ДЛЯ ВИШЛИСТА */
.wishlist-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.wishlist-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
    background: rgba(30, 30, 30, 0.8);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.sort-controls, .filter-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.control-label {
    font-weight: bold;
    opacity: 0.9;
    color: white;
}

.control-btn, .control-select {
    background: rgba(60, 60, 60, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
}

.control-btn:hover, .control-btn.active {
    background: rgba(110, 84, 148, 0.8);
    border-color: #8b6cb3;
}

.control-select option {
    background: rgba(30, 30, 30, 0.95);
    color: white;
}

/* СЕТКА ПОДАРКОВ */
.wishes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Увеличиваем минимальную ширину и меняем на auto-fit */
    gap: 1.5rem;
    margin-top: 1rem;
    width: 100%;
}


/* СТАТИЧНАЯ КАРТОЧКА */
.wish-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.wish-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.wish-image-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wish-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.wish-item:hover .wish-image {
    transform: scale(1.05);
}

.wish-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.wish-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: white;
    line-height: 1.3;
}

.wish-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #6e5494;
    background: rgba(110, 84, 148, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    border: 1px solid rgba(110, 84, 148, 0.5);
    margin-bottom: 1rem;
    align-self: center;
}

.wish-description {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    color: white;
    opacity: 0.9;
    flex-grow: 1;
}

.wish-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.wish-tag {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.wish-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #6e5494;
    color: white;
    text-decoration: none;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-top: auto;
}

.wish-link:hover {
    background: #8b6cb3;
    transform: translateY(-2px);
}

.wish-link i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.wish-link:hover i {
    transform: translateX(3px);
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.3);
    font-size: 3rem;
}

.image-placeholder i {
    font-size: 3.5rem;
}

@media (max-width: 1200px) {
    .wishes-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 колонки на средних экранах */
    }
}

@media (max-width: 992px) {
    .wishes-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 колонки на планшетах */
    }
}

@media (max-width: 768px) {
    .content {
        margin-left: 0;
    }
    
    .wishes-grid {
        grid-template-columns: 1fr; /* 1 колонка на мобильных */
        gap: 1rem;
    }
    
    .page-content {
        padding: 1rem;
        width: 95%;
    }
}

@media (max-width: 480px) {
    .wishes-grid {
        grid-template-columns: 1fr;
    }
    
    .page-content {
        padding: 0.5rem;
    }
}

/* АДАПТИВНОСТЬ */
@media (max-width: 768px) {
    .wishlist-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .sort-controls, .filter-controls {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .wishes-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .wish-content {
        padding: 1rem;
    }
    
    .control-select {
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    .sort-controls, .filter-controls {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .control-btn, .control-select {
        width: 100%;
        text-align: center;
    }
    
    .wishlist-controls {
        padding: 1rem;
    }
}

/* МОБИЛЬНАЯ АДАПТАЦИЯ - ОБНОВЛЕННАЯ */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    padding: 1rem;
    z-index: 1001;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    height: 60px;
}

.mobile-title {
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    text-align: center;
    flex: 1;
}

/* Кнопка гамбургер */
.hamburger {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    width: 30px;
    height: 24px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 1002;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Основные исправления для мобильных */
@media (max-width: 780px) {
    body {
        overflow-x: hidden;
    }
    
    .mobile-header {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* САЙДБАР */
    .sidebar {
        position: fixed;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        width: 280px;
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(20px);
        top: 0;
        height: 100vh;
        z-index: 1000;
        margin: 0;
        padding: 70px 1rem 2rem;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    /* ОСНОВНОЙ КОНТЕНТ - ГЛАВНОЕ ИСПРАВЛЕНИЕ */
    .content {
        margin-left: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        padding-top: 60px;
        min-height: calc(100vh - 60px);
        position: relative;
        left: 0;
    }
    
    .page-content {
        padding: 1.5rem !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        box-sizing: border-box;
        position: relative;
        left: 0;
    }
    
    /* Заголовки и текст */
    #page-title {
        font-size: 2.2rem;
        margin-bottom: 1.5rem;
        text-align: center;
        width: 100%;
        padding: 0 1rem;
    }
    
    #page-text {
        font-size: 1.1rem;
        line-height: 1.6;
        width: 100%;
        text-align: center;
    }
    
    /* Контейнеры контента */
    .projects-container,
    .social-grid,
    .accordion,
    .wishlist-container,
    .contact-info {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Адаптация виджета аккаунта */
    .account-widget {
        top: 75px;
        right: 15px;
        z-index: 999;
    }
    
    .account-icon {
        width: 45px;
        height: 45px;
    }
    
    /* КАРТОЧКИ ПРОЕКТОВ */
    .projects-container {
        width: 100%;
        margin: 0 auto;
    }
    
    .project-card {
        padding: 1.5rem;
        margin: 1rem 0;
        width: 100%;
        box-sizing: border-box;
    }
    
    .project-header {
        flex-direction: row;
        text-align: left;
    }
    
    .project-icon {
        margin-right: 1rem;
        margin-bottom: 0;
    }
    
    /* СОЦСЕТИ */
    .social-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        width: 100%;
    }
    
    .social-card {
        min-height: 120px;
        padding: 1.5rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* АККОРДЕОН */
    .accordion {
        width: 100%;
        max-width: 100%;
    }
    
    .accordion-header {
        padding: 1.2rem 1.5rem;
    }
    
    .accordion-text {
        padding: 0 1.5rem 1.5rem;
        font-size: 1rem;
        width: 100%;
    }
    
    /* ВИШЛИСТ */
    .wishlist-container {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .wishlist-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1.2rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .sort-controls, .filter-controls {
        flex-direction: column;
        gap: 0.8rem;
        width: 100%;
    }
    
    .control-btn, .control-select {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
    
    .wishes-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        width: 100%;
    }
    
    .wish-item {
        width: 100%;
        box-sizing: border-box;
    }
    
    .wish-content {
        padding: 1.2rem;
        width: 100%;
    }
    
    .wish-image-container {
        height: 200px;
    }
    
    /* МОДАЛЬНЫЕ ОКНА */
    .auth-container, .notification-container {
        margin: 1rem;
        padding: 1.5rem;
        width: calc(100% - 2rem);
        box-sizing: border-box;
    }
    
    .email-input-wrapper {
        flex-direction: column;
    }
    
    .send-code-btn {
        width: 100%;
        margin-top: 0.5rem;
    }
    
    /* Затемнение фона */
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(5px);
        z-index: 999;
    }
    
    .sidebar-overlay.active {
        display: block;
    }
}

/* Дополнительные адаптации для очень маленьких экранов */
@media (max-width: 480px) {
    #page-title {
        font-size: 1.8rem;
        padding: 0 0.5rem;
    }
    
    .page-content {
        padding: 1rem !important;
    }
	
	.project-card,
    .social-card,
    .accordion-item,
    .wish-item {
        border-radius: 12px;
    }
    
    .wishlist-controls {
        padding: 1.2rem;
    }
    
    .account-widget {
        right: 15px;
    }
    
    .project-card {
        padding: 1.2rem;
    }
    
    .auth-container, .notification-container {
        margin: 0.5rem;
        padding: 1.2rem;
        width: calc(100% - 1rem);
    }
    
    .account-icon {
        width: 40px;
        height: 40px;
    }
    
    .wish-image-container {
        height: 180px;
    }
    
    .social-card {
        padding: 1.2rem;
        min-height: 100px;
    }
}

/* Убедимся, что на всех устройствах контент занимает всю ширину */
@media (max-width: 1024px) {
    .content {
        width: 100%;
    }
    
    .page-content {
        max-width: 100%;
    }
}

/* КРИТИЧЕСКИЕ ИСПРАВЛЕНИЯ ДЛЯ ШИРИНЫ */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

/* ДЕСКТОПНАЯ ВЕРСИЯ - четкие фиксированные стили */
@media (min-width: 781px) {
    .content {
        margin-left: 200px;
        width: calc(100% - 200px);
        min-width: auto;
        max-width: none;
        position: relative;
        min-height: 100vh;
        overflow-y: auto;
    }
    
    .page-content {
        width: 90%;
        max-width: 1400px;
        margin: 0 auto;
        padding: 2rem;
        position: relative;
        left: auto;
        transform: none;
    }
    
    /* Контейнеры контента для десктопа */
    .projects-container,
    .social-grid,
    .accordion,
    .wishlist-container,
    .contact-info,
    #page-content-wrapper {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}

/* МОБИЛЬНАЯ ВЕРСИЯ - только для маленьких экранов */
@media (max-width: 780px) {
    .mobile-header {
        display: flex;
    }
    
    .sidebar {
        position: fixed;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        width: 280px;
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(20px);
        top: 0;
        height: 100vh;
        z-index: 1000;
        margin: 0;
        padding: 70px 1rem 2rem;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .content {
        margin-left: 0;
        width: 100vw;
        padding-top: 60px;
        min-height: calc(100vh - 60px);
    }
    
    .page-content {
        padding: 1.5rem;
        width: 100%;
        max-width: 100%;
        margin: 0;
    }
    
    /* Остальные мобильные стили остаются без изменений */
    .account-widget {
        top: 75px;
        right: 15px;
    }
    
    .wishes-grid {
        grid-template-columns: 1fr;
    }
    
    /* Затемнение фона для мобильного меню */
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(5px);
        z-index: 999;
    }
    
    .sidebar-overlay.active {
        display: block;
    }
}

/* СТИЛИ ДЛЯ БЛОКОВ НА ГЛАВНОЙ СТРАНИЦЕ */
.home-blocks-container {
    max-width: 1200px;
    margin: 2rem auto 0;
    width: 100%;
}

.blocks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.home-block {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: white;
    position: relative;
}

.home-block:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.block-image-container {
    width: 100%;
    height: 160px;
    overflow: hidden;
    position: relative;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.block-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.home-block:hover .block-image {
    transform: scale(1.05);
}

.block-icon-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(110, 84, 148, 0.3), rgba(139, 108, 179, 0.3));
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.8);
}

.block-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.block-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.block-icon {
    font-size: 1.5rem;
    margin-right: 0.8rem;
    color: #8b6cb3;
    width: 24px;
    text-align: center;
}

.block-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin: 0;
    color: white;
}

.block-description {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    flex-grow: 1;
}

.block-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #6e5494;
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-top: auto;
    font-size: 0.9rem;
}

.block-link:hover {
    background: #8b6cb3;
    transform: translateY(-2px);
}

.block-link i {
    margin-left: 0.5rem;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.home-block:hover .block-link i {
    transform: translateX(3px);
}

/* АДАПТИВНОСТЬ ДЛЯ БЛОКОВ */
@media (max-width: 1200px) {
    .blocks-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .home-blocks-container {
        margin-top: 1rem;
    }
    
    .blocks-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .block-content {
        padding: 1.2rem;
    }
    
    .block-image-container {
        height: 140px;
    }
    
    .block-title {
        font-size: 1.2rem;
    }
    
    .block-description {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .blocks-grid {
        grid-template-columns: 1fr;
    }
    
    .block-content {
        padding: 1rem;
    }
    
    .block-image-container {
        height: 120px;
    }
    
    .block-icon-placeholder {
        font-size: 2.5rem;
    }
}

/* Цветовые акценты для разных типов блоков */
.home-block:hover .block-icon.github { color: #6e5494; }
.home-block:hover .block-icon.youtube { color: #ff0000; }
.home-block:hover .block-icon.steam { color: #1b2838; }
.home-block:hover .block-icon.blog { color: #8b6cb3; }