.profile-container {
    display: flex;
    justify-content: center;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.profile-sidebar {
    min-width: 280px;
}

.profile-form {
    width: 400px;}

/* ========== АВАТАР ========== */
.avatar-container {
    text-align: center;
    margin-bottom: 30px;
}

.avatar-frame {
    width: 180px;
    height: 180px;
    margin: 0 auto 20px;
    border-radius: 50%;
    padding: 4px;
    background: var(--elem-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: var(--index-bg-color);
}

.change-avatar-btn {
    display: inline-block;
    font-size: 14px;
    padding: 7px 20px;
    cursor: pointer;
    border-radius: 50px;
    border: 2px solid transparent; 
    background-image: 
    linear-gradient(var(--elem-bg-color), var(--elem-bg-color)), 
    var(--elem-gradient);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

.change-avatar-btn:hover {
    background-image: 
    linear-gradient(var(--elem-hover-bg-color), var(--elem-hover-bg-color)), 
    var(--elem-gradient);
}

/* ========== СТАТИСТИКА ========== */
.profile-stats {
    background: var(--elem-bg-color);
    border-radius: 41px;
    padding: 25px;
}

.stat-item {
    text-align: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-value {
    display: block;
    font-size: 32px;
    font-weight: bold;
    background: var(--elem-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 5px;
}

.stat-label {
    display: block;
    font-size: 14px;
    color: var(--accent-color);
}

/* ========== ФОРМА ========== */
.profile-form h1 {
    font-size: 28px;
    margin-bottom: 30px;
    background: var(--elem-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    font-size: 15px;
}

.form-group .input-form {
    width: 100%;
}

.form-group input {
    width: calc(100% - 40px);
    padding: 12px 20px;
    height: auto;
}

.disabled-input {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-hint {
    display: block;
    font-size: 12px;
    color: var(--accent-color);
    margin-top: 8px;
}

.form-divider {
    text-align: center;
    margin: 35px 0 25px;
    position: relative;
}

.form-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255,255,255,0.15);
}

.form-divider span {
    background: var(--index-bg-color);
    padding: 0 20px;
    position: relative;
    font-size: 14px;
    color: var(--accent-color);
}

.save-btn {
    width: 100%;
    height: 41px;
    background-image: var(--elem-gradient);
    border: none;
    border-radius: 41px;
    font-family: 'Montserrat-bold';
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.3s ease;
    margin-top: 10px;
}

.save-btn:hover {
    transform: scale(1.02);
}

/* ========== СООБЩЕНИЯ ========== */
.success-message {
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid #4CAF50;
    color: #4CAF50;
    padding: 12px 20px;
    border-radius: 41px;
    margin-bottom: 25px;
    font-size: 14px;
}

.error-message {
    background: rgba(244, 67, 54, 0.15);
    border: 1px solid #f44336;
    color: #f44336;
    padding: 12px 20px;
    border-radius: 41px;
    margin-bottom: 25px;
    font-size: 14px;
}

/* ========== АДАПТАЦИЯ ========== */
@media (max-width: 992px) {
    .profile-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .profile-sidebar {
        order: 2;
    }
    
    .profile-form {
        order: 1;
    }
    
    .avatar-frame {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 768px) {
    .profile-container {
        padding: 15px;
    }
    
    .stat-value {
        font-size: 28px;
    }
    
    .profile-form h1 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .profile-stats {
        padding: 20px;
    }
    
    .stat-value {
        font-size: 24px;
    }
    
    .save-btn {
        height: 45px;
        font-size: 14px;
    }
}